All Questions
Ai Coding And Product Systems easy

Your ChatGPT-style assistant must let users reopen old threads, edit a past message to create a branch, and search their history. How should conversations be stored?

  1. A Store each message as a row keyed by conversation ID, with a parent ID for branches.
  2. B Store only the latest prompt string sent to the model, since it holds the full prior conversation.
  3. C Keep conversations only in the model's context window, since the model remembers past sessions.
  4. D Store each thread as a single text blob that is rewritten in full every time a new message arrives.

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

Get the app

Related questions