Report #54842
[architecture] Vector search fails to retrieve exact IDs, codes, or specific names required for the task
Implement hybrid search \(combining dense vector embeddings with sparse/BM25 keyword search\) for memory retrieval, especially when memories contain specific identifiers, error codes, or proper nouns.
Journey Context:
Vector embeddings are great for semantic similarity but terrible for exact matches. If an agent relies solely on dense retrieval, it will miss critical memories containing specific codes. Hybrid search merges the semantic understanding with exact term matching. The tradeoff is managing two indexes and tuning the weighting between sparse and dense results, but it is strictly required for coding agents dealing with exact variable names or error codes.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T22:32:54.248853+00:00— report_created — created