Question 5 of 5

How do you calculate Recall@k with several relevant sources?

Documents A, B, C and D are relevant, but retrieval returns A and X. One hit does not mean complete retrieval.

Two pages, A and B, are useful for a question. Search returns A, C, B in that order. The top two contain one of the two relevant pages, giving a recall of 1/2 at that depth. The top three contain both. That alone tells you nothing about which page the model will actually use in its answer.

WHERE TO START

How does the set of documents change when you look at the first three results instead of one?

What to know before this question
Topic example · The first search results

Change the limit from 2 to 1. Which document disappears?

ranked = ["faq", "guide", "notes"]
print(ranked[:2])
Line notes
  1. The documents are already in search order.
  2. Print the first two documents in the list.

How would you rate your understanding?

This is your self-assessment. Progress is saved in this browser.

Not rated yet

← Back to Retrieval and RAG