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

Chunking strategies

Watch one manual cut five ways, and see which chunk answers a question.


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.04 · CHUNKING BAYANSWER 82 CHARACTERS · 2 SENTENCES
01
Stage 1 of 6 · Question
A RAG system answers from chunks of this manual. The answer is the two underlined sentences.
Explain it simply

You see a short coffee machine manual and a question about it. Before a model can answer, the manual is cut into small pieces called chunks. Search turns the question into six numbers, one per topic, and picks the closest chunk. That chunk helps only if it holds both underlined sentences.

The manual, 400 characters of Markdown, with the two answer sentences underlined. The question has the embedding brew 0.3, clean 0.2, scale 1.1, warranty 0.1 and time 1.0.

text, chunks, questioncuts, settings, thresholdcuts through an answer sentenceanswer, scores, best chunkparent section
# Brew Mini manual## BrewingFill the tank with cold water. Put 15 g of ground coffee inthe basket. Press start to brew one cup.## CleaningRinse the basket after each cup. Wash the drip tray once aweek in warm soapy water.## DescalingLimescale builds up inside the heater. Descale the machineevery 3 months. If your water is hard, descale it every month.Use descaling liquid, not vinegar.How often should I descale the machine?its embedding, 6 conceptsthe answer: 2 sentences, 82 characters0.3brew0.0water0.2clean1.1scale0.1warranty1.0timea chunk must hold both underlined sentencesmanual.mdthe question# Brew Mini manual## BrewingFill the tank with cold water. Put 15 g of ground coffee inthe basket. Press start to brew one cup.## CleaningRinse the basket after each cup. Wash the drip tray once aweek in warm soapy water.## DescalingLimescale builds up inside the heater. Descale the machineevery 3 months. If your water is hard, descale it every month.Use descaling liquid, not vinegar.How often should I descale the machine?its embedding, 6 conceptsthe answer: 2 sentences, 82 characters0.3brew0.0water0.2clean1.1scale0.1warranty1.0timea chunk must hold both underlined sentencesmanual.mdthe question
Toy: a 400-character Markdown manual, one question, a 6-concept word embedding
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
q=∑w ∈ questione(w)\sy{q}{data}{q} = \sum_{w\,\in\,\text{question}} e(w)
q=(0.3, 0.0, 0.2, 1.1, 0.1, 1.0)q = (0.3,\ 0.0,\ 0.2,\ 1.1,\ 0.1,\ 1.0)

The question's embedding adds the vectors of its words.

Common mix-ups

MYTHSmaller chunks always give better retrieval.

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

Predict, then reveal
3 CHECKS · PRO
Q01If the chunk size grows to 160, does one recursive chunk hold the full answer?

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.