A few weeks ago I wrote about conversation memory with a rolling summary — two tables, store every turn, keep one running summary, feed the model summary + recent turns. That's the floor of decent chatbot memory. Production-ready for most cases, way better than re-sending the whole transcript.
But that post left out something important, and I want to fix that now. The single rolling summary is structurally the lower-recall option for chatbots whose conversations have durable structure — preferences, constraints, goals, the things a user states explicitly and expects the bot to remember.
This isn't my opinion. It's in LangChain's own docs:
A collection of narrow, individually-updatable memory documents yields higher recall than a single continuously-updated profile/summary — because it's easier for an LLM to generate new objects than reconcile new information with an existing profile.
If your bot is helping users plan a trip, manage a diet, configure a SaaS account, take a support ticket — anything where they state facts the bot is supposed to act on later — a single prose summary is the wrong shape. You'll watch contradictions stack up inside the paragraph until someone notices.
What goes wrong with a single summary
Take the trip-planning example from the original post. User says "I'm vegetarian" in turn 5. Twenty turns later they say "actually I eat fish now, I'm pescatarian." Your rolling summary, depending on when you last regenerated it, ends up with one of three failure modes:
- Old belief sticks — the latest regeneration prompted on the full transcript happened to compress over the new statement. Bot still thinks vegetarian.
- Both beliefs coexist — the summary now reads "the user is vegetarian and also eats fish." The model picks one when generating the next reply. You don't know which.
- Silent drift — every regeneration loses a little fidelity; six turns later "pescatarian" became "flexible about diet" because the model interpreted, generalized, and re-summarized.
You can't SELECT * FROM a paragraph to find out what the bot believes. You can't write a test against it. You can't show the user "here's what I have about you, fix anything wrong." The summary hides all of that inside one prose blob.
The next-step pattern: typed facts
Same shape as the original — two tables — but the second table changes:
CREATE TABLE IF NOT EXISTS recipe_chat_facts (
fact_id INTEGER PRIMARY KEY,
session_id TEXT,
category TEXT, -- 'dietary', 'budget', 'destination', 'health', 'goal'
fact_key TEXT, -- 'pescatarian', 'max_usd', 'cities', 'motion_sick', 'trip_length_days'
fact_value TEXT, -- 'true', '3000', 'Tokyo,Kyoto', 'true', '10'
confidence REAL, -- 0.0–1.0
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
embedding VECTOR(384)
);
One row per durable attribute. The (session_id, category, fact_key) triple is the natural key — the runtime UPSERTs on that, never appends. So when "I eat fish now" happens:
UPDATE recipe_chat_facts
SET fact_key = 'pescatarian',
fact_value = 'true',
confidence = 0.95,
updated_at = CURRENT_TIMESTAMP,
embedding = EMBED('dietary: pescatarian=true')
WHERE session_id = 's1' AND category = 'dietary';
The old vegetarian belief is gone. Not summarized over. Not coexisting. Gone. The table has one dietary row.
That's the win. Surgical updates instead of compression cycles.