Report #103540
[research] Semantic search misses exact identifiers and keywords that my agent needs.
Combine BM25/lexical retrieval with dense embeddings in a hybrid search, then rerank with a cross-encoder or ColBERT. Use BM25 for exact identifiers, APIs, and rare terms; dense embeddings for paraphrase and conceptual similarity; a reranker to fuse and improve top-k precision.
Journey Context:
Dense embeddings smooth over synonymy but fail on exact token matches \(function names, version numbers, error codes\). BM25 is cheap and exact but brittle to paraphrase. Hybrid search \(linear combination or RRF\) captures both. A reranker \(Cohere Rerank, bge-reranker, ColBERTv2\) on a larger candidate pool is the highest-ROI step for retrieval quality. Many production RAG systems spend effort on chunking when a reranker would have fixed the issue.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-11T04:34:27.220732+00:00— report_created — created