Start with document structure. Preserve headings, tables, exceptions and source locations, then test chunk sizes against representative questions. There is no universal token count that makes every knowledge base reliable.
Chunking is an evidence-design decision
A policy paragraph may make sense only with the exception immediately below it. A table row may need its column heading and currency. A venue description may need the effective date shown at the top of the page.
Splitting only by character count can detach those relationships. Very large chunks can create the opposite problem: too much irrelevant material reaches the answer step. The useful balance is determined by the questions and the source structure.
Preserve metadata that helps review
Keep document ID, version, section path, page or source location and access scope with each chunk. Maintain a route back to the original approved record. A useful answer needs evidence that the reviewer can inspect, not only an opaque vector identifier.
If a source has no reliable page mapping after extraction, do not invent page numbers. Preserve the location information the pipeline can actually support and make any limitation visible.
A worked cancellation-policy example
Imagine a supplier policy with a standard cancellation rule, a group-booking exception and a table of charges. A question about a group should retrieve the exception and enough of the table to interpret the fee. Retrieving the standard rule alone can produce a confident but wrong answer.
Compare a structure-aware split with a simple fixed-size split. Inspect the retrieved evidence before generation. The test should reveal whether the chosen chunks keep the applicable condition attached to the relevant amount.
Use overlap selectively
Overlap can preserve context across boundaries, but it can also create duplicate evidence and inflate repeated input. Do not interpret repeated copies of the same fact as independent support. Deduplicate or group results by source when that helps the answer step.
For tables, consider a representation that retains headings with each relevant row. For narrative sections, keep the heading path and adjacent exception. For scanned documents, validate extraction quality before tuning chunk boundaries.
Test changes as retrieval changes
- Use questions requiring a definition, an exception and a cross-reference.
- Check whether the right evidence is retrieved, not just a related heading.
- Verify source locations in the final answer.
- Measure redundant context and review effort.
- Keep a regression set when parsers or chunking rules change.
Choose the simplest chunking policy that preserves the evidence your users need. If the source is ambiguous, chunking should expose that ambiguity rather than hide it. A stronger model cannot reliably restore a condition that the retrieval pipeline removed.
Researched and published 30 November 2026. Provider capabilities are attributed to official documentation; recommendations and worked examples are editorial analysis. No independent model benchmark or client outcome is claimed. Confirm current access, pricing and terms before implementation.
Build the useful version.
Discuss an AI workflow, knowledge assistant or digital-product brief with Jamil Darwish.
Start a conversation