Search reranking: move more relevant evidence to the top
Search reranking first gathers candidate documents with keyword, vector, or hybrid search, then compares each candidate more carefully with the original question and changes their order. First-stage retrieval quickly finds candidates in a large index; reranking applies a more expensive model or algorithm to a smaller list. Reranking cannot find a document that was absent from the candidates, so it cannot recover missed evidence by changing order alone.
Search reranking first gathers candidate documents with keyword, vector, or hybrid search, then compares each candidate more carefully with the original question and changes their order. First-stage retrieval quickly finds candidates in a large index; reranking applies a more expensive model or algorithm to a smaller list. Reranking cannot find a document that was absent from the candidates, so it cannot recover missed evidence by changing order alone.
How does reranking differ from retrieval?
The first-stage retriever prioritizes speed and breadth to form candidates from many documents. Keyword search is strong for exact words and identifiers; vector search can find semantically similar documents with different wording. Hybrid search combines these signals.
A reranker considers the question and each candidate text together, then scores or orders candidates by relevance. A cross-encoder processes each query-document pair jointly and can model detailed interactions, but is expensive to run across the whole index. A typical pipeline therefore retrieves tens or hundreds of candidates, then scores only those. Actual candidate limits and costs vary by service.
| Stage | Responsibility | If it fails |
|---|---|---|
| Candidate retrieval | Use keywords, vectors, and filters so relevant evidence enters the candidate set | Reranking cannot recover an answer absent from the candidates |
| Reranking | Compare the original question with candidates and adjust relevance order | Truncated text or mismatched query/document formats can distort scores |
| Final selection | Send top documents or passages to the answer model | Too many add noise and use context; too few may omit exceptions or evidence |
Azure AI Search semantic ranker is one service example: it reranks candidates from BM25, vector, or hybrid search. Current documentation says it operates on the top 50 results from the initial ranking rather than searching the entire index again. This limit and model behavior are Azure-specific; do not assume they apply to other rerankers.
When can reranking help?
Search results often contain the same words as the question but do not answer it.
The question and documents use different wording for the same concept.
The candidate set is useful, but the best evidence must be placed early in the answer model's limited context window.
You want to reconsider the actual semantic relevance of keyword and vector results after combining them.
If first-stage recall is low, the index lacks current material, or filters and chunking have removed evidence, fix those causes first. A stronger reranker cannot add documents outside the candidate list. If results are already well ordered, another stage may only add latency and cost.
How do you add a reranking stage?
**Define the question and evidence unit.** Decide whether retrieval targets whole documents or chunks and whether one question requires multiple pieces of evidence. For long documents, review chunking before reranking.
**Set up first-stage retrieval.** Use keyword, vector, or hybrid search to get a broad candidate set. Apply hard conditions such as date, document type, and access rights as proper retrieval filters.
**Send the original question and candidate text to the reranker.** Include fields that help answer the question, such as title, section heading, and body excerpt. Long inputs may be truncated; check provider-specific length limits and truncation behavior.
**Select only the top results.** Distinguish rank from a threshold. A high score is not automatically an absolute relevance probability. Define a fallback for empty results or low confidence.
**Check the evidence and answer.** Confirm selected chunks retain source and location links and that the answer's conditions and exceptions remain available. A reranking score does not prove factual correctness.
Hypothetical example: refund policy search
Suppose a customer asks, “When are partial refunds for international orders approved?” Keyword search may find international-shipping policies, while vector search may find general refund guidance. The reranker compares each candidate with all three conditions: international order, partial refund, and approval timing. The answer model should receive the effective date and exception passages from top-ranked policies and should not invent a timeline if the documents do not state one. This is a design example, not a tested system result.
How do you evaluate reranking quality?
Create an evaluation set with relevant documents or passages labeled for each question, then compare before and after reranking from the same first-stage candidates. Recall@N can measure whether relevant evidence entered the candidate set; MRR or nDCG@k can reflect quality near the top. Separately evaluate final RAG answers for correctness, source linkage, and omitted exceptions. Better ranking metrics do not automatically improve answer quality.
If you use a reranking score threshold, calibrate it on representative in-domain questions, borderline candidates, and irrelevant candidates. Cohere documentation notes that scores vary with the question and candidate, so numbers from different questions should not be treated as an absolute scale. A threshold that is too high discards relevant evidence; one that is too low admits noise. Use held-out data to inspect precision, recall, and empty-result rate together.
| Observed problem | Check first |
|---|---|
| Top results do not change | Candidate count and diversity; reranker input fields and length; model and query format |
| Relevant document is absent from final candidates | First-stage recall, metadata filters, index freshness, and query rewriting |
| Score is high but answer is wrong | A relevance score is not proof of truth; inspect source conditions, exceptions, and evidence extraction |
| Top passage is too long or truncated | Chunk size, retained titles/metadata, and reranker document-length limits |
| Latency or cost increased | Candidate count, parallelism/cache, and which query types actually need reranking |
Conclusion
Reranking does not search the full corpus again; it reorders candidates already retrieved by comparing them with the question. When top-result quality is the issue, measure first-stage candidate recall separately from reranking's ordering effect. A model score does not guarantee correctness, so also evaluate source evidence, final-answer accuracy, and operating cost.
Sources
[Microsoft Learn: Semantic ranking in Azure AI Search](https://learn.microsoft.com/en-us/azure/search/semantic-search-overview) — reranking BM25/RRF candidates, Azure's top-50 scope, fields, length limits, and score interpretation. Checked 2026-11-23.
[OpenAI API: Retrieval](https://developers.openai.com/api/docs/guides/retrieval) — vector search and hybrid-search score adjustments and relevance thresholds.
[Cohere: Best practices for using Rerank](https://docs.cohere.com/v2/docs/reranking-best-practices) — candidate count, document length, query-dependent scores, and threshold calibration. Current provider behavior depends on its documentation.