RAG Chunking Strategies: How to Split Documents So Retrieval Actually Works
RAG chunking strategies decide what retrieval can ever find. Fixed-size, recursive, semantic, parent-child and late chunking compared, with sizes and overlap.
By Galactic News Editorial · Published 2026-11-16T16:42:43+00:00 · Updated 2026-11-16T16:42:43+00:00
RAG Chunking Strategies: How to Split Documents So Retrieval Actually Works
RAG chunking strategies decide what your retrieval system can ever find. A retrieval-augmented generation pipeline can only answer from the chunks it retrieves, so how you split your documents sets the ceiling on answer quality. Split too large and each chunk mixes topics, diluting the embedding and burying the answer. Split too small and the retrieved fragment lacks the context the model needs to answer. Split across a sentence and the meaning breaks in half. This tutorial walks through the six main strategies, how to pick a size and overlap, and how to build and test your first chunker.
Why Chunking Matters More Than the Embedding Model
Chunking shapes three things at once: latency, relevance, and hallucination risk. More chunks mean a bigger vector store and slower search. Bigger chunks mean fewer vectors but noisier matches, because one embedding has to represent several ideas. A chunk that cuts a sentence in half can send the model a fragment it misreads, and the model then fills the gap with a confident guess. Chroma's evaluation of RAG chunking strategies found the choice of strategy can move recall by up to 9 percent, which is the difference between a system that works and one that hallucinates. Strategy beats library: LangChain, LlamaIndex, and Haystack all expose the same underlying approaches now, so the choice turns on pipeline fit, not on which framework you picked.
The Six RAG Chunking Strategies
| Strategy | How it splits | Best for | Cost |
|---|---|---|---|
| Fixed-size | Exactly N characters or tokens | Quick prototypes only | Free |
| Recursive | Tries paragraph, line, space, then character breaks | General-purpose RAG | Free |
| Document-aware | Markdown headers, HTML tags, code blocks | Structured docs with headings | Free |
| Semantic | Embedding similarity between sentences | Long-form prose | Embeds every sentence |
| Parent-child | Small child chunks embedded, large parent returned | Precise recall with full context | Two granularities stored |
| Late chunking | Embeds the full document, then pools per-chunk vectors | Docs where meaning crosses chunk boundaries | One embedding pass |
Fixed-Size and Recursive: Start Here
Among RAG chunking strategies, fixed-size splitting is the simplest approach: cut the text into chunks of exactly N characters or tokens, with optional overlap. It is fast and predictable, and it is also the worst option for production, because it cuts mid-sentence and mixes topics without noticing. Use it only for a first prototype.
Recursive splitting is the default among RAG chunking strategies that holds up on most corpora, and it is the recommended general-purpose splitter in LangChain. RecursiveCharacterTextSplitter tries a prioritized list of separators in order: paragraph breaks first, then line breaks, then spaces, then individual characters as a last resort. It recurses until each piece fits inside the chunk size. That gives it a much better chance of respecting real boundaries while still honoring the size limit. The default separator list is paragraph break, line break, space, and empty string. In one evaluation, recursive splitting at 200 tokens with no overlap scored 88.1 percent recall. Smaller chunks with no overlap beat larger chunks with heavy overlap on both recall and token efficiency.
Document-Aware, Semantic, and Parent-Child Splitting
Document-aware RAG chunking strategies use the structure the author already provided. LangChain's MarkdownHeaderTextSplitter splits on headings, and LlamaIndex's MarkdownNodeParser does the same, so each chunk matches one section of the document. On documents with consistent headings, this is the cheapest quality upgrade available: one survey's benchmark put structure-aware splitting at 0.85 recall at 5, against 0.72 for recursive splitting. If your documents have headings, start here.
Semantic RAG chunking strategies group sentences by meaning instead of by length. It embeds each sentence, measures similarity between neighbors, and starts a new chunk when the topic shifts. LlamaIndex ships this as SemanticSplitterNodeParser, and LangChain's SemanticChunker lives in its experimental package. It costs an embedding call per sentence, so it is slower and pricier than recursive splitting, but it produces the cleanest topic boundaries for long-form prose.
Parent-child RAG chunking strategies give you both precision and context. Small child chunks, a sentence or two each, are embedded and indexed for search. Each child points to a larger parent chunk, a paragraph or section, which is what the model actually receives. LangChain implements this as ParentDocumentRetriever. LlamaIndex pairs HierarchicalNodeParser with AutoMergingRetriever, which merges retrieved leaf chunks into their parent once enough of its children match. Managed services have adopted the same idea: Amazon Bedrock Knowledge Bases ships it as hierarchical chunking.
How to Pick a Chunk Size and Overlap
| Document type | Typical chunk size | Overlap |
|---|---|---|
| Long prose, articles, PDFs | 200 to 400 tokens | 30 to 50 tokens |
| Short FAQs or code snippets | 100 to 150 tokens | About 20 tokens |
| Tabular rows, CSV exports | 50 to 100 tokens per row group | 0 to 10 tokens |
A widely used baseline is 512 tokens with 10 percent overlap, and it is a reasonable starting point for general text. Overlap of about 10 percent of the chunk size preserves sentence boundaries, so an idea that straddles a cut still appears whole in one chunk. At roughly 300 tokens per chunk, you can retrieve three or four chunks inside a modest context budget, which is enough for most answers. For tables, do not split rows arbitrarily: treat each row as an atomic unit, because splitting a row breaks the relational meaning. If you index millions of rows, the extra storage from overlap can become prohibitive, so use row-level chunking and rely on column-level embeddings instead.
Build Your First Chunker in Five Steps
- Load one representative document and count its tokens with the same tokenizer your embedding model uses, so sizes are real rather than guessed.
- Start with LangChain's RecursiveCharacterTextSplitter at a chunk size of 512 tokens and an overlap of 50 tokens, using the default separator list of paragraph break, line break, space, and empty string.
- Print the first ten chunks and read them. Every chunk should read as a complete thought. If sentences are cut, raise the overlap or switch to a sentence splitter.
- Embed the chunks, store them in your vector store, and run ten questions you already know the answers to. Check whether the right chunk appears in the top five results.
- If retrieval misses, change one variable at a time: try header-based splitting for structured docs, try a smaller size such as 200 tokens, or try parent-child retrieval before you change the embedding model.
That last step is the discipline that matters. Chunking is the cheapest variable in the pipeline to change, and the most impactful. Test it on your own documents before you blame the model or the embeddings.
How to Test Whether Your Chunks Work
Measure retrieval, not vibes. Build a small test set of questions with known answers in your documents, and score recall at 5: how often does the chunk holding the answer appear in the top five retrieved results. Inspect the retrieved chunks by hand for a few queries. A good chunk is self-contained: it states one idea, with enough surrounding context to interpret it. A bad chunk starts mid-sentence, mixes two topics, or needs the previous chunk to make sense. Frameworks such as RAGAS can score chunk quality as part of a full pipeline evaluation, but a hand-checked test set of twenty questions will catch most problems faster. Re-run the test every time you change the chunker, because a change that helps one document type can hurt another.
Bottom Line
Start with recursive splitting at 512 tokens and 10 percent overlap, the safest of the RAG chunking strategies for general text. Switch to header-based splitting when your documents have structure, and reach for parent-child retrieval when small chunks recall well but the model needs more context. Keep chunks self-contained, measure recall on your own documents, and change one variable at a time. Retrieval can only find what chunking preserved, so get the split right before you tune anything else.