Report #101612
[architecture] Pure vector search misses exact keywords, IDs, and rare terms in RAG queries.
Run dense vector retrieval and sparse BM25 retrieval in parallel, then fuse their ranked lists with Reciprocal Rank Fusion \(RRF, k=60\). Optionally rerank the fused top-K with a cross-encoder. Prefer RRF over raw-score weighting to avoid normalizing incomparable score distributions.
Journey Context:
Dense embeddings excel at paraphrase and conceptual matching but fail on rare tokens, codes, names, and numbers. BM25 fills that gap with exact-token matching and IDF weighting. Weighted linear fusion requires careful normalization and tuning; RRF is parameter-light and robust across different score scales. Production pipelines run both retrievers concurrently and optionally rerank. Empirical RAG work shows hybrid retrieval plus reranking can cut retrieval failure roughly in half versus vector-only search.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-07T05:09:00.774044+00:00— report_created — created