RAG Chunk Planner
Estimate document chunks, repeated overlap and the retrieved passages that fit alongside your instructions and answer.
Use the tool ↓- Split the source
- Retrieve useful passages
- Reserve answer space
Your answer will appear here
Set the inputs, then select “Plan retrieval capacity”. You will see the result, its assumptions and the next useful step.
- Split the source
- Retrieve useful passages
- Reserve answer space
Method and worked example
Chunks per document = 1 + ceiling(max(0, source tokens − chunk size) ÷ (chunk size − overlap)). Repeated overlap is charged only between chunks. Retrieval capacity = floor((90% of context − instructions − output) ÷ chunk size).
What this result can tell you
No embeddings, tokenizer or relevance evaluation runs. Preserve tables, code blocks and source identifiers; check retrieval with known-answer questions.
Check the complete context budget →Method version 3.16.0
Common questions
Is one chunk size best for every document?
No. Short FAQs, narrative documents and code need different boundaries. Treat the size as an experiment and measure whether answers retrieve the right passage.
Does overlap reduce the answer budget?
Retrieved chunks can contain repeated text. This planner budgets their full size so overlap is not treated as free context.
References and next checks
Documentation checked 2026-09-05. Provider capabilities can change; use the linked documentation for the exact model or plan.