Contrast episodic and semantic long-term memory with examples from a personal-assistant agent
Episodic memory stores time-stamped events; semantic memory stores distilled stable facts. Episodic is retrieved on demand; semantic is loaded as persona context every session.
Think of what you remember about a friend. You remember specific moments, that birthday dinner two years ago when you both got food poisoning, and these come with dates and details. That is episodic. You also remember stable facts about them, they hate cilantro, they live in Berlin, they work as a vet. These are not tied to a particular event, just things that are true. That is semantic. An assistant needs both. The specific story of last month's Pinecone decision is episodic; 'the user always wants Python code, not TypeScript' is semantic. The two are stored, indexed, and used differently.
Detailed answer & concept explanation~6 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
8 min: definitions with examples, retrieval pattern difference, write policy (extract semantic from episodic asynchronously), decay policies, conflict handling, framework comparison across Mem0, Zep, Letta, LangGraph.
Real products, models, and research that use this idea.
- Mem0 exposes episodic and semantic memory as first-class API types with separate extraction and retrieval paths.
- Zep's temporal knowledge graph models episodic events as time-stamped graph edges and semantic facts as entity attributes.
- Letta (formerly MemGPT) splits memory into archival_memory (episodic, large, vector-indexed) and core_memory (semantic, small, in-prompt).
- ChatGPT's persistent memory in 2026 surfaces both, explicit user-stated preferences plus inferred event history, with separate UI affordances for each.
- LangGraph applications typically implement the split in the application state schema, with semantic facts in a persona dict and episodic events in a vector store.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you implement the asynchronous extraction step that distills semantic facts from episodic memory?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Storing every interaction as either pure episodic or pure semantic, missing that the same conversation often generates both kinds and they have different lifecycles.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.