Log inStart free
LESSON 22.08 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Hybrid retrieval and rank fusion

Watch a keyword list and a dense list merge into one ranked list.


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/mo
EXPLAINER · 22.08 · SEARCH BAYKEYWORD TOP 3 · 2 OF 2 RELEVANT
01
Stage 1 of 6 · Keyword list
BM25 (22.06) ranks the pages that share words with “laptop error E42”. Its top 3 holds 2 of 2 relevant pages.
Explain it simply

Each row on the left is one help page, ranked by its BM25 score. Rare shared words, like the code E42, score high. The printer page D10 has the same code, so it ranks third. A dot marks a page that answers the query.

The keyword list ranks 6 pages. Its top 3: D5 3.64, D6 3.50 and D10 2.87.

pages, queryk, filterscores, ranks, relevant pagewrong page in a top 3
top 31D53.642D63.503D10printer2.874D30.905D80.776D40.60keyword listquery “laptop error E42”keyword list (BM25)s(D5) = 3.64, the best keyword scoretop 31D53.642D63.503D10printer2.874D30.905D80.776D40.60keyword listquery “laptop error E42”keyword list (BM25)s(D5) = 3.64, the best keyword score
Toy: 12 help-centre pages and 3 queries, shared with 22.C1
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
s(d)=∑w∈qidf(w) tf (k1+1)tf+K\sy{kw}{out}{s}(\sy{d}{data}{d}) = \sum_{w \in \sy{q}{data}{q}} \mathrm{idf}(w)\,\frac{tf\,(k_1 + 1)}{tf + K}
s(D5)=3.64s(\text{D5}) = 3.64

A page scores the weights of the query words it holds.

Common mix-ups

MYTHAdding the two scores joins the lists fairly.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With RRF, k 60, how many relevant pages for “battery drains fast” reach the hybrid top 3?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

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.