All articles
AI & LLMsNovember 23, 2026 6 min read

Hybrid Search for RAG: Why BM25 Still Beats Pure Vectors in 2026

Pure vector search sounds modern, but it quietly fails on acronyms, product codes, and exact phrases. Here's how we wire BM25 and dense retrieval together — and the reranking step most teams skip.

Pure vector search has been oversold. We've migrated three production RAG systems off "just embed everything" in the last year, and every time the fix was the same: put BM25 back in the loop, fuse the scores, and rerank the top candidates. The combined pipeline is boring, cheap, and consistently beats whatever single-retriever setup it replaced.

This post is the version of that advice we wish we'd had eighteen months ago.

Why pure vector search quietly fails

Embeddings are good at semantic similarity. That's exactly the problem when your users don't want semantic similarity — they want the document that literally contains ERR_CONN_RESET or SKU A1138-B or the phrase "section 4.2(c)".

Failure modes we've seen in production:

  • Exact tokens get smeared. A query for GPT-4.1-mini retrieves generic "small language model" chunks because the embedding model has never seen that exact string and reduces it to something close to "small OpenAI model".
  • Acronyms collide. ADA means one thing in accessibility docs, another in a crypto wiki, and a third in a healthcare knowledge base. Dense retrieval blurs them.
  • Negations and numbers are invisible. Embeddings famously struggle with "not", version numbers, and dates. A query for "breaking changes in v3.2" happily returns v2.x migration notes.
  • Long tail queries starve. If a term appears in two documents out of fifty thousand, BM25 will find them. A cosine-similarity sort on a dense index often won't, because the embedding neighbourhood is dominated by frequent concepts.

None of this is a knock on embeddings. It's a knock on only using embeddings.

What hybrid search actually is

Hybrid search means running two retrievers in parallel and merging their results:

  1. A lexical retriever (BM25, or BM25F for fielded docs) that scores on term overlap.
  2. A dense retriever using embeddings (OpenAI text-embedding-3-large, Voyage, Cohere, or a local bge-family model).

You then combine the two ranked lists into one. The combining step is where most teams either overthink it or skip it entirely.

Reciprocal Rank Fusion is usually enough

You don't need a learned fusion model. Reciprocal Rank Fusion (RRF) works astonishingly well and has one knob. For each document d:

def rrf(rankings: list[list[str]], k: int = 60) -> dict[str, float]:
    """rankings: list of ranked doc_id lists, best-first."""
    scores: dict[str, float] = {}
    for ranking in rankings:
        for rank, doc_id in enumerate(ranking, start=1):
            scores[doc_id] = scores.get(doc_id, 0.0) + 1.0 / (k + rank)
    return dict(sorted(scores.items(), key=lambda x: -x[1]))

That k=60 default comes from the original Cormack et al. paper and is a fine starting point. The appeal: you don't have to normalise BM25 scores against cosine similarity, which is a thankless task because their distributions are nothing alike.

If you're on Elasticsearch 8.9+ or OpenSearch 2.x, hybrid search with RRF is a first-class feature — check the vendor docs for the exact query shape. Weaviate, Qdrant, and Pinecone all expose some variant of hybrid retrieval now too; the APIs differ but the concept is the same.

The pipeline we actually ship

Here's the retrieval stack we use as a default. It's not clever. That's the point.

query
  ├─► BM25 retriever ──► top 50
  │                              \
  │                               ├─► RRF merge ──► top 20 ──► cross-encoder rerank ──► top 5 ──► LLM
  │                              /
  └─► dense retriever ─► top 50

A few notes on each stage.

BM25: use the boring version

Use your existing search engine. Postgres tsvector with ts_rank_cd is fine for small corpora. Elasticsearch/OpenSearch is fine for large ones. SQLite FTS5 is fine for desktop and edge. Don't build your own.

One thing worth doing: lowercase and apply a light stemmer, but keep a raw field too. You'll want exact-match for identifiers and code tokens. Index both and OR them at query time with a slight boost on the exact field.

Dense retrieval: pick one embedding model and stop fiddling

