Inferensys

Glossary

Recall@K

Recall@K is an evaluation metric that measures the fraction of all relevant documents successfully retrieved within the top-K results of a search or recommendation system.
Stylish WeWork-like workspace with hot desks and document wall, professional searching through enterprise knowledge base on a mounted ultrawide display, warm industrial pendants overhead.
RETRIEVAL METRIC

What is Recall@K?

Recall@K is a fundamental evaluation metric in information retrieval that measures the proportion of relevant documents successfully retrieved within the top-K results returned by a search or recommendation system.

Recall@K quantifies retrieval coverage by calculating the fraction of all relevant items in a corpus that appear in the top-K ranked results. It is defined as (number of relevant items in top-K) / (total number of relevant items). This metric is critical for evaluating dense passage retrieval and semantic search systems where missing a relevant document is costly, such as legal discovery or medical literature review.

Unlike precision@K, which penalizes irrelevant results, Recall@K focuses exclusively on completeness. It is often paired with Mean Reciprocal Rank (MRR) to balance coverage against ranking quality. A high Recall@K indicates the retriever successfully surfaces relevant candidates for downstream tasks like cross-encoder re-ranking, while a low score signals that the embedding space or approximate nearest neighbor (ANN) index is failing to capture semantic relationships.

RETRIEVAL METRICS COMPARISON

Recall@K vs. Precision@K vs. MRR

A technical comparison of three core evaluation metrics used to assess the quality of Top-K retrieval systems, highlighting their distinct focus on coverage, accuracy, and ranking position.

FeatureRecall@KPrecision@KMRR

Primary Focus

Coverage of all relevant items

Accuracy of the top-K results

Rank position of the first relevant item

Core Question

How many relevant items did we find?

How many retrieved items are relevant?

How high is the first relevant item ranked?

Sensitivity to Ranking Order

Penalizes Irrelevant Results

Ideal Use Case

Patent search, legal discovery, systematic reviews

Search engine result pages, recommendation widgets

Question answering, FAQ bots, navigational queries

Formula Basis

Relevant Retrieved / Total Relevant

Relevant Retrieved / K

1 / Rank of First Relevant

Score Range

0.0 to 1.0

0.0 to 1.0

0.0 to 1.0

Impact of Total Relevant Set Size

High (denominator dependent)

Low (denominator fixed at K)

Low (only cares about first hit)

RECALL@K EXPLAINED

Frequently Asked Questions

Clear, technically precise answers to the most common questions about the Recall@K evaluation metric, its calculation, and its critical role in assessing retrieval system coverage.

Recall@K is an evaluation metric that measures the proportion of all relevant documents that are successfully retrieved within the top-K results of a search query. It directly answers the question: 'Of all the relevant items that exist, how many did we find?' The calculation is straightforward: divide the number of relevant documents found in the top-K results by the total number of relevant documents for that query. For example, if a query has 10 relevant documents in the corpus and the top-20 results contain 6 of them, the Recall@20 is 0.6. This metric is critical for assessing the coverage of a retrieval system, ensuring the pipeline doesn't miss critical information before it reaches downstream tasks like re-ranking or generation.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.