After one chat, a grocery-delivery assistant's memory extractor proposed the candidate long-term memories below. Which write policy keeps later recall precise?
| # | Candidate memory | Source |
|---|---|---|
| 1 | Allergic to peanuts; never suggest products containing them | user said |
| 2 | Is on the checkout page right now | session state |
| 3 | Probably has a large family (ordered 6 litres of milk) | assistant inference |
| 4 | Wants weekday deliveries left with the building concierge | user said |
| 5 | Seemed irritated about today's delayed order | assistant inference |
| 6 | Asked whether the bakery section is open on Sunday | user question |
Show the answer and explanation
Correct answer: D, Write (1) and (4): durable facts the user stated that matter in future sessions; current states, one-off questions and the assistant's own guesses would crowd out useful recall.
Explanation Memory
Long-term memory is only as good as what goes into it. Every stored entry competes at retrieval time, so low-value or wrong entries reduce recall precision: they are retrieved instead of, or alongside, the memories that matter, and they can steer the assistant in the wrong direction.
A practical write policy stores memories that are:
- durable: still true and useful in future sessions;
- user-stated or verified: not the assistant's own guess;
- high-confidence and actionable: they change what the assistant should do.
| # | Store? | Reason |
|---|---|---|
| 1 | yes | stated by the user, durable, safety-relevant |
| 2 | no | transient session state |
| 3 | no | inference from one order; it may have been for a party or an office |
| 4 | yes | stated preference that applies every weekday |
| 5 | no | momentary mood, useful only in this conversation |
| 6 | no | one-off question, already answered |
Why the other policies fail:
- Storing guesses as facts creates false personalisation (family-pack offers for someone who lives alone) and is hard to correct, because the user never said it.
- "Store everything, retrieval will sort it out" fails because similarity is not usefulness: the irritation note is semantically close to a future delivery question and can crowd out the concierge instruction.
- A mood is transient, not a lasting signal; replaying it in later sessions makes the assistant awkward and can feel invasive.
If inferences are valuable, keep them apart, labelled as low-confidence, and confirm them with the user before relying on them.
Interview tip: describe the extraction prompt as a filter with explicit criteria (durable, user-stated, actionable) and measure retrieval precision on a test set of realistic future queries.