Swarnim
Tiwari
AI Systems Researcher
Every conversation with an AI starts from zero. The model has no memory of what you explained last week, what it learned about your preferences, or what happened in the session before this one. This is not a bug. It is how transformers work.
Context engineering is the practice that grew up around solving this. Not by changing the architecture of the model but by building systems around it that manage what enters the window, in what form, and when to remove it.
This volume compares four tools specifically built for the memory layer of AI applications. Mem0, Zep, LangMem, and Letta each solve the same underlying problem from a genuinely different angle. Understanding which angle fits your workload is the real engineering decision.
I am a student in India. This volume took longer to understand than any previous one. Memory in AI involves temporal graphs, OS-style paging concepts, semantic deduplication strategies, and compression tradeoffs that each have real production consequences.
AI Systems Studies — Publication Series
Vol. 01Production AI Architecture — OpenAI, Anthropic, Palantir, NVIDIAPublished
Vol. 02AI Agent Frameworks — OpenAI SDK, LangGraph, CrewAI, MastraPublished
Vol. 03Vector Databases — Pinecone, Weaviate, Milvus, QdrantPublished
Vol. 04AI Observability — LangSmith, Langfuse, Helicone, W&B WeavePublished
Vol. 05Inference Infrastructure — vLLM, SGLang, TensorRT-LLM, TGIPublished
Vol. 06Context Engineering — Mem0, Zep, LangMem, LettaThis Study
Vol. 07Memory SystemsPlanned
Vol. 08RAG ArchitecturesPlanned