Problem
New Computer builds Dot, a personal AI assistant with long-term memory. Memories are created during conversations and retrieved later, so the structure written at creation time decides whether retrieval works as memories accumulate. The team had several candidate retrieval methods (semantic, keyword, BM25, filters on memory fields) and no quick way to compare them. To test while preserving user privacy, the team avoided real user data.
Example from the article: queries such as "Which tasks did I want to get done this week?" are frequent, and the status and date meta-fields let retrieval filter memories before ranking. Other queries worked better with similarity or BM25 search.
Solution in brief
Build a dataset from synthetic users with LLM-written backstories, label the relevant memories for each query, and score every retrieval variant by precision, recall and F1 as a tracked experiment. The same synthetic users also generate queries to check prompt changes for regressions in a comparison view.
Questions this case answers
- How to choose a retrieval method for dynamically created documents when real user data cannot be used for testing
- How to detect regressions across many query intents when changing a highly variable generation prompt
- How to compare several retrieval methods for an LLM agent's long-term memory on labeled data?
- How to build an evaluation set for a personal assistant without using real user conversations?
Tools and methods
- Synthetic users — LLM-generated backstories and seed conversations that fill the memory database without real user data.
- Semantic search, keyword search, BM25 — retrieval methods compared on the same labeled queries.
- Meta-field filters — status (COMPLETED, IN PROGRESS) and date fields (start, due) used to pre-filter memories.
- LangSmith — dataset storage, experiment runs, comparison view and prompt playground.
Google or a one-time email code. No password.