Chunking
Splitting long documents into retrievable passages while preserving needed context.
Rule + exception
RuleException
Keep context connected
In practice
A refund rule and its custom-order exception can land in separate chunks. Preserve headings, source positions and useful overlap.
What to check
Inspect the resulting chunks. Tables, code and exceptions need appropriate boundaries; tune size and overlap for the documents and queries.
Common confusion
Smaller is not always better. Overlap increases indexed and input content and cannot preserve every dependency.
Tell your agent
Show the actual chunks with headings, document versions and source locations. Keep rules with exceptions and preserve table rows and code blocks. Check representative questions for lost context.