Lesson 3.2

Reranking retrieved candidates

Retrieve broadly, then rerank precisely. A reranker reads query and passage together, which is why it beats vector distance on ordering.

Duration
5m
Level
Advanced
Students
5.8k students

Overview

Retrieve broadly, then rerank precisely. A reranker reads query and passage together, which is why it beats vector distance on ordering.

In this lesson you will:

  • Retrieve a wide candidate set, then narrow it
  • Score query and passage jointly with a reranker
  • Balance the latency cost against the accuracy gain

Resources

Sanity Context and content APIs

The official reference for the tools used in this lesson.