Gen-AI Developer Classroom notes 15/Nov/2025

Longterm memory with semantic search

  • Run the postgres (pgvector)
docker run -d `
--name pgvector-db `
-e POSTGRES_USER=postgres `
-e POSTGRES_PASSWORD=password `
-e POSTGRES_DB=experiments `
-p 5442:5432 `
pgvector/pgvector:pg16 
  • Refer Here for the notebook
  • So now while building graph we need to identify what needs to be stored in longterm memory either by pattern matching to store and retrieve whenever a query is being asked.

  • Langchain team have built a library to handle agents memory called as langmem.

  • Langmem handles three types of memories

    • semantic
    • episodic
    • procedural

Hello langmem

By continuous learner

enthusiastic technology learner

Leave a Reply

Discover more from Direct AI Powered By Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading