Section 7: Agent Memory Fundamentals
- Short-term and long-term memory, and semantic, episodic and procedural memory
- What to remember, what not to remember, and when to forget
- Vector memory compared with graph memory
- A tool overview: the LangGraph store, Mem0 and Graphiti
Section 8: Lab: A LangGraph Agent That Uses the Graph as a Tool
- An agent that chooses vector search, graph queries or Text2Cypher as tools
- A checkpointer to remember the conversation within a thread
- Long-term memory in a store, separated by user
- Test the agent with questions that need several retrieval steps
Section 9: Lab: Temporal Memory with Graphiti
- Store facts with the period they are valid and know which facts have been superseded
- Add episodes from conversations and business events
- Hybrid search across semantic, keyword and graph traversal
- An agent that remembers customer needs and history across sessions
Section 10: Lab: Evaluating GraphRAG and Memory
- Test question sets with single-hop, multi-hop and whole-dataset questions
- Measure correctness, completeness and source citation
- Compare vector RAG and GraphRAG on the same question set
- Check for wrong or stale memories and how to correct them
Section 11: Security and Production Use
- Prevent Cypher injection with read-only access and checking queries before they run
- Per-user access control in both the graph and memory
- PDPA: personal data in memory, the right to erasure and retention periods
- Incremental graph updates when documents change, with latency and cost in mind
Section 12: Workshop: GraphRAG Agent Capstone
- Choose a brief: a technical manual assistant, a policy assistant or a customer assistant that remembers history
- Build the graph, retrievers and memory for the system
- Measure it against vector RAG on the same questions
- Present the work and a plan for next steps