Design a summarizer prompt that preserves user-stated facts under aggressive compression
Write the shape of a summarizer system prompt that compresses 20 turns to 500 tokens without dropping user-stated facts. What instructions are essential? What is the failure mode you are designing against?
Use a sectioned summary with a protected user-facts block, per-section token caps, and a verbatim-quote rule for stated facts. The failure mode is fluent prose that quietly drops the one fact the user most cared about.
Picture a hotel concierge who takes notes about a guest. A bad concierge writes one paragraph: "the guest seems easy-going and likes Italian food." A good concierge fills out a card with labeled boxes: name, room number, allergies, preferences, open requests. The labeled boxes mean nothing critical gets forgotten just because the concierge ran out of room. A summarizer prompt works the same way. If you ask for free-form prose, the summary will read smoothly but the allergy might silently disappear. If you ask for labeled sections with a protected facts box, the allergy survives every refresh because there is a named place for it to live.
Detailed answer & concept explanation~5 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.
State the framing: structured extraction that also produces narrative. List the four sections with per-section caps. Walk through the five operational instructions. Name the fluent-summary failure mode and explain why sectioning defeats it. Close with the comparison to extracted-fact stores.
Real products, models, and research that use this idea.
- Mem0 implements the durable-facts idea as a separate extracted-fact store, sidestepping prose summarization for those specifics.
- Anthropic's Claude projects expose a custom-instructions block that effectively carries verbatim user-stated facts across sessions.
- LangChain's ConversationSummaryBufferMemory exposes the summarizer prompt as a hook so teams replace the default with a sectioned variant.
- OpenAI's Assistants memory in 2026 carries user-stated preferences as discrete items rather than free-form summary text.
- Letta uses a typed memory block that the model can read and edit, with sections explicitly protected from compression.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow do you measure whether your summarizer prompt is actually preserving user-stated facts?
QWhat is the interaction between this prompt design and a separate extracted-fact memory store?
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.
Asking the summarizer for free-form prose with a total token budget. Without per-section caps and a protected facts block, the model trades user facts for narrative polish.
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.