Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
BM25 catches exact-term hits embeddings miss; embeddings catch semantic paraphrases BM25 misses. Fusing the two ranks beats either alone on real corpora.
Imagine you're searching a library two different ways. One librarian (BM25) is great at finding books where your exact words appear, perfect when you ask for 'GDPR Article 17' or a specific product name. The other librarian (dense embeddings) is great at finding books that mean the same thing as your question, even if the words are different, perfect when you ask 'what about right to be forgotten?' and the book uses different language. Each librarian misses what the other catches. So you ask both, then combine their picks. That's hybrid retrieval. You get the precision of exact-term matching plus the recall of semantic similarity, with a fusion step to merge the two rankings into one.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3 min: orthogonal failure modes + RRF formula and k=60 + production databases that ship hybrid + when to skip + how rerank composes on top.
| Concern | BM25 | Dense embeddings | Hybrid (RRF) |
|---|---|---|---|
| Exact-term match | Strong | Weak | Strong |
| Paraphrase / synonymy | Weak | Strong | Strong |
| Out-of-vocab tokens | Strong (treated as rare) | Weak (smeared) | Strong |
| Index build cost | Cheap (inverted index) | Expensive (GPU embed) | Both costs |
| When it wins solo | SKU/identifier search | Conversational paraphrase | General-purpose RAG |
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Assuming embeddings always beat keyword search. On acronyms, proper nouns, and code identifiers, BM25 routinely outperforms dense retrieval.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.