Log inStart free
LESSON 22.15 · 6 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW

Contextual retrieval

Watch one short sentence per chunk move the right answer to the top.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 2 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 22.15 · RETRIEVAL BAY12 CHUNKS · 3 REPORTS
01
Stage 1 of 6 · Split into chunks
chunking splits 3 reports into 12 chunks. The index stores each chunk alone.
Explain it simply

You see three short company reports. Chunking cuts each one into four small pieces called chunks. The search index stores each chunk on its own. Look at A2: it says revenue grew 3 percent, but not which company or which year.

Three reports, each split into four chunks, A1 to C4. The query sits at the top.

query and chunk textcontextBM25 score, top 3missold score
query: RevenueHow much did ACME revenue grow in 2023?Report A: ACME Corp Q2 2023 reportReport B: Globex Q2 2023 reportReport C: ACME Corp Q2 2022 reportA1ACME Corp sells robots to car makers.A2Revenue grew 3% over the previous quarter.A3The company opened a plant in Poland.A4Costs rose with higher steel prices.B1Globex makes batteries for buses.B2Revenue grew 8% over the previous quarter.B3The company hired 200 engineers.B4Costs fell with lower lithium prices.C1ACME Corp sells robots to car makers.C2Revenue fell 2% over the previous quarter.C3The company closed a plant in Ohio.C4Costs rose with higher shipping prices.Split into chunksquery: RevenueHow much did ACME revenue grow in 2023?Report A: ACME Corp Q2 2023 reportReport B: Globex Q2 2023 reportReport C: ACME Corp Q2 2022 reportA1ACME Corp sells robots to car makers.A2Revenue grew 3% over the previous quarter.A3The company opened a plant in Poland.A4Costs rose with higher steel prices.B1Globex makes batteries for buses.B2Revenue grew 8% over the previous quarter.B3The company hired 200 engineers.B4Costs fell with lower lithium prices.C1ACME Corp sells robots to car makers.C2Revenue fell 2% over the previous quarter.C3The company closed a plant in Ohio.C4Costs rose with higher shipping prices.Split into chunks
Toy: 3 reports, 12 chunks, 3 queries; LLM sentences are fixed text
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
D→c1,c2,c3,c4\sy{d}{data}{D} \to \sy{c}{data}{c_1, c_2, c_3, c_4}
3 reports→12 chunks\text{3 reports} \to \text{12 chunks}

Chunking splits each report into chunks.

Common mix-ups

MYTHMore context is better, so put the whole report first.

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

Predict, then reveal
3 CHECKS · PRO
Q01With no context, can BM25 tell the three revenue chunks apart?

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 2 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.