The search returned nothing. Leaving it out changed the winner.
A search engine can finish a search and come back empty. If its results file has one row per document it found, that search leaves no row at all. When you compare it with a second engine, how will anyone know a question is missing?
In a controlled replay we gave two systems the same two questions. Higher search-quality scores are better, with 1 the best in this test. A did well on the first and found nothing on the second. Average only the searches that appeared in the file and A won, 1.00 to 0.75. Give its confirmed empty search a zero and A fell to 0.50, behind B’s unchanged 0.75.
A search measure called normalized discounted cumulative gain (nDCG) gives a system more credit for putting helpful documents near the top. It compares what the system earned with the credit available for putting the graded documents in the best possible order, including judged documents the system failed to retrieve. You get one score for each question, then average across questions. The empty search affects that last step. Two other choices, the documents you use to define the best list and the way you handle a tie, affect the question scores themselves.
Which searches finished? We read a TREC results file using pytrec-eval-terrier 0.5.10. With one row per document, there was nothing for the reader to pick up for A’s second question. We knew from the test that A had completed the search and returned no documents. That was the reason it could receive zero.
An interrupted search can leave the same gap. To tell the difference, keep a list of the questions you expected and a separate record of which searches completed. TREC run parser
Which documents define the best possible list? In a separate test, three documents had known relevance grades. We scored the first two positions in each system’s results, written nDCG@2. Using all three graded documents to define the best list for both systems, B led A, 0.521 to 0.275. A system that never found the most useful document could look better against its own results: that missing document would disappear from the standard against which it was judged. We built each system’s best possible list from just the documents that system had returned. A now led, 1.000 to 0.631.
No result moved, and neither system earned more credit for its actual list. The change was in what counted as the maximum available credit, the number each score was divided by. To evaluate a whole search, use a common set of graded documents. If the job is just to reorder a fixed list, save that list and say which candidates the result covers. Ideal gain in trec_eval
Did the search find one marked passage or all of them?
Some questions take more than one passage to answer. We ran a separate search on 214 GutenBench questions about an English Bible translation. Each question was marked as needing information from more than one passage.
We used BM25, which ranks passages by the words in the question, and looked at the first ten results. For 145 questions those results included at least one passage marked definitely relevant. For only 19 did they include every such passage. A reader looking for the full set would have to keep searching on the other questions.
All these examples rely on relevance grades. If some returned documents haven’t been judged, check which ones to review first to see whether a new grade could settle the choice between systems.
Two documents tie for first. Which gets the credit? On one query in a third example we counted just the first result, nDCG@1. With two documents tied on their search scores, scikit-learn 1.7.2 gave the tied documents equal chances of taking first place and averaged the credit. A led, 0.500 to B’s 0.333.
The trec_eval binding pytrec-eval-terrier 0.5.10 used the document IDs, the labels identifying them, to break the tie. It compared the IDs as text in descending order. An ID beginning with 2 came ahead of one beginning with 1. Now B led, 0.333 to A’s 0.000. Save the IDs and search scores at their original precision. If you change the scorer, the IDs or the rounding, repeat a tied example before interpreting the difference. scikit-learn nDCG · trec_eval tie order
Report the number of questions expected and the number scored alongside the average. Keep each question’s score, the document IDs and search scores returned, the versions of the relevance grades and scorer, the last position counted and the tie rule. Those records let a reader locate the first place where two comparisons differ.
If you cite a published search score, check which result file and splits it came from.