short · 3 min
Recall@k
Of the chunks that should come back for a question, the share that made it into the top k results.
updated 27 Sept 2026
Here's a cheap trick for a perfect search score: return everything. Every chunk in the collection comes back, so every right chunk comes back too, and recall is 1.00. Done.
Obviously that's useless. But it shows exactly what recall measures, and why it needs a "@k" stuck on the end.
What it counts
Recall is an old idea from search: of all the documents that are relevant to a question, what fraction did the system actually find? Recall@k asks the same thing, but only counts the top k results. To compute it we need labels first, a list for each test question of which chunks are relevant (how to get those is in retrieval evaluation).
Work it out per question, then average over the test set.
Say search returns 8 chunks, and our labels say the ones at ranks 2, 4, 5 and 7 are relevant. Four relevant chunks in all. Let's walk down the list:
At k = 1 we've found none of the four, so 0. At k = 2 we've found one, 0.25. At k = 4, two, so 0.5. By k = 7 we have all four. Notice it can only go up as k grows, one step per relevant chunk. That's the trick from the top in slow motion: keep raising k and you'll reach 1 eventually.
In RAG, lots of questions have exactly one relevant chunk. Then recall@k for that question is just 1 if the chunk made the top k and 0 if it didn't, and the average is the share of questions where search found the answer.
Its partner, precision
Precision@k asks the other question: of the top k, how much is relevant? At k = 8 in our example, recall is a perfect 1.00 but precision is 4 of 8, 0.50. Half of what we sent is noise.
The two pull against each other. Return more and recall goes up, while precision usually goes down. Which matters more depends on who reads the results. Someone scanning web results wants the first few to be good. A paralegal wants nothing missed and will wade through junk to get there. A RAG pipeline is closer to the paralegal: the model can skip a useless chunk, but it can't use one that never arrived. That's why recall is usually the headline number for retrieval in RAG.
Two more catches
Recall ignores order. With one relevant chunk and k = 4, finding it at rank 1 or rank 4 scores the same. If order matters, pair it with MRR, which rewards getting the first right chunk to the top.
And the bottom of the fraction is "all relevant chunks", which our labels rarely list in full. Say search returns a chunk that answers the question just as well as the labelled one, and the labelled one drops out of the top k. That question scores 0, even though the model had what it needed. (Precision doesn't have this problem, since it only looks at what came back.) So when recall drops, read a few of the misses before trusting the number. Questions with no relevant chunk at all break it outright, with a zero on the bottom, so keep those out of the average and test them on their own.
Back to the trick. Recall is only meaningful at a fixed k, and the useful k is the one you actually send to the model. If the prompt gets 10 chunks, measure recall@10, and always write the k next to the number. "Recall 0.9" on its own tells nobody anything.
Further reading
- Evaluation in information retrieval, Manning, Raghavan and Schütze, Introduction to Information Retrieval, 2008. The textbook take on recall and precision, including the "retrieve everything" trick. Clear and short.
- Evaluation Measures in Information Retrieval, Laura Carnevali (Pinecone), 2023. The worked example with Python code, if you'd rather see it run.