The Open Model EcosystemLesson 16 of 71

Module 2 · The map, and how to read it

Rerankers, and why retrieval is two stages

In this lesson

  • 9 min read
  • 5 reading sections
  • Knowledge check
  • Lesson 6 of 10 in this chapter

This chapter’s goalPlace any open release on a map of families, modalities, formats and serving options within ten minutes (naming its licence posture, its likely tokenizer, the tools that will serve it and the size class it competes in) and pick the right kind of model for a retrieval, code, speech or generation task rather than reaching for a chat model by reflex.

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
Retrieval is two stages, and they fail differentlyThe queryarrivesOne sentence,and the indexknows nothingabout it yetRetrieve 100candidatesDense vectorsplus BM25, fusedby rank. A fewmillisecondsover a milliondocumentsRerank the 100A cross-encoderreads query anddocumenttogether. Tensto hundreds ofmillisecondsKeep the top 5This is whatseparates ‘thepaymentsucceeded’ from‘the paymentfailed’Into themodel’s contextFive paragraphsbeats a hundredthousand tokenson cost, speed,accuracy andcitationA reranker cannot find what the first stage missed; it only reorders what it is given. So measurerecall at 100 for the retriever first, then precision in the top five after reranking. Teams reportingone end-to-end number spend weeks tuning the wrong stage.
A reranker cannot find what the first stage missed; it only reorders what it is given. So measure recall at 100 for the retriever first, then precision in the top five after reranking. Teams reporting one end-to-end number spend weeks tuning the wrong stage.

Figure

A little at a time

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

Step 1 of 6Free · no account needed
Lesson steps

The limitation that creates the second stage

An embedding model has to compress a document into a fixed vector before it knows what anybody will ask. That is what makes search fast: you embed a million documents once, and each query is a nearest-neighbour lookup. It is also what limits quality, because the compression happens without the query.

A reranker removes that limitation by paying for it. It takes the query and one document together, runs them through a transformer, and outputs a single relevance score. Every token of the query can attend to every token of the document. It is far more accurate and it is far too slow to run over a million documents.

So the standard shape is two stages:

  1. Retrieve the top 50 to 100 candidates with the embedding model, in a few milliseconds.
  2. Rerank those candidates with the cross-encoder, in tens to hundreds of milliseconds, and keep the top 5 to 10.

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 Maths You Actually Need exam.

Stuck on something?Ask Anjali, your AI tutor

How to cite: Addaly (2026) ‘Rerankers, and why retrieval is two stages’, in The Open Model Ecosystem. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/open-models/rerankers-and-the-retrieval-stack (Accessed: 29 November 2026).