Applications / active
Agent memory retrieval: a learned search fusion
Can a small local search service find the passage in an agent's working notes that answers a question better than keyword lookup, with no model calls at query time, and can a check without a model replace a paid model judge for contradictions?
- Built
- Benchmark questions were written once per sampled passage, each with a verbatim answer quote, and every change was scored against keyword lookup with Wilson intervals or exact paired tests on the same questions. Keyword, fielded BM25 and dense-embedding signals, sentence windows and note descriptions were combined by a learned listwise fusion, cross-validated with folds grouped by passage; variants that did not win were reverted rather than served.
- Found
- The served fusion is no longer worse than keyword lookup on any measure and is better where the wording differs; adding a larger embedding model, served from a second machine, cut paraphrase top-5 misses several-fold. Distilling that model into the small one, and synthetic questions from a tiny model, both failed and were not served. A model-free contradiction check matched the paid judge on the judge's own seeded set.
- Boundary
- One corpus of working notes, with benchmark questions written by agents rather than people. Keyword-style questions showed no difference, a paraphrase contradiction is not caught, and no method predicted which note an agent would read next.
- Next question
- Do people's own questions about the notes behave like the benchmark's paraphrases?
Evidence and development
8 research records.
A contradiction check with no model call →No retriever predicts which note an agent reads next →Question benchmark: keyword lookup is strong, small embeddings are worse →Learned fusion beats keyword lookup where the wording differs →Only a larger embedding model closes the vocabulary gap →Distilling the large embedder into the small one fails →Synthetic questions from a tiny model do not help →The large embedder served from a second machine: 8x fewer misses than keyword lookup →