# How do you evaluate a reranker before adding it to search?

> Compare a reranker with the original search order on identical candidates. Measure rescued queries, damaged queries, candidate coverage and added latency.

Source: https://www.nodus-compute.ai/blog/evaluate-search-reranker/
Build revision: 372abb208b67222854e6381603edb9a5a46e196a

Evaluate a reranker by comparing its ordering with the **original ordering of exactly the same candidate documents**, at the same final result limit. Count queries it rescues, queries it damages and queries that neither ordering can solve because the needed evidence never entered the candidate list. Then measure the extra response time and operating cost under realistic traffic. A better score on a handpicked list of relevant documents is not enough to justify adding it to search.

Nodus [Jobs](https://www.nodus-compute.ai/docs/guides/jobs/) lets you run your own command, watch progress and retrieve outputs. For an offline reranker comparison, that can support running your evaluation and collecting its reports. You remain responsible for model compatibility, relevance judgments and the search decision. Nodus running the comparison does not establish that reranking improves your results.

## Separate finding evidence from ordering it

A reranker receives a candidate list and changes which candidates appear first. In this comparison, it does not add documents from outside that list. If the required policy, product or passage is absent, a more convincing ordering cannot recover it.

This gives you two different questions:

* Did the initial search put sufficient evidence anywhere in the candidate list?
* Given that list, did the reranker put sufficient evidence inside the final reading limit?

Keep both visible. Reporting only queries that already contain a relevant candidate describes conditional ordering quality, not the success rate of the complete search experience. Conversely, blaming a reranker for every missing answer hides failures that happened before it received any candidates.

For questions requiring several facts, define sufficient evidence as the full required set, allowing accepted equivalents. Finding one relevant passage is not necessarily enough. For a product lookup, one correct item may be sufficient. Use the actual task, not a convenient metric, to define success.

## Freeze the candidates, not just the queries

Save the original ranked candidate list for each held-out query. Give every reranker the same documents and the same document text. Preserve the original ordering as the no-reranking baseline. Freeze the final result count and reading budget before comparing results.

Do not insert a known answer into a candidate list that the real search failed to retrieve. That can be useful in a separate diagnostic test of ordering ability, but it must not replace the realistic test. Label the diagnostic result separately.

Keep document-length limits visible. If a candidate cannot consider the part of a document that establishes relevance, record that limitation. Quietly dropping long documents changes the candidate set and can favor a model with narrower input support.

Include difficult near-matches: an expired policy, a similarly named product, the right procedure for the wrong region. Judge relevance using the full query and applicable conditions. Hide candidate model identity from reviewers where practical, and mark disputed or unjudged documents rather than automatically calling them irrelevant.

## Worked example: count rescues and damage together

The following numbers are fictional and illustrative. They are not Nodus customer results, model measurements or a statistical claim.

Suppose you test 100 queries that have answers in your collection. Initial search returns 20 candidates for each query, and the application shows only the first three. Your success rule requires all necessary evidence within those three results.

The candidate lists contain sufficient evidence for 80 queries. The remaining 20 are candidate-coverage failures: neither ordering can succeed without obtaining different candidates.

On the same saved lists, the comparison looks like this:

|Outcome at the final three-result limit|Queries|
|-|-|
|Both original order and reranked order succeed|50|
|Only reranked order succeeds: rescued|18|
|Only original order succeeds: damaged|10|
|Neither succeeds, despite sufficient candidates|2|
|Sufficient evidence absent from candidates|20|
|Total|100|

The original ordering succeeds on 60 queries: 50 shared successes plus 10 that reranking damages. Reranking succeeds on 68: 50 shared successes plus 18 rescues. The net gain is eight queries, not 18.

Conditional success among queries with sufficient candidates rises from 60/80, or 75%, to 68/80, or 85%. Complete-search success rises from 60/100 to 68/100. Those are different denominators, and both matter. The 80% candidate-coverage rate is also the maximum success rate either ordering could reach on these fixed lists under this evidence rule.

Inspect the damaged queries before accepting the net gain. Losing an exact part-number match or a critical eligibility exception can matter more than rescuing several low-stakes exploratory searches. Apply importance rules chosen before looking at which model wins. Do not invent weights afterward to excuse regressions.

## Use ranking metrics without losing the decision

Ranking measures help explain changes within the final list. Reciprocal rank focuses on how early the first relevant result appears. Normalized discounted cumulative gain, or nDCG, can reward placing more relevant results earlier when relevance has meaningful grades.

Neither automatically captures every application requirement. A first relevant hit can still omit a required exception. A high average can conceal a small category of serious regressions. Report the task-level success transition table alongside your ranking measure and important query categories.

State whether metrics cover all evaluated queries or only those with relevant candidates. State the result cutoff, relevance-label policy and treatment of unjudged results. Keep queries with no answer in the collection separate; ordinary recall against an empty relevant set is not meaningful. Reordering documents does not itself establish safe abstention.

Use a held-out set that was not used to select models or revise settings. If you estimate uncertainty, preserve the pairing: both orderings were tested on the same queries. A small observed net gain deserves more investigation, not a universal superiority claim.

## Decide whether the gain pays for the extra step

Measure the complete search response, not only the reranker’s isolated processing time. Compare typical and slow responses under the candidate counts, document lengths and concurrent demand you expect. Include timeouts and failures instead of measuring only completed requests.

Test the fallback experience explicitly. If reranking fails, does the application return the original order, return fewer results or fail the search? An offline quality gain does not justify a service that misses the user’s response-time requirement.

Candidate depth is a separate decision. More candidates may improve coverage while adding reranking work and delay. Compare those configurations separately from the fixed-list experiment. Otherwise, you cannot tell whether a gain came from finding more evidence or ordering the same evidence better.

Choose the simplest configuration that meets your important search requirements within the measured response-time and cost budget. Sometimes that means adding a reranker. Sometimes it means improving candidate coverage first or keeping the original order for a query category that reranking damages.

For an offline comparison on Nodus, check current supported operations and fit before planning the run. To discuss compute for your own evaluation, [book a conversation with Nodus](https://nodus-compute.ai/book/). This is not a claim of a built-in reranker evaluation service or managed search capability.

## FAQ

### Can a reranker fix low retrieval recall?

Not when the required documents are absent from its candidate list. Measure candidate coverage first, then measure how much of that available evidence reaches the final result limit.

### Should I evaluate only queries with a relevant candidate?

Use that subset to diagnose ordering quality, but also report complete-search results across the full evaluation set. Excluding candidate-coverage failures changes the denominator and can overstate application success.

### Is a higher nDCG score enough to ship?

No. Check query-level rescues and damage, critical categories, final evidence completeness, response time, failures and total operating cost. The improvement must survive the conditions under which people will actually use the search.
