Knowing If It WorksLesson 18 of 76

Module 2 · Metrics that mean something

Scoring a ranked list

In this lesson

  • 9 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 8 of 10 in this chapter

This chapter’s goalChoose a metric that matches the decision at hand, set a threshold from a real confusion matrix or a precision-recall curve, say whether a model’s 0.8 means anything about probability, and separate a retrieval failure from a generation failure in a system that does both.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

When the output is an ordered list

Search, recommendation and the retrieval half of any RAG system all produce the same shape of output: a ranked list, of which the user or the model downstream sees the top few. Precision and recall need adapting, because position matters: the right document at rank 1 and the right document at rank 9 are not the same result.

Set up the evaluation the same way as everything else in this course. Fifty to a hundred real questions, and for each one, the identifiers of the documents that contain the answer. Building that mapping is the work; once you have it, every metric below is arithmetic.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Shipping It exam.

Stuck on something?Ask Sayali, your AI tutor

How to cite: Addaly (2026) ‘Scoring a ranked list’, in Knowing If It Works. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/evaluating-ai/retrieval-metrics (Accessed: 29 November 2026).