Hybrid Search

Authors 7 articles 80 min total read
Definition
A retrieval method that runs keyword search (typically BM25) and dense vector search in parallel, then fuses the ranked results — usually with Reciprocal Rank Fusion — to combine exact-term precision with semantic understanding.
Also called: sparse-dense retrieval, BM25 + vector search, lexical-semantic search

What hybrid search is

Most retrieval-augmented generation (RAG) systems started with pure dense vector search — embed the query, embed the documents, return whatever sits closest in vector space. That works for paraphrased questions but breaks the moment someone asks about “ISO 27001,” “GPT-4o,” or a specific customer order ID. The vector model treats those as hints, not literal targets, so it returns documents that are semantically nearby but lexically wrong. Hybrid search closes that gap: a keyword retriever runs alongside the vector retriever, so exact terms still hit while paraphrases still get found.

Under the hood, two retrievers run in parallel. The sparse side uses BM25 (Best Match 25), a keyword ranking function that scores documents by how often query terms appear and how rare those terms are across the corpus. The dense side uses an embedding model — OpenAI’s text-embedding-3 or a Cohere embed model — to turn each query and document into a vector, then ranks by similarity. Each retriever returns its own ranked list of candidates.

The two lists are then fused into one. The standard method is Reciprocal Rank Fusion (RRF), which scores each document by its position in each list rather than by raw retrieval scores — a document ranking well in both lists beats one ranking well in just one. According to Weaviate Blog, RRF is the default fusion algorithm in most managed vector databases, and several vendors expose a tunable weight so teams can dial keyword precision up for product catalogs or shift toward semantic recall for narrative content.

A document found by both the keyword and the vector retriever rises to the top; fusing by rank keeps two scoring systems comparable. · More AI cheat sheets
  • Hybrid search fuses two retrieval channels — sparse (BM25/SPLADE) for exact terms, dense vectors for meaning — typically merged with reciprocal rank fusion.
  • Production leaders in three different domains — Notion, Perplexity, and Glean — already run hybrid as the retrieval default, not an experiment.
  • Weaviate and Qdrant now ship hybrid as a built-in query type, but you still have to name the fusion algorithm and its k parameter explicitly.
  • The hard part is the merge itself: two rankers score in different mathematical worlds, and naive averaging fails in ways that only surface in production.

How hybrid search is used in practice

The most common place to encounter hybrid search is inside a production RAG pipeline. A product manager evaluating a chat-with-your-docs feature, a developer building a customer support assistant, or a team rolling out an internal Q&A tool will all run into it because pure vector search misses documents that depend on specific names, codes, or jargon. Swapping in hybrid is usually the first retrieval upgrade once a demo hits real users.

The integration pattern is the same across stacks. Frameworks like LangChain and LlamaIndex expose hybrid retrievers as a one-line swap from their dense-only equivalents. According to Vertex AI Docs, managed vector databases — Vertex AI Vector Search, Weaviate, Milvus, and Pinecone — handle the BM25 index, the vector index, and the fusion step natively, so application code sees a single query() call. The team picks an embedding model, points the index at the corpus, and tunes the sparse-dense weight if early evaluations show the system leaning one way.

In production, hybrid search is usually paired with a reranker — a smaller model that re-scores the top fused candidates so the most relevant documents end up in the final context window.

Don’t tune the sparse-dense weight in the abstract. Write twenty representative queries, run them through pure dense and hybrid retrieval, and see where each fails. Most corpora have either heavy keyword anchors (product IDs, error codes) or heavy semantic drift (support narratives), and the right weighting becomes obvious.

The hybrid search reading path: fusion mechanics before the market noise

Start with what hybrid search is and how BM25 plus dense vectors beat either alone — it frames the two-retriever pattern and the fusion step before you touch any implementation detail. Then read BM25, SPLADE, and reciprocal rank fusion, which names the actual building blocks — a lexical index, a learned-sparse index, and the fusion algorithm that merges them — so the vocabulary in every later article stops being guesswork. Read score mismatch and tuning hell in the same sitting: it is where the theory in the first two articles meets the failure modes you will actually debug.

