
Memory in AI Systems
Give your LLM a memory that persists.
From context engineering to the full memory taxonomy — buffer, summary, episodic, hybrid — plus RAG and agentic Graph RAG. Code memory layers from scratch, then build a personalized AI tutor with Mem0.
Read on your Kindle
We'll send this whole book straight to your Kindle — it opens natively, so you can resize the text, read fully offline, and it remembers where you left off. Nothing to download or manage.
Sending to Kindle is for subscribers — subscribe to read the whole library on your Kindle.
00Why Memory Matters5 capsules
Why Memory Matters — 5 chapters.
01The Stateless Problemintuitionfree12 min02What Is Memory in an LLM?concept🔒12 min03The Context Window Is Not Memoryconcept🔒12 min04Memory vs. Parameters: Where Knowledge Livesconcept🔒12 min05What We'll Build in This Bookconcept🔒15 min01Context Engineering6 capsules
Context Engineering — 6 chapters.
06Introduction to Context Engineeringconcept🔒13 min07The Four Components of Contextconcept🔒15 min08Prompts: The Instruction Layerconcept🔒13 min09Knowledge: Grounding in External Factsconcept🔒15 min10Tools: Letting the Model Actconcept🔒15 min11The Context Budget Problemintuition🔒15 min02The Memory Taxonomy7 capsules
The Memory Taxonomy — 7 chapters.
12Short-Term vs. Long-Term Memoryconcept🔒15 min13Buffer Memoryconcept🔒14 min14Summary Memoryconcept🔒14 min15Episodic Memoryconcept🔒14 min16Hybrid Memoryconcept🔒14 min17Semantic vs. Episodic: Facts vs. Eventsconcept🔒14 min18Choosing a Memory Strategyintuition🔒14 min03Retrieval and Knowledge6 capsules
Retrieval and Knowledge — 6 chapters.
19Why Retrieval? The Recall Problemintuition🔒14 min20Embeddings and Vector Searchmath🔒14 min21Retrieval-Augmented Generation (RAG)concept🔒16 min22RAG as a Long-Term Memory Engineconcept🔒14 min23Graph RAG: Memory with Relationshipsconcept🔒13 min24Agentic Graph RAGdeep-dive🔒13 min04Coding Memory Layers from Scratch6 capsules
Coding Memory Layers from Scratch — 6 chapters.
25Project Setup: A Bare LLM Loopcode🔒11 min26Coding Buffer Memory from Scratchcode🔒14 min27Coding Summary Memory from Scratchcode🔒14 min28Coding a Vector Memory Storecode🔒11 min29Coding Episodic Memory from Scratchcode🔒14 min30Assembling a Hybrid Memory Layerproject🔒13 min05Building with Mem06 capsules
Building with Mem0 — 6 chapters.
31Introducing Mem0concept🔒14 min32The Mem0 Core API: add, search, getcode🔒13 min33Designing a Personalized AI Tutorproject🔒13 min34Wiring Memory into the Tutor Loopcode🔒13 min35Personalization in Actioncode🔒12 min36Managing and Forgetting Memoriesdeep-dive🔒12 min06Putting It Together4 capsules
Putting It Together — 4 chapters.
37The Memory Design Decisionintuition🔒13 min38Evaluating Memory Systemsconcept🔒14 min39Failure Modes and Pitfallsdeep-dive🔒14 min40Capstone: A Memory-First Agentproject🔒13 minRatings & reviews
No ratings yet. Yours would be the first.