Concept guide · Embeddings and vector search
What is hybrid search?
A slower explanation for when the short interview answer is not enough. Start with the intuition, then connect it to the technical idea and the way an interviewer expects you to reason about it.
ML area
Generative AI → Hybrid search
Interview format
Core · Scenario
Question
GENAI-037
Start with the idea
In simple terms
Hybrid search runs a meaning-based search and a keyword search, then combines their results. It is useful when the same question contains both a concept and an exact term.
Make it concrete
For “What does error E403-17 mean in the payment gateway?”, vector search can find related troubleshooting guidance while keyword search protects the exact error code.
Build the answer
How to approach it
- 1Show the exact-token failure that dense search alone might miss.
- 2Explain how candidate lists are fused or reranked.
- 3Measure the quality gain against extra storage, complexity, and latency.
Go one level deeper
The technical explanation
The dense and sparse systems usually produce scores that are not directly comparable, so the application needs a fusion or reranking policy. Reciprocal rank fusion is one way to combine rankings without requiring identical score scales. Hybrid search adds indexing, tuning, and latency, so validate it against a query set containing exact names, codes, synonyms, and ordinary natural-language questions.
Say this in the interview
Hybrid search combines sparse lexical retrieval with dense semantic retrieval, then merges or reranks the candidate lists. It is useful when a query contains both meaning and exact tokens such as product codes, legal phrases, error messages, or names. Measure the benefit on your own query mix.
Keep preparing