Why documents are cut into chunks
What it is
A chunk is a passage cut from a document, typically a few hundred words. Documents are chunked for three reasons:
- Embedding models have a maximum input length and ignore anything past it.
- One vector for a whole 40-page manual is a blurry average of every topic in it, close to nothing in particular.
- The model should be handed the relevant passage, not the whole manual, to keep the prompt small and focused.
Why it matters
The chunk is the unit of everything downstream: it is what gets embedded, what gets retrieved, what gets cited and what the model reads. A fact that was split across two chunks, or buried in a chunk about five other things, is effectively lost.
In the real world: A support assistant starts answering warranty questions correctly only after the 60-page manual, previously one giant vector per chapter, is re-cut by section.
Thinking of chunking as a formatting detail. Change the chunking and you change every vector in the index and every prompt the model sees. In practice it moves answer quality more than swapping the language model does.