Hybrid Search: Why Vector Search Is Not Enough
Vector search finds meaning but is blind to exact formulations. Keyword search is precise but does not understand synonyms. The solution is to combine both into a hybrid search.
The Problem with Pure Vector Search
Vector search searches by meaning: “cat” will find “kitten”. But when an exact SKU like “XK-4820” or a rare term is needed, it misses. Embeddings simply do not differentiate such details.
The Problem with Keyword Search
Classic BM25 finds exact matches but does not understand paraphrasing: “car” will not find “automobile”. Users, however, phrase questions in any way they like.
What Hybrid Search Does
Hybrid search runs both algorithms in parallel and merges the results:
flowchart LR
A[Query] --> B[Vector Search]
A --> C[BM25]
B --> D[Aggregation]
C --> D
D --> E[Top-20 Candidates]
This closes the weaknesses of both approaches.
How to Implement
- In LangChain — EnsembleRetriever.
- In Qdrant — built-in hybrid search.
- Manually — run two searches and concatenate the results.
What’s Next
After merging, reranking usually follows: the top-20 candidates are resorted, leaving 3–5 best for the LLM.
