Hybrid Search and Rerankers: When the Extra Stage Is Worth It

Retrieval stacks tend to accumulate stages the way houses accumulate storage: someone adds a reranker because quality was poor, quality improves, and nobody removes it later when the corpus changes and it is no longer doing anything useful. The stages are cheap individually and expensive together, in latency, in tokens, and in the number of moving parts that can break at three in the morning.

The short version: each stage fixes a specific failure. Keyword search fixes exact-token misses; vector search fixes paraphrase misses; fusion reconciles the two; reranking fixes ordering among plausible candidates. Add a stage only when you have measured the failure it fixes.

The two failures that look like each other

Vector search fails when the query and the passage share meaning but not vocabulary, and it fails when the query contains a rare term the embedding does not represent well: a part number, an error code, a surname. Keyword search fails in the mirror image: it finds exact terms and misses paraphrases. On real traffic both failures occur, which is why the honest baseline is both indexes, not one optimised to death.

Diagnose which one dominates before adding anything. Take your failing queries and check whether the correct passage contains words absent from the query. If it usually does, you have a vocabulary gap and keyword search will help. If the query and the passage share words but retrieval still missed, the problem is more likely chunking or the embedding model rather than the search mode.

Fusion: the boring, effective combination

Reciprocal rank fusion, which merges two ranked lists by rank position rather than by score, is the default worth using. It requires no training, no score calibration, and no maintenance. The reason to prefer rank-based fusion over score-based fusion is that keyword scores and cosine similarities live on different scales that drift with corpus changes, and a naive weighted sum of them is an untuned parameter waiting to be wrong.

Weighting the two lists differently is legitimate when you have evidence. Run your evaluation set with a few weighting pairs and pick from data. What is not legitimate is setting the weight once and forgetting it while the corpus doubles and the query mix shifts.

Reranking: precision after recall

A cross-encoder reranker reads the query and the passage together and scores their relevance directly. It is much more accurate than embedding similarity and much slower, which is why it belongs at the end of the pipeline over a small candidate set, thirty to fifty passages, rather than over the whole corpus. Used that way it typically fixes ordering problems that top-k truncation would otherwise expose.

Its value depends entirely on recall. If the correct passage is not in the candidate set, the reranker cannot save you. This is the single most common misdiagnosis in retrieval work: teams add a reranker to fix what is actually a recall problem, see no improvement, and conclude rerankers do not work.

What each stage costs

Keyword search adds an index to maintain and a second query to run; latency is small and the maintenance is real when documents are updated frequently. Vector search adds embedding cost at ingestion and a vector store to operate. Reranking adds a model call per candidate, which on fifty candidates is the dominant latency term in most pipelines and the first thing to show up when you scale traffic.

Budget the latency explicitly. A stack with keyword plus vector plus reranking often takes three times as long as a single-stage system, and users notice. If the improvement is two percentage points on a metric nobody feels, the latency was a bad trade. If it converts a support bot from guesswork to citation-backed answers, it was cheap.

When to skip the extra stages

Skip reranking when your corpus is small and your queries are close to the documents’ wording, which is common for internal documentation with an informed audience. Skip hybrid when your domain has almost no rare identifiers and your users describe things in their own words. Skip both when quality is already above what the interface can meaningfully show; there is no user-visible difference between eighty-five and ninety percent recall in a system that shows three results.

Add the stages back when a change in the corpus or the user base breaks the assumption. The right posture is a measured baseline, one stage at a time, with the evaluation set running on every change. That is slower to build and much cheaper to keep.

A worked example of stage-by-stage gains

A support corpus of ten thousand articles, queried in natural language. Vector-only recall at ten starts around seventy percent. The failures cluster on product model numbers and error codes, which embeddings represent poorly. Adding keyword search and fusing by rank lifts recall at ten to eighty-five percent for roughly fifteen milliseconds of extra latency.

Adding a reranker over the top fifty then lifts precision in the top three by another eight points at a cost of about a hundred and fifty milliseconds and fifty model-scored pairs per query. Whether that last stage is worth it depends entirely on the interface: a system displaying three results benefits visibly, a system that pipes five passages into a long answer barely notices.

Two lists, one merged result: rank fusion keeps keyword and vector hits in the same order.
Two lists, one merged result: rank fusion keeps keyword and vector hits in the same order.

What to check before you commit

  • Classify failures as vocabulary gaps or ranking errors before choosing a stage.
  • Use rank-based fusion; only weight from measured results, and re-check after corpus changes.
  • Rerank over thirty to fifty candidates, never over the full corpus.
  • Confirm recall at k before blaming the reranker for poor quality.
  • Measure end-to-end latency, not per-stage latency.
  • Remove stages that no longer move the metric.

Retrieval is a stack of specific fixes, not a pile of best practices. Each stage you keep should be there because it addressed a failure you could point at, and each stage you add should be justified by a measurement you can repeat next quarter.

Leave a Comment