LESSON 22.09 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Reranking with cross-encoders
Watch a cross-encoder rescore the top search results, one word pair at a time.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 22.09 · SEARCH BAYBI-ENCODER · 6 RETRIEVED · 6 CANDIDATES
01
Stage 1 of 6 · First stage
A fast bi-encoder scores all 12 pages. The top 6 become candidates for a slower second look.
Explain it simply
Reading every page with a careful model would be slow. So a fast model goes first and ranks all 12 pages. The bi-encoder turns the query and each page into one vector and compares the two. Only the pages above the dashed cut go on.
A list of 12 pages ranked by the bi-encoder. The candidates above the cut are D4, D2, D5, D1, D6, D3.
query, pages, wordscut at N candidatesscores, matches, relevantwrong in top 3, missed, no matchskipped word
Toy: 12 help-centre documents and 3 queries, shared with 22.C1; the cross-encoder is hand-set, not trained
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Score every page fast, then keep the best N.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.