What is hybrid search, and why does pure vector search fail on some queries?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Hybrid search runs lexical retrieval (BM25) and dense vector retrieval in parallel and fuses the results, because each fails where the other excels.
Full worked answer with diagram
Hybrid search runs lexical retrieval (BM25) and dense vector retrieval in parallel and fuses the results, because each fails where the other excels.
Dense embeddings compress text into a semantic vector - great for paraphrase ("laptop won't turn on" matches "notebook fails to boot") but they systematically whiff on exact-match content: error codes (ORA-01555), part numbers, ticket IDs, function names, people's names, legal citations, and fresh or niche jargon the embedder never saw in training. Those tokens carry no distributed semantics; they're arbitrary identifiers, and the embedding treats ORA-01555 and ORA-00942 as near-identical "database error code" concepts. BM25, by contrast, scores literal term overlap with TF saturation and document-length normalization, so a rare exact token is a laser-precise signal. The reverse failure: BM25 scores zero on perfect paraphrases with no shared vocabulary.
Fusion is usually Reciprocal Rank Fusion: each document scores Σ 1/(k + rankᵢ) across the result lists (k≈60), which sidesteps the fact that BM25 scores and cosine similarities live on incomparable scales. Rank in both lists → strong fused score; even top-3 in just one list still surfaces.
In practice hybrid is one of the highest-value, lowest-effort upgrades in RAG: BM25 comes nearly free in Elasticsearch/OpenSearch/Vespa, and in Postgres you either approximate it with built-in full-text ranking (which is not BM25) or add a BM25 extension such as ParadeDB's pg_search alongside pgvector. Anthropic's contextual-retrieval results are a good citation here: adding (contextual) BM25 to contextual embeddings measurably cut retrieval failures versus embeddings alone. Also mention the modern middle path - learned sparse retrieval like SPLADE, where a transformer produces weighted term expansions, capturing some semantics while keeping an inverted-index footprint.
Worth sketching. Two legs and one fusion step is the entire answer, and labelling what each leg is good at saves a paragraph of explanation.
flowchart LR
Q["Query"] --> B["BM25 over<br/>inverted index"]
Q --> D["Dense ANN over<br/>chunk vectors"]
B -->|"exact tokens: error codes,<br/>SKUs, surnames"| F["RRF fuse on rank,<br/>not on score"]
D -->|"paraphrase with<br/>no shared vocabulary"| F
F --> T["Merged candidate list<br/>for reranking"]
What a good answer covers
- Hybrid search runs lexical retrieval (BM25) and dense vector retrieval in parallel and fuses the…
- Dense embeddings compress text into a semantic vector - great for paraphrase ("laptop won't turn on"…
- Those tokens carry no distributed semantics; they're arbitrary identifiers, and the embedding treats…
- BM25, by contrast, scores literal term overlap with TF saturation and document-length normalization, so…
- Fusion is usually Reciprocal Rank Fusion
Key terms: lexical retrieval (BM25) · dense vector retrieval · exact-match content · Reciprocal Rank Fusion · learned sparse retrieval
In the glossary: Hybrid search · BM25 · SPLADE · ANN · RRF · Reranking
Interviewer follow-ups to expect
Why fuse by rank instead of normalizing and adding the scores?
Give a query distribution where you'd weight BM25 above dense. Where do queries like "who owns service X?" land - lexical or semantic?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep