All Questions
Agents And Tool Use medium

A personal assistant agent should remember user preferences across months of sessions. Today it appends every past session to the system prompt. Prompts are now about 150K tokens, latency is high, and the model often ignores facts stated long ago. What should you change?

  1. A Move to a model with a larger context window so the entire history fits comfortably without any truncation of old sessions.
  2. B Keep only the most recent N sessions in the prompt and drop older ones, since recent preferences are the most relevant ones.
  3. C Summarize the whole history into one paragraph rewritten each session, and prepend that paragraph to every system prompt.
  4. D Extract durable facts into a long-term store and retrieve only the entries relevant to the current turn into the context.

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

Get the app

Related questions