Report #4804
[architecture] Agent fails to retrieve relevant memories because the user's query phrasing doesn't match the stored memory's phrasing
Use Hypothetical Document Embeddings \(HyDE\). Have the LLM generate a hypothetical answer to the user's query first, then embed that hypothetical answer to search the vector store.
Journey Context:
Users ask questions; memories store observations. A query 'how do I fix the auth bug?' might not match a memory 'Token validation regex was failing due to missing boundary'. HyDE bridges the lexical and semantic gap by transforming the question into the shape of the answer before searching, significantly improving recall in memory-heavy architectures.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T20:06:43.587413+00:00— report_created — created