top of page

Can Search Find All the Right Documents but Still Rank Them Poorly?

Oct 26
3 min read

Two search configurations return the same relevant document within their top five results. One puts it first; the other puts it fifth. A coverage check says both succeeded, but the experience of a person scanning the results—or an AI workflow with a small evidence budget—can differ.


Retrieval evaluation needs a metric that matches the question. Recall at a cutoff measures how much of the known relevant set was retrieved. Reciprocal-rank measures emphasize where the first relevant result appears.


Define the evaluation objects first


Record the query set, corpus version and relevant-document judgments. Use stable document identifiers so results can be matched to the intended evidence.


Sentence Transformers' retrieval evaluator documentation lists MRR, Recall@k and other ranking measures as separate outputs. They are not interchangeable names for search quality.


Specify the cutoff k and how queries with no known relevant documents are handled. A metric without these conventions is difficult to compare across experiments.


Work through one query


Illustrative example: one relevant document


Suppose a query has one known relevant document. Configuration Cedar places it at rank one; configuration Birch places it at rank five. Both have Recall@5 equal to one because both retrieve the entire known relevant set within five results.


Their reciprocal ranks at that cutoff differ: Cedar contributes one, while Birch contributes one-fifth, or 0.2. If these were the only query, the mean reciprocal rank would be those same values.


The example isolates ranking position. It does not establish a measured customer benefit or an improvement in generated answer accuracy.


Add a second relevant document


Now suppose the query has two known relevant documents, but a configuration returns only one within the top five. Its Recall@5 is one-half, even if the retrieved document is ranked first.


The first useful result can therefore appear immediately while coverage remains incomplete. A task needing both a procedure and an exception document may care about that missing evidence.


Distinguish the first hit from the full relevant set


The evaluator's published implementation computes reciprocal rank from the first relevant hit within the cutoff and averages across queries. Its recall calculation compares retrieved relevant documents with the judged relevant set.


For an evaluation using these conventions, no relevant hit within the MRR cutoff contributes zero. Record the implementation and version rather than assuming every similarly named metric has identical edge-case handling.


Inspect individual queries alongside aggregate scores. An improved average can coexist with regressions on the questions most important to the workflow.


Keep relevance judgments reviewable


A document labelled relevant should support the query's intended information need. A vague thematic connection is not necessarily enough.


Incomplete judgments can make a useful retrieved document look irrelevant. Record how judgments were created and how newly discovered relevant documents are reviewed without quietly changing the comparison mid-experiment.


Avoid using the model's own confidence as the sole relevance label. The evaluation needs an evidence standard separate from the system being measured.


Connect the metric to the actual task


If users need one authoritative answer quickly, early relevant ranking may be especially useful. If an AI response must combine several pieces of evidence, coverage and the available context budget also matter.


Run a downstream check when making claims about answer quality. Retrieval scores do not prove that the answer uses the evidence correctly, cites it faithfully or respects access permissions.


For preparing the query set, read testing retrieval before the AI answer. A FutureOS evaluation brief can include a query, its judged relevant documents, the ranked outputs and the decision each metric should support.


Keep the smallest examples with the evaluation script. They make it easier to detect a changed cutoff, altered relevance set or metric implementation before comparing a new score with the old one.


Editorial note


Editorial note: This article was prepared with AI assistance. Primary sources and the linked FutureOS article inventory were checked on October 26, 2026. Examples are illustrative and are not customer results. The current FutureOS introduction describes the project as being in prelaunch; this guide does not assert that a particular product feature, integration or service is available. The procedures are practical proposals to adapt and test in your own setting. No independent expert review is claimed. Start with a specific question, your relevant constraints and a small example of the result you need.


Comments


Commenting on this post isn't available anymore. Contact the site owner for more info.
bottom of page