In our experience, swapping between top-tier embedding models (OpenAI's text-embedding-3-large, Voyage's voyage-3, Cohere's embed-v3) moves recall by a few percentage points at most. Reranking moves it by double digits. Pick one, measure, move on.

Do chunk with overlap, do store the parent document ID, and do keep your embeddings versioned — the day you want to migrate, you'll thank yourself for not having overwritten the old vectors.

Reranking: the step that earns its keep

After RRF, you have a top-20 list that's probably good. A cross-encoder reranker reads the query and each candidate together and produces a true relevance score. This is more expensive per-document than retrieval, which is why you only do it on 20 candidates, not 20,000.

Options worth looking at (check current vendor docs for pricing and limits):

  • Cohere Rerank 3 — hosted, multilingual, easy to drop in.
  • Voyage rerank-2 — hosted, strong on technical content in our tests.
  • BGE reranker (bge-reranker-v2-m3) — self-hostable, good if you have a GPU already.

In our evals, adding a reranker to a hybrid pipeline typically lifts answer quality more than any amount of chunk-size tuning. If you only do one thing from this post, do this.

Measuring whether it actually helped

You cannot tune a retrieval pipeline without an eval set. Build one before you start optimising, or you're just moving numbers around on vibes.

Minimum viable eval set:

  • 50–200 real user queries (anonymised).
  • For each, the IDs of documents that should appear in the top results, labelled by a human who understands the domain.
  • Metrics: Recall@10, Recall@20, and nDCG@10. Recall tells you "did we find it at all"; nDCG tells you "did we find it near the top".

Run your pipeline against this set on every change. If you want a more thorough treatment, see our piece on LLM evals that catch regressions for how to wire this into CI.

A quick sanity check

Before committing to hybrid, run this experiment on your own data:

  1. Take 50 queries from your logs.
  2. Retrieve top-10 with pure vector, pure BM25, and hybrid+rerank.
  3. Have a human label which result set they'd rather hand to the LLM.

If hybrid+rerank doesn't win at least 60% of the time, your corpus might genuinely be one of the rare cases where pure dense wins — usually very short, conversational, or heavily paraphrased content like support chat transcripts. More often, you'll see hybrid win 70–85% of pairwise comparisons.

Cost and latency, honestly

People worry hybrid will be slow or expensive. In practice:

  • Latency: BM25 and dense retrieval run in parallel, so you pay the max, not the sum. Typically adds 20–80ms over single-retriever on a warm index.
  • Rerank cost: Hosted rerankers charge per document scored. Reranking 20 candidates per query at current list prices is usually well under a tenth of a cent. Compare that to the cost of the LLM call you're feeding — it's noise.
  • Infra: You need both a lexical index and a vector index. If you're already on OpenSearch, Elasticsearch, or a vector DB that supports hybrid natively, this is one system, not two.

The one real cost is engineering time to set up the eval harness. That's unavoidable and you should spend it anyway.

When pure vector is genuinely fine

To be fair to embeddings:

  • Cross-lingual retrieval where query and documents are in different languages — BM25 can't help you here without translation.
  • Very short, paraphrase-heavy content like FAQ pairs or chat logs.
  • Semantic similarity as the actual product, not as a proxy for finding the right document — e.g. "find me similar support tickets".

Outside those cases, start hybrid.

Where we'd start

If you're staring at a RAG system that "works but sometimes misses obvious things", do these in order:

  1. Build a 50-query eval set with labelled relevant docs. One afternoon.
  2. Add BM25 alongside your existing vector retriever. Fuse with RRF, k=60.
  3. Add a hosted reranker on the top 20. Measure Recall@10 and nDCG@10 before and after.
  4. Only then start tuning chunk sizes, embedding models, or prompts.

Most teams we work with discover that steps 2 and 3 alone close most of the gap between "demo" and "users trust it". The fancier interventions — query rewriting, HyDE, multi-hop agents — are worth exploring, but only once the boring foundation is in place. Need a hand wiring this into an existing product? That's the kind of work our AI engineering team does every week.

#RAG#Search#LLMs#Architecture

Want a team like ours?

72Technologies builds production software for the kind of teams who actually read this blog.

Start a project