Skip to content

What are hybrid search and reranking?

Hybrid search combines lexical and semantic results; reranking reorders the candidates by relevance before showing them or passing them to a language model.

Hybrid search combines results found by exact words with results found by similarity of meaning; reranking reorders the resulting candidates according to their relevance to the question. Lexical search compares terms, for example using BM25, a term-weighting method; vector search compares numerical representations of text called embeddings. The two lists can be fused before a second review by, for example, a cross-encoder: a model that evaluates the question and document together. Fusion and reranking are separate steps: fusion selects and orders candidates, and reranking revises that order. In RAG, a technique that supplies documents to a generative model, the selected results become the answer's source material. Reranking cannot recover a document missing from the initial candidate list, nor can it guarantee that the final answer is correct. Both stages therefore require testing against the documents and questions that people actually use.

See also: RAGRAG combines search and generation: it retrieves external sources relevant to a question and passes them to a language model, which draws on them to answer.

How it works in practice

Reciprocal Rank Fusion, or RRF, combines a document's positions in the lists instead of comparing scores on different scales. The original RRF paper sums 1/(k + rank): the authors set k to 60 in a pilot study and found the choice not critical. Fusion can include documents found in only one list and favor those ranked highly in several lists; it does not guarantee an improvement for every question.

In Nogueira and Cho's paper, the reranker reads the question and a passage together, one pair at a time, and scores each retrieved passage. How many candidates to examine is a tuning choice: a longer list is more likely to include useful text but requires more evaluations. A vector database organizes and searches the embeddings; it does not replace the final relevance assessment.

An enterprise example

A procurement team searches contracts for the delay clause tied to a specific supply code. Lexical search may find the code, while vector search may surface the same clause in different wording. This is an illustrative scenario, not a guaranteed result: the code may be absent from the indexed passage, and a similar clause may cover another supplier. Reranking compares candidates with the question, but the assigned reviewer must check the contract, version, and access permissions. Facets, by contrast, narrow browsing by attributes such as supplier or contract status.

Why it matters for decision makers

Compare systems on the same questions and documents, with relevance judgments checked by domain experts. First measure how many useful documents make the candidate list, then how many appear near the top: the second stage cannot recover what the first missed. Benchmark lexical search, vector search, fusion, and fusion with reranking, including response times and costs.

In the BEIR benchmark, a cross-encoder reranking the top 100 BM25 results outperformed BM25 on 16 of the 18 datasets at high computational cost but fell short on the two furthest from its training data. The datasets are in English and the system is not enterprise hybrid search, so the finding guarantees nothing about a company's own contracts. The right setup depends on the improvement observed, the acceptable response time, and document access constraints.

Frequently asked questions

No. It only reorders candidates supplied by the search stage.

No. Fusion can be used alone; reranking's value should be measured on real data and questions.
  • RAGRAG combines search and generation: it retrieves external sources relevant to a question and passes them to a language model, which draws on them to answer.
  • HyDEHyDE generates a hypothetical document from a question and uses its numerical representation to retrieve similar real documents from an indexed text collection.
  • Vector databaseA vector database stores numerical vectors and makes them searchable by similarity, requiring choices on completeness, response time, and access control.
  • Faceted searchNavigating results by combinable attributes: independent filters showing a result count next to each value.

See it in the universe

If you need the AI in production, not in a demo, that is my job.

See AI integrations

Or write to me.