Many enterprise AI pilots answer questions from company documents. They use retrieval-augmented generation (RAG), where the AI looks up your documents before it answers. One setting shapes how well this works: chunk size.
A chunk is one piece of a document that the system stores and searches. The wrong chunk size gives slow or off-target answers. Teams then lose trust in the pilot.
Chunk size is a balance. Small chunks are precise but can lose context. Large chunks keep context but can be slow and noisy. You find the right size by testing on your own documents.
How does chunk size affect RAG performance?
Chunk size sets how much text the system reads in one lookup. Small chunks let the system pick out exact facts. But a small chunk can leave out the sentence that explains the fact. This gets worse when the system pulls back only a few passages per question.
Large chunks carry more context. They raise the chance that the right information is in the top results. But they add extra text the AI must read, so answers can be slower and cost more to produce.
One example from our work: RAG search for a national statistics ministry: questions in Hindi, English and Kannada, by voice or text, with citations that link to the exact source page. 490+ legacy statistical tables indexed and queryable in plain language.
Tables and long reports behave differently from short FAQs. That is why there is no single best size for every team.
What should you measure?
Track three things when you compare chunk sizes:
- Response time: how fast the system answers. Users stop using slow tools.
- Faithfulness: whether the answer sticks to the source documents. Low faithfulness means the AI is making things up, which people call hallucination.
- Relevancy: whether the answer addresses the question that was asked.
Do not judge on one measure alone. A fast system that answers the wrong question has no value. A precise system that takes too long will not be used.
How do you test chunk size?
Set up a controlled test. Use the same documents and the same questions each time. Change only the chunk size.
- Load a sample of your real documents.
- Write test questions that real users would ask. Include hard ones.
- Run each chunk size against the same questions.
- Score response time, faithfulness and relevancy.
- Ask subject experts to check a sample of the answers by hand.
Open-source evaluation tools can automate much of this. Repeat the test when your documents change. A size that worked for last year's manuals may not suit new contracts or reports.
What are the trade-offs?
Smaller chunks often return faster and cost less per question. But they can miss context, and relevancy drops. Larger chunks often improve the quality of what is found. But they can slow the system and raise running cost.
Cost grows with the amount of text the AI reads for each answer. So chunk size affects your bill as well as your speed. Weigh both against what your users need.
Some systems can change chunk size by document type. For example, a policy manual and a spreadsheet export may need different settings. This adds work to build and test, so add it only when the gain is clear.
How we approach it
We do not set chunk size from a guide and move on. Our forward-deployed engineers work inside your team. We test on your documents and your real questions.
We start by agreeing what a good answer looks like with the people who use it. Then we build the test, compare options, and ship the best one. Our process moves from discovery to proof, then to production and handover.
At handover, your team gets the test set and the scoring method. You can then re-run the tests yourselves when your content changes. Our RAG systems work follows this pattern.
What this means for enterprise teams running AI in production
In a demo, a few easy questions hide chunk size problems. In production, thousands of real questions expose them. Users lose trust fast when answers are slow or wrong.
Treat chunk size as something you monitor, not a one-time setting. Keep a test set, watch the three measures, and review them when documents change. Set a clear owner in your team. Track cost as well, because the amount of text read per answer drives it.
FAQ
Is there a standard starting chunk size?
Teams often start with a medium size and adjust. The best size depends on your documents and questions, so test it.
How does chunk size affect cost?
Larger chunks mean more text for the AI to read per answer. That usually raises compute cost, so balance it against answer quality.
Can chunk size change automatically?
Some systems can adjust it by document type or query. It adds complexity, so test whether the gain is worth it.
Next step
If your team has a RAG system that gives weak answers in pilot but not in production, book a discovery call.
Saksham Gupta
Founder & CEO, EduBildSaksham Gupta is the founder and CEO of EduBild, which embeds forward-deployed AI engineers with enterprise teams to ship production AI. Ex-Daimler AG; KIT Germany.



