Before the First Vector: Why Chunking Deserves Model-Level Scrutiny in RAG
Photo: Leonardo da Vinci, Public domain, via Wikimedia Commons
Retrieval-augmented generation discussions tend to begin with the embedding model, the vector store, or the reranker. Those components matter, but they operate on units of text that have already been defined. Chunking determines what can be retrieved, what context survives retrieval, and what the embedding model is actually asked to represent. It is not a preprocessing footnote. It is a modeling decision made before the first vector exists.
That framing is useful because it changes where teams spend their review effort. A weak chunking policy cannot be fully rescued by a stronger embedding model. A good chunking policy, by contrast, often improves retrieval more than a model upgrade, because it aligns the retrieval unit with the structure of meaning in the corpus.
A chunk is a hypothesis about meaning
Every chunk encodes an assumption: that the text inside it belongs together, that the boundary is a reasonable place to stop, and that the resulting unit is useful for retrieval. Fixed token windows assume meaning is distributed evenly across the document. Many documents do not behave that way. Policies have clauses, contracts have definitions, technical manuals have procedures, and forms have fields. A boundary that cuts through a defined term or a table header can make a chunk technically retrievable but practically useless.
Overlap is often used as a safety net, but it is not free. It duplicates storage, increases near-duplicate retrieval, and can mask poor boundary decisions. Overlap helps when a meaningful unit straddles a boundary. It does not help when the boundary strategy is fundamentally misaligned with document structure.
Boundary strategies and their tradeoffs
Fixed-size chunking is predictable and cheap. It is a reasonable baseline for homogeneous prose and a useful control in experiments. It performs poorly when documents have strong internal structure. Recursive structure-aware chunking follows headings, paragraphs, and lists. It is often the best default for policy documents, knowledge bases, and support content because it respects authorial structure.
Semantic chunking uses embedding similarity to identify breakpoints. It can produce coherent units, but it is expensive, sensitive to the embedding model used, and prone to fragmentation. Layout-aware chunking is essential for PDFs, tables, forms, and scanned documents. In healthcare and financial operations, ignoring layout is often the difference between a usable retrieval system and a compliance problem.
Propositional or atomic-fact chunking can improve precision for question answering, but it can also strip away nuance and increase indexing cost. Many production systems benefit from a hybrid: structure-aware boundaries as the base, layout handling for complex documents, and selective proposition extraction for high-value content.
Overlap policy should be deliberate
Overlap should be set by document type and retrieval goal, not by habit. For narrative text, a modest overlap may preserve context across paragraph breaks. For tables, repeating headers is usually more valuable than arbitrary token overlap. For legal clauses, preserving defined terms and cross-references matters more than uniform window size. Teams should measure the marginal recall gained from overlap against the storage and duplicate-retrieval cost.
Metadata is part of the chunk design
A chunk without provenance is difficult to audit and difficult to filter. Metadata should include source identifier, section path, document date, version, jurisdiction, access-control labels, language, content type, and parent-document identifier. In US deployments, jurisdiction and effective-date metadata are often as important as semantic similarity. A retrieval system that cannot distinguish an outdated policy from a current one is not ready for regulated work.
Chunking and metadata should be co-designed. A chunk boundary that separates a heading from its body may be acceptable if the heading is stored as metadata. A chunk that loses its document date may be unusable for compliance review.
Measure chunking before indexing
Chunking should be evaluated offline with retrieval-oriented metrics. Boundary recall asks whether the chunk contains the information needed to answer a known question. Context sufficiency asks whether the chunk provides enough surrounding text for a human or model to interpret it correctly. Duplicate rate, chunk-size distribution, and retrieval precision at k with human judgments are also useful. A gold set of question-answer-source spans is more informative than downstream answer quality alone, because downstream evaluation confounds chunking with generation behavior.
Ablation is essential. Hold the embedding model and retriever constant while varying only the chunking policy. That comparison reveals whether chunking changes are doing real work. It also prevents teams from attributing retrieval gains to a new model when the real improvement came from better boundaries.
Treat chunking as a versioned migration
Changing chunking requires reindexing. That is an operational migration, not a minor configuration edit. Chunking policies should be versioned, stored alongside the index, and documented in a decision record. The record should state the boundary strategy, overlap policy, size limits, metadata schema, evaluation results, owner, and review date. Retrieval quality should be monitored by document type after deployment.
Chunking is where data governance and modeling meet. It deserves the same scrutiny as model selection because it defines the evidence the model will see. Teams that get it right before the first vector spend less time debugging retrieval systems that were never given a fair chance.