Compute recall at three for a query
Read identifiers and quoted passages in short groups. · 166 words
Imagine a bookstore search for beginner books about container gardening. Six book records exist. A human marks R2, R4, and R6 as relevant because each gives practical advice for growing plants in pots. The retriever's ranked list is R1, R2, R6, R3, R4, and R5. Relevance recall asks how many judged relevant items were found, not how highly they appeared. Recall at three, written Recall@3, uses only the first three retrieved records.
The top three are R1, R2, and R6. Of these, R2 and R6 match the relevant set, so the system found two of the three relevant books. The formula is Recall@3 = relevant items in the top 3 / all judged relevant items = 2/3, about 0.67. This score does not mean that two thirds of the answers are correct. It measures coverage of the known evidence. For grounded generation, the answer can cite R2 and R6, but it should note that R4 was missed rather than pretending the search found every relevant source.
Check your recall
What is the Recall@3 score for the bookstore query, and how is it calculated?
Check your answer
The score is 2/3, or about 0.67. Two of the three judged relevant books, R2 and R6, appear among the first three retrieved records.
Sources and credits
Original KeyTouch lesson. Background reading · Lewis et al. · Retrieval-Augmented Generation.