Long-term memory filled up with one-off details («asked about invoice #412»), and retrieval now returns noise.
- ADecide what is worth remembering AT WRITE TIME - durable facts about the person, not the transcript of a task
- BRetrieve more items so the useful ones are included
- CGive the memory store a bigger index and a higher similarity threshold, so retrieval can skip the one-off details and still find everything useful
- DClear memory every night and start fresh
Answer: A
Decide what is worth remembering AT WRITE TIME - durable facts about the person, not the transcript of a task
Why
Retrieval quality is decided by what you agreed to store. Reading harder cannot un-write a thousand irrelevant notes, and nightly wipes throw away the durable facts along with them - the filter belongs on the write.
- MemoryA long-running assistant needs to remember facts across many sessions.
- MemoryYour agent rebuilds an expensive document-embedding index from scratch on every run, even when the documents haven’t changed.
- MemoryYour agent keeps its long-term memory in one global store.
- MemoryYour agent saved a user’s shipping address a year ago and now answers a delivery question with it - but the user moved months ago.
More on Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.
Real situations from building agents - with the answer and why.
Solve a new one every day on the Path