AI Help
How do I choose chunk size and overlap for an AI knowledge base?
Choose chunk size and overlap through retrieval tests on your documents. Preserve enough context for the questions users actually ask.
Steps to follow
- Build representative questions with known supporting passages, including tables and answers spanning section boundaries.
- Try supported chunking settings and compare evidence coverage, duplicate retrieval and the generator's answer quality.
- Keep metadata and document structure where supported. Select settings from measured results rather than a universal token count.
Example in practice
Illustrative example. A procedure split between a condition and its exception may need a different boundary so retrieval returns both together.
Related AI help
- How do I check that a newly uploaded file is fully indexed before querying it?
- How do I make my RAG chatbot search only documents from a selected department?