How does the ChatGPT-style cross-session memory differ from within-session rolling summary?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Rolling summary is intra-session compression that dies with the chat; persistent memory is a cross-session user-fact store that boots every new chat with relevant context.
Imagine a long phone call with a friend versus a friendship across many phone calls. During one call you sometimes recap what you were just talking about so the call stays coherent. That recap dies when you hang up. Across many calls, your friend remembers things about you: where you live, what you do, what coffee you drink. They bring that up in future calls. Those are two completely different kinds of memory. One is about not losing track inside a single conversation. The other is about being a continuing relationship. A chat product needs both, and they live in different places.
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.
4 minutes: rolling summary scope and lifecycle, persistent memory scope and lifecycle, why frameworks separate them, failure modes from conflation, the 2026 production shape.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Conflating the two as 'memory' and putting them in the same slot. They solve different problems, have different lifecycles, and need different storage and retrieval logic.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.