Zenaique

In a multi-turn conversation, when should you reset history, carry full state, or summarize?

MCQ·Medium·4.0 · 0·~1 min·Asked atDroomEvenupRoblox·Relevant atAnthropicOpenAI
Attempt it
TL;DR

Reset on topic shift, carry full when turns depend on each other, summarize when history is long but the gist matters; pick by coupling and budget, not turn count.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

Imagine taking notes during a long meeting. Sometimes the topic changes completely and your old notes are just clutter, so you flip to a fresh page. Sometimes every sentence builds on the last and you keep the full transcript in front of you. Sometimes the meeting has been going for hours and you cannot read it all, so you write a one-paragraph summary and use that instead. Multi-turn LLM chats work the same way. The right choice depends on whether the new turn really needs everything that came before, only the gist, or none of it.

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

Multi-turn chat looks simple from the outside. The user sends a message, the model responds, the next turn arrives. The complexity hides in what you put in the prompt every turn after the first. That is the history strategy, and it is one of the most consequential decisions in any LLM application.

The three strategies (reset, carry full, summarize) are not preferences. They are different answers to a budget allocation problem. You have a context window, a position-bias curve, a per token cost, and a latency budget. History strategy is how you spend those resources across the conversation.

This deep dive walks through the three strategies, the triggers that select between them, how production agents combine them, and the failure modes a senior engineer should be able to call out.

Reset, the cheapest signal you can send

Reset means flushing prior turns before the next prompt. The right trigger is topic shift, not turn count. When the user pivots from one task to another, old turns become noise: they compete for attention against the new context and burn tokens for no benefit.

Detecting the shift is itself an engineering choice. Embedding similarity between consecutive turns is a cheap signal: a sharp drop usually means a topic change. A small classifier or even a keyword heuristic works for narrower domains. Some products expose an explicit New chat button and lean on the user to make the call.

The failure mode here is resetting too aggressively. If you flush every few turns, coupled conversations like debugging or stepwise reasoning lose context and the user has to repeat themselves. Tune the threshold, do not pick a fixed cadence.

Carry full, when coupling is the dominant signal
Summarize, compressing long history without losing the gist
The hybrid pattern that ships in production
Failure modes and senior-level caveats
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

Real products, models, and research that use this idea.

  • OpenAI Assistants exposes a thread abstraction with automatic truncation and summarization helpers, so teams pick a strategy without hand-rolling the loop.
  • Anthropic Claude Projects keeps a verbatim recent window plus a project-level summary that survives across sessions, mirroring the hybrid pattern.
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QHow would you detect a topic shift reliably?
A

Combine an embedding-similarity drop between consecutive turns with a small classifier or keyword heuristic; flush below a tuned threshold.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

Carrying full history every turn because losing context feels dangerous, while ignoring the token cost, the position-bias dilution, and the noise that irrelevant turns add when the topic has shifted.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • When to reset vs carry vs summarize

  • Topic shift as the trigger, not turn count

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Flashcard: what is a stop sequence in an LLM API call and what is it used for?
Flashcard·Easy