- Day 13: Chunk boundaries decide what your RAG system can know
- Day 14: Similar is not the same as correct: the limits of embeddings
- Day 15: A vector store is infrastructure, not magic memory
- Day 16: Production retrieval needs exact words and meaning
- Day 17: Hybrid search is the practical default
- Day 18: Relevant data can still be data the user may not see
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.
The default: the hotel sentence lands across a boundary.
Question What is the hotel limit per night in London?
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
Terms in this piece
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.
More on these topics
Decision note · · 2 min read
We chose Azure AI Search for retrieval because ingestion and filtering stay simple
Why our retrieval runs on Azure AI Search: our Databricks ingestion pipelines feed it directly, filtering is simple, and several semantic configurations share one index.
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.
Failure story · · 1 min read
The retrieval cache that served stale policies
A well-meaning cache in front of retrieval kept answering from last quarter's HR policy for eleven days.
Discussion