Once the mechanics are solid, the Weaviate, Qdrant, and SPLADE build guide turns the three specification surfaces — sparse, dense, fusion — into a working pipeline. For the market context behind that choice, how hybrid search powers production RAG at Notion, Perplexity, and Glean and the Weaviate BlockMax WAND / Qdrant Query API standardization race show where the vendors and the production leaders are converging. Close with hybrid search looks neutral but isn’t — if your corpus isn’t monolingual English, read it before you ship the defaults.

MAX asks: 'I added BM25 next to my vector search and results got worse, not better — why?' MONA answers: 'A keyword score and a cosine similarity live in different number systems. Average them naively and one outlier wrecks the merge.' — comic dialog.
Fusion is the failure point — not either retriever alone.

How hybrid search differs from reranking, query transformation, and contextual retrieval

Three neighbouring stages get folded into “hybrid search” in casual conversation, and each mix-up sends tuning effort to the wrong place.

  • Hybrid search is not reranking. Fusion runs at retrieval time, merging two retrievers’ ranked lists into one candidate set — it widens what gets considered. Reranking runs afterward, on that already-fused shortlist, with a heavier model that reorders for precision. Tune the fusion weights to fix what gets found; tune the reranker to fix what gets found first.
  • Hybrid search is not query transformation. Query transformation rewrites or expands the question before either retriever runs; hybrid search decides nothing about the query itself, only how two retrievers’ results get combined once they have both already run. Teams that add HyDE hoping it will fix a bad fusion are solving the wrong stage.
  • Hybrid search is not contextual retrieval. Contextual retrieval changes what gets embedded and indexed in the first place — prepending context to each chunk — before hybrid search ever runs its two retrievers over that index. Fix the chunk first; fusion cannot recover context that was never indexed.

When hybrid search fits — and when it doesn't

ScenarioUseAvoid
RAG over technical documentation with specific product names, error codes, or version numbers✅
Pure semantic Q&A over conversational text where users only ask paraphrased questions❌
Customer support knowledge base mixing tickets, articles, and policies✅
Real-time recommendation engine where latency matters more than recall❌
Legal or compliance search where missing an exact citation is unacceptable✅
Tiny corpus of a few hundred short documents where BM25 alone already ranks well❌

Q: Do the major vector databases handle hybrid search the same way? A: No — Weaviate and Qdrant each ship their own fusion algorithm and query surface (Weaviate’s relativeScoreFusion and rankedFusion, Qdrant’s RRF and DBSF), and both are racing to standardize behind a single query endpoint. The BlockMax WAND / Qdrant Query API race tracks who is winning it.

Q: Which production teams are actually running hybrid search, not just benchmarking it? A: Notion, Perplexity, and Glean — three different domains, workspace AI, web search, and enterprise search — all converged on hybrid as their production default over pure-vector retrieval. How hybrid search powers production RAG at scale maps what they share.

Q: Is hybrid search worth building, or should dense-only retrieval stay the default? A: Add the sparse leg when exact terms matter — statute numbers, drug codes, function names, SKUs; dense-only stays fine when paraphrase tolerance is what your queries actually need. The Weaviate, Qdrant, and SPLADE build guide spells out the three specification surfaces before you commit.

Q: Does hybrid search retrieve fairly across languages? A: Not automatically — BM25’s lexical matching was tuned on languages with simple morphology, so the keyword leg can under-serve morphologically rich languages even while the vector leg reads them fine. Hybrid search looks neutral but isn’t traces the mechanism.

Part of the retrieval-augmented generation stack · closest neighbour: reranking. Coming to retrieval from a software background? Start with the story: Debugging RAG Failures: Why Developers Need a New Diagnostic Model.

Sources

1

Understand the Fundamentals

Hybrid search isn't just two retrievers running in parallel — the real engineering challenge lives in how their scores get fused. Understanding why dense and sparse methods fail in opposite ways is what makes the combination work.

2

Build with Hybrid Search

The build guides walk through wiring BM25 and vector search together, picking a fusion strategy, and tuning the weights without overfitting to a benchmark. Expect trade-offs around latency, index size, and how aggressively you rerank.

4

Risks and Considerations

Hybrid search looks like a neutral combination of two methods, but it inherits the biases of both — including how poorly keyword matching handles morphologically rich languages. Worth thinking about before assuming the defaults are fair.