Module 3 · Lesson 4 of 7

Reranking the best few

A careful second look

A reranker reads the question with each top result and rescores them, so the best few reach the prompt.

Scene 1 of 4 · A rough first search

A fast first search returns the top 50 chunks in 15 ms, with a sign-in tip at number 1.

Help appHelp appFirst searchFirst searchRerankerReranker
  • Help app — healthy
  • First search — healthy
  • Reranker — healthy
"My parcel has been stuck for a week": first-search rank, reranker score, new rank
ChunkWasScoreNow
Sign-in tip (highlighted)#1?–
Depot delays#2?–
Tracking updates#3?–
Return labels#4?–
Lost-parcel rule#9?–
  1. A rough first search. A fast first search returns the top 50 chunks in 15 ms, with a sign-in tip at number 1.
  2. Why it ranked first. It shares "stuck" and "for a week" with the question, but it is about the app, not parcels.
  3. Read each pair. The reranker reads the question with each chunk; all 50 take about 100 ms more.
  4. The best few. The lost-parcel rule climbs from number 9 to number 1; only the best 2 are sent on to the model.
  5. Now you try. Choose how many first-search results the reranker rescores. For example: Search and rerank take 25 ms, and the reranker never sees the lost-parcel rule. The first search put it at number 9, below the cut, so no amount of care can find it.

Scene 1 of 4: A rough first search. A fast first search returns the top 50 chunks in 15 ms, with a sign-in tip at number 1.

Key points

  1. The first search scores the question and each chunk apart, so it is rough.
  2. A reranker reads the question and a chunk together.
  3. It is slower, so it only rescores the top few dozen.
  4. A chunk the first search ranked too low to rescore is never seen.

The first search is fast but rough. A is a second, slower model that reads the question and each top together, and scores how well they match.

Because it is slow, it only rescores the top 20 to 100 chunks from the first search. Then the best few go into the .

This two-step shape appears in most search systems: fast and rough over everything first, then slow and careful over a few.

Try the stuck parcel question above: word search pulls in a sign-in ticket. A reranker that reads the whole text would push it down.

Example. Illustrative: a first search returns 50 chunks in 15 ms. A reranker scores those 50 in about 100 ms, and the top 2 go into the prompt.

In system design: Reranking raises answer quality but adds delay, so count it in your .

Check yourself

Why does a reranker rescore only the top few dozen results?