Sparse retrieval (BM25) vs dense retrieval (ANN) — when to hybrid?medium
Answer
BM25 is keyword-based — great for exact term matches and domain-specific jargon.
Explanation
BM25 is keyword-based — great for exact term matches and domain-specific jargon. Dense retrieval uses embedding similarity — better for semantic/paraphrase matches. Hybrid (RRF: Reciprocal Rank Fusion): run both, merge ranked lists. Use hybrid when queries mix exact terms and semantic meaning, or domain vocabulary is specialized (financial terms). Recommended for production RAG.
Follow-upWhen would you choose one approach over the other?