RAG Chunking Strategy: Why Fragments Answer Wrong
RedHub AI Editorialupdated November 11, 20269 min read

Jump to a section11
TL;DR
- What chunking is: before a RAG bot can search your documents, they are cut into pieces of a few hundred words. The bot only ever reads pieces.
- The defaults disagree: OpenAI's file search defaults to 800-token chunks with 400 tokens of overlap. Google Cloud's RAG Engine defaults to 1,024 with 256. LlamaIndex defaults to 1024 with 20. Microsoft suggests starting at 512 with 25%.
- That disagreement is the lesson: there is no correct number. Researchers who built three RAG systems wrote that small chunks leave some questions unanswerable and long ones add noise.
- The fix that works at any size: write each section so it makes sense alone. One topic per section, the subject named in its first sentence, no "see above."
- Tune size last: settings are cheap to change and easy to test. A page that only makes sense whole fails at every chunk size.
What is a good RAG chunking strategy?
A RAG chunking strategy is how your documents get cut into the pieces a chatbot searches and reads. The common advice is to pick a chunk size and an overlap, and the major platforms ship defaults between 512 and 1,024 tokens. Those defaults are reasonable starting points and they do not agree with each other, because the right size depends on how your documents are written. For a small team, the strategy that pays off first is structural: one topic per section, each section opening with its subject, and no passage that depends on the paragraph above it. Then start from your platform's default and change it only when a list of real test questions shows a reason to.
Best for: anyone loading a help center, wiki, or folder of PDFs into a chatbot. Structure and chunkability is one of the six controls in the RAG & Knowledge-Base Retrieval-Readiness Gate.
Your returns article is clear to a person. The first paragraph says it covers orders shipped outside the United States. Four paragraphs later it says returns are accepted within 60 days. A customer in Ohio asks the bot about returns. The search step lifts the second chunk, which says 60 days and says nothing about international orders, because that sentence sat in the first chunk. The bot answers 60 days. Domestic returns are 30.
RedHub is not affiliated with any vendor or researcher named here. Quotes are taken from their published documentation and papers as they read when this post was written.
That is a chunking failure, and it is the second detail post in our guide to why RAG chatbots give wrong answers. The previous post covered the stale knowledge base. This one is about RAG chunking strategy: what the settings do, why nobody agrees on them, and the writing habit that matters more than either.
What happens to a page before the bot can read it
A RAG system cannot search a whole page at once in any useful way, so it cuts the page into pieces, turns each piece into an embedding, and searches those. Anthropic's contextual retrieval post (opens in a new tab) describes the pieces as "usually no more than a few hundred tokens." Microsoft's documentation says "each token is around four characters of text for common OpenAI models," so think a few paragraphs at most.
The same post shows what goes wrong with an example from financial filings. A chunk reads: "The company's revenue grew by 3% over the previous quarter." As Anthropic puts it, "this chunk on its own doesn't specify which company it's referring to or the relevant time period." The sentence was perfectly clear in its filing. Cut loose, it is a number with no owner. Your returns article has the same problem, with less obvious stakes until a customer acts on it.
Four platforms, four defaults
Every platform that does chunking for you ships a default. Here they are, quoted from each vendor's documentation:
| Platform | Default or starting size | Overlap | Source |
|---|---|---|---|
| OpenAI file search | 800 tokens | 400 tokens | Retrieval guide (opens in a new tab) |
| Google Cloud RAG Engine | 1,024 tokens | 256 tokens | Fine-tune RAG transformations (opens in a new tab) |
| LlamaIndex | 1024 | 20 | Basic strategies (opens in a new tab) |
| Azure AI Search (recommended start) | 512 tokens | 25%, or 128 tokens | Chunk documents (opens in a new tab) |
OpenAI's guide spells out what its default means: "every file is indexed by being split up into 800-token chunks, with 400-token overlap between consecutive chunks." Microsoft's is phrased as advice rather than a default: "We recommend starting with a chunk size of 512 tokens (approximately 2,000 characters) and an initial overlap of 25%, which equals 128 tokens."
The spread is not a sign that three of the four are wrong. It is a sign that the number depends on the content. Microsoft says so in the same document: "The optimal overlap might vary depending on your content type and use case." LlamaIndex describes the trade-off: "A smaller chunk size means the embeddings are more precise, while a larger chunk size means that the embeddings may be more general, but can miss fine-grained details."
The researchers behind the Seven Failure Points (opens in a new tab) paper, who built three RAG systems and wrote up what broke, put the same trade-off in one line: "If chunks are too small certain questions cannot be answered, if the chunks are too long then the answers include generated noise." And they did not pretend it was solved: "Chunking documents sounds trivial."
Overlap is a patch, not a fix
Overlap repeats the end of one chunk at the start of the next, so a sentence near a boundary appears in both. It helps when the thing that got cut was one sentence. It does not help when the condition that governs a whole article sits in its first paragraph and the answer sits in its fifth. No reasonable overlap reaches that far, and making chunks large enough to hold the whole article brings back the noise problem.
This is the complication with tuning: there is real benefit at the edges, and real cost when it is used to cover for structure. A team that spends a week testing 400 against 800 tokens on a help center full of long, multi-topic articles is measuring which wrong answer it prefers.
Write sections that survive being cut out
The fix that works at every chunk size is in the writing. Intercom's content guidance for its Fin AI agent (opens in a new tab) is the clearest version we have found, and it applies to any RAG system:
- One topic per section. "Use headers (H1, H2, H3) to divide your content into focused, single-topic sections. Each section should cover one thing — if a section mixes multiple subjects, break it up."
- Name the subject in the first sentence. "Fin may not always capture headings from HTML — this is why each section should restate its topic in the opening sentence, not rely on the heading alone."
- The test. "Self-contained sections: Every section makes sense if retrieved in isolation."
Apply those to the returns article from the top of this post. It becomes two articles, or two clearly separated sections: "Returns for orders shipped within the United States" and "Returns for international orders," each stating its own window in its own first two sentences. Now any chunk the search step lifts carries its own condition. The chunk size stopped mattering much.
Three habits break this most often in small-team documents:
- "See above" and "as mentioned." A reference to earlier text is a reference to a chunk the bot does not have.
- Exceptions at the bottom. "Note: this does not apply to annual plans" in the last line of a long article is the line most likely to end up in a different chunk from the rule it limits.
- Tables with no sentence. A pricing table cut mid-row loses its column headers. Intercom suggests a single introductory sentence that makes the table self-explanatory.
One more signal from the research is cheap to copy. Barnett and colleagues reported that "Adding the file name and chunk number into the retrieved context helped the reader extract the required information." If your platform lets you include a document title with each chunk, do it. Anthropic's contextual retrieval does a heavier version of the same thing, adding a generated summary of each chunk's place in its document, and reports large drops in retrieval failure from it. A descriptive title on every page is the free version.
Grading structure before you tune
The RAG & Knowledge-Base Retrieval-Readiness Gate grades structure and chunkability as one of its six controls. Its definition is the property this post has been describing: "Documents are structured so a retriever can lift a clean, self-contained answer." You mark it 0, 1, or 2 per collection from your own read. The verdict is the weakest of the six, so a collection with perfect freshness and a half-structured help center still reads STALE until the structure is fixed. In the engine's shipped sample, the Sales playbook collection has structure marked partial along with two other controls, and it reads STALE.
It does not measure chunk size or test retrieval. When your content is structured and you want to know whether a given size retrieves the right passages, that is a measurement job, and RAG evaluation: how to grade your retrieval covers it. Do it with real questions, which is the subject of knowledge base content gaps.
A short order of work
- Split multi-topic pages. If an article answers three questions, make it three sections with their own headings and opening sentences.
- Move exceptions next to their rules. The condition goes in the same paragraph as the number it limits.
- Remove backward references. Replace "as mentioned above" with the thing that was mentioned.
- Introduce every table. One sentence saying what the table is and who it applies to.
- Keep your platform's default size. Change it only when real test questions show a pattern, such as answers that are consistently cut short.
Grade structure along with the other five
The RAG & Knowledge-Base Retrieval-Readiness Gate grades six content controls per collection, structure and chunkability among them, and returns ANSWER-READY, STALE, or UNGROUNDED, with a grounding gate for contradictions and unmapped permissions. Deterministic and offline.
Get the Retrieval-Readiness Gate →Pairs well with
The RAG Retrieval Grader is the measurement step: Recall@k, Precision@k, MRR, and nDCG against your own vector database, gated in CI, for comparing chunk settings once the content is ready. The AI Agent & Connector Access Auditor scores what each connected agent can reach, for when the same documents feed more than one assistant.
Keep going: the set starts at why your RAG chatbot gives wrong answers. The previous post is the stale knowledge base, and next is RAG metadata, the labels that settle which of two pages is current and who may see each one.
Decision Guide
Structure is ready if: every section covers one topic, opens by naming it, and keeps its exceptions next to the rules they limit.
Not ready if: long articles carry their conditions in the first paragraph and their answers further down, or depend on "see above."
Best first step: open your five most-read help articles and ask of each section whether it would make sense if it were the only thing a customer saw.
FAQ
What chunk size should I use for RAG?
Start with your platform's default. OpenAI's file search defaults to 800 tokens with 400 overlap, Google Cloud's RAG Engine to 1,024 with 256, and Microsoft suggests starting at 512 with 25% overlap. Change it only when tests with real questions show a consistent problem.
Does more overlap fix chunking problems?
Only near the boundaries. Overlap repeats a little text between neighboring chunks. It cannot reconnect a condition in an article's first paragraph with an answer four paragraphs later. Moving the condition next to the answer can.
Why does my chatbot give half an answer?
Often because the answer was split across two chunks and only one was retrieved, or because an exception sat in a different chunk from the rule. Writing each section so it makes sense alone fixes most of these.
Should I write help articles differently for AI?
Mostly you should write them better for people. One topic per section, the subject named early, exceptions beside their rules, and tables introduced in a sentence all help a human skimmer too. The bot is less forgiving of the old habits.
Does the Retrieval-Readiness Gate test chunk sizes?
No. It grades whether your documents are structured so a retriever can lift a clean, self-contained answer, from your own marks. Measuring retrieval at a given chunk size is the RAG Retrieval Grader's job.


The gate this post refers to, drawn from the tool’s own logic. See the tool.