Split a document in the wrong place and you can make its answer unfindable.

That is chunking, which is nobody's favourite topic and a bigger lever on RAG quality than most model decisions. It also gets made exactly once, early, by whoever wrote the ingestion script, and then silently caps everything built on top of it.

What a bad boundary actually does

A bad boundary separates meaning from the thing that qualifies it.

A rule gets split from its exception, so the system confidently states the rule. A number gets split from its unit or its date. A table gets split from the header row that says what the columns are, which turns a grid of figures into a grid of figures about nothing. A "however" ends up in a different chunk from the sentence it was correcting, and the correction simply ceases to exist as far as retrieval is concerned.

Retrieval then returns pieces that are individually plausible and collectively misleading. The model has no way to know something is missing; an incomplete chunk does not announce itself.

Fixed-size chunking is only a default

Splitting every document into 500-token blocks is fast, uniform, and completely indifferent to what the documents say. It will cut mid-sentence, mid-table, mid-clause, and it will do so at scale.

It is a reasonable starting point. The sign that nobody chose it as a strategy is that nobody can explain why it is 500 rather than 300 or 800. Overlap (repeating the end of each chunk at the start of the next) softens the cuts, at the price of a bigger index and near-duplicate hits, and only rescues qualifiers near the boundary.

Cutting where the meaning cuts (sections, headings, paragraphs, list items, whole table-with-caption units) costs more work at ingestion and pays back on every query afterwards. Keep a policy with its exceptions. Keep a definition with what it defines.

Structural splitting fails in its own ways, since a section longer than the embedding model's input limit gets truncated or rejected and a scanned PDF may have no headings to cut on. Keep a size-based split as the fallback.

A usable bar is that a chunk should make sense to a person reading it alone, with no surrounding document. If it does not, the model has no better chance than the person did.

Treat re-chunking as a release

Changing your chunking strategy changes what is findable across your entire corpus. Answers that worked can break; answers that were broken can start working. That is the same blast radius as swapping the embedding model, and it deserves the same treatment: a fixed set of evaluation questions, run before and after, with the diff actually reviewed.

Teams that treat re-chunking as a parameter tweak find out about the regression from a user.

Debug the boundary before the model

When a RAG answer quotes the rule and misses the exception sitting directly beneath it, the instinct is to blame the model. Check the boundary first by finding the retrieved chunk that holds the rule. If the exception sits in the next chunk, no prompt or model change will bring it back; fix the split, or retrieve the parent section around the match.

Live · Chunking lab

Try it: the chunking lab lets you move the chunk size and overlap and watch an answer split across a boundary.

Try

The default: the hotel sentence lands across a boundary.

Question What is the hotel limit per night in London?

No chunk holds the whole answer: a boundary cut it in two. Try another size or add overlap. With fixed windows, a bigger chunk is not always safer.2 of 5 chunks sent · 80 words

The document, cut into chunks

Each band is a chunk; a numbered rule is where the next one starts. Shown: the paragraphs the answer and the retrieved chunks are in.

RetrievedThe answer

Open the full lab, with every control

About this explainer

Format
Explainer
Level
Practitioner
Read
2 min read
Published
Jun 3, 2026
Disciplines

Short mental models: one idea, why it matters, what to do about it.

Checklist · · 12 checks

RAG production-readiness checklist

Twelve checks to pass before a retrieval system answers a real user. Tick them locally; progress stays in your browser.