All Questions
Agents And Tool Use hard

A support agent should remember each customer's preferences across months of sessions. The team appends every past session summary to the system prompt. After six months, prompts exceed 80,000 tokens, latency has doubled, and the agent sometimes ships to an address the customer replaced weeks ago. What redesign fixes both problems?

  1. A Move to a model with a larger context window so the complete history fits and the latest address is always somewhere in view.
  2. B Recursively compress the full history into one rolling summary kept in the system prompt, regenerated after every session ends.
  3. C Fine-tune the model nightly on each customer's sessions so preferences are internalized and no history needs to be in the prompt.
  4. D Store memories as timestamped records with update semantics in a long-term store, retrieving only those relevant to each request.

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

Get the app

Related questions