Loading course…
Loading course…
Created by Petter Smit
Design and implement memory systems for AI agents that remain coherent, debuggable, and safe under long conversations, parallelism, and failures. You will learn how to model memory layers, merge state deterministically with reducers, checkpoint and replay safely, manage context windows, and build durable long-term memory with retrieval and governance.
8 modules • Each builds on the previous one
Define a practical taxonomy for agent memory: transient context, workflow state, conversational memory, retrievable knowledge, and durable long-term memory. Map each layer to storage, lifecycle, and correctness requirements in production agent systems.
Learn what a reducer is in agent state frameworks: a merge/update policy for each state key that turns multiple partial updates into a single next state. Emphasize determinism, idempotency, commutativity/associativity tradeoffs, and conflict resolution under parallel execution.
Design checkpointing for agent workflows: what to persist at node boundaries, how to resume after crashes, and how checkpointing enables replay/time-travel debugging. Cover tradeoffs: granularity, storage cost, and replay determinism.
Go beyond raw chat history: structured conversation memory (facts, preferences, tasks), summarization policies, episodic vs semantic memories, and how memory writes are triggered and validated. Emphasize avoiding hallucinated memories and memory drift.
Manage limited context windows using sliding windows, hierarchical summaries, and relevance-based packing. Cover failure modes like lost-in-the-middle, prompt injection via retrieved text, and techniques for ordering/formatting evidence for maximum utility.
Design vector-store-backed memory: chunking strategies, embedding choices, metadata schemas, filters, and refresh/re-index policies. Emphasize retrieval quality, latency/cost, and multi-tenant access control for persistent agent memory.
Engineer RAG beyond the basics: query rewriting, multi-step retrieval, reranking, citations/grounding, and controlling evidence volume to prevent degradation. Connect retrieval to context packing to avoid over-retrieval and lost-in-the-middle.
Persist memory across sessions with durable stores (SQL/NoSQL/object storage) plus semantic indexes, using structured metadata for TTL, versioning, auditability, and access control. Cover privacy, consent, and strategies for updating/forgetting memories safely.
Begin your learning journey
In-video quizzes and scaffolded content to maximize retention.