LLMs are stateless: memory is whatever you put back into the context. Short-term memory is the running conversation, managed with buffers (last N turns), token windows and summaries (week 28 compaction).
Long-term memory persists across sessions: user preferences, facts learned, past decisions. It is stored externally and retrieved into context when relevant.
Kinds worth distinguishing: semantic (facts about the user or world), episodic (what happened in past interactions), procedural (learned instructions or how-tos).
Going deeper
Memory raises product questions as much as technical ones: what the user can see and delete, how long memories live, and whether memories cross contexts (work vs personal).
Best resources for this lesson
Where this comes back
- Week 28Compaction manages short-term memory.