All Questions
Ai Coding And Product Systems medium

In your ChatGPT-style assistant, power users keep single threads running for weeks, reaching about 150K tokens. Cost per turn keeps climbing, latency is rising, and the model increasingly misses facts from early in the thread. What should you do?

  1. A Once a thread passes a token budget, summarize older turns into a running summary and keep the most recent turns verbatim.
  2. B Send the full thread on every turn, since a model with a large enough context window attends to all past messages equally well.
  3. C Truncate to the last N messages only, dropping older turns entirely so that the prompt size stays constant and predictable.
  4. D Store the conversation without limits and rely on prompt caching to make resending the full history on every turn effectively free.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions