Hybrid Search: Why Single-Mode Search Fails in RAG
Keyword search (BM25) finds exact term matches but misses synonyms and meaning. Semantic search (vectors) understands meaning but misses exact terms, acronyms, and proper nouns. Hybrid search combines both for dramatically better retrieval quality.
How Hybrid Search Works
- Query runs through both BM25 keyword index and vector similarity search
- Results from both are merged using Reciprocal Rank Fusion (RRF) or weighted scoring
- A reranker (cross-encoder model) reorders the combined results by relevance
- Top results are passed to the LLM as context
Learn Hybrid Retrieval
Module 7 covers hybrid search, reranking, query expansion, and Graph RAG.