RAG Chunking Strategies 2026
RAG Chunking Strategies 2026: Fixed Size, Recursive and Semantic Splitting Compared。Retrieval quality is capped at the moment you split the document. A chunk serves two roles: the embedding inpu
📜 Table of Contents
RAG Chunking Strategies in 2026: Fixed, Recursive, Semantic
Retrieval quality is capped at the moment you split the document. A chunk serves two roles: the embedding input and the context handed to the model. Too large and several topics average out into a vague vector; too small and pronouns lose their referents.
Five strategies
- Fixed size: cut every N characters with an overlap window. Structure-blind, best for messy plain text. Overlap of 10-20% prevents mid-sentence cuts.
- Recursive: split on paragraphs, then sentences, then characters.
RecursiveCharacterTextSplitteris the workhorse. For Chinese, add punctuation to the separator list, and rememberchunk_sizecounts characters, so copying 1000 from an English tutorial produces very long chunks. - Structure-aware: split Markdown by headers or HTML by tags, keeping hierarchy in metadata. Best for manuals and technical docs.
- Semantic: embed sentences and cut where similarity drops. Good boundaries, but slow, costly and threshold-sensitive.
- Parent-child: retrieve small child chunks for precision, return the larger parent for context.
ParentDocumentRetrieverimplements this and usually beats tuning chunk size alone.
Parameters
| Strategy | Chunk size | Overlap | Cost | Documents |
|---|---|---|---|---|
| Fixed | 300-500 chars | 10-20% | Lowest | Unstructured text |
| Recursive | 500-1000 chars | 10-15% | Low | General, smaller for Chinese |
| Structure-aware | Per section | Small | Low | Markdown, HTML, manuals |
| Semantic | Per topic | None | High | Long arguments, interviews |
| Parent-child | Small + large | Varies | Medium | High-precision Q&A |
No universal optimum exists. Public benchmarks favor a few hundred tokens for typical Q&A, but your corpus and question mix change the answer.
Match chunks to query types
Fact lookup wants small, single-fact chunks. Process questions want complete steps even if long. Comparison questions need one full argument per chunk. Summaries want section-level chunks with hierarchy. Mixed traffic often justifies two indexes.
Validate with data
Pull 50-100 real questions, label the source passage for each, build indexes with two or three strategies, then measure whether the label appears in top 3 or top 5. If semantic splitting beats recursive by only a few points, skip the cost. Inspect individual failures rather than averages, and watch the chunk-length distribution for tiny fragments that signal a bad separator.
Practical notes
- Chinese characters are not English tokens; do not reuse English parameters
- Split tables by row with the header repeated, or table retrieval fails
- Keep code blocks intact
- Attach file name, section and page metadata so answers can cite sources
- Rebuild incrementally; full re-chunking does not scale
FAQ
What chunk size? Start at recursive, 500-800 characters, 10% overlap, then measure.
Is overlap required? Barely, with good sentence separators. Character cuts benefit most, at the cost of index size and duplicate hits.
Is semantic chunking worth it? For long, topic-shifting documents with high quality demands, yes. For routine Q&A, recursive gets most of the gain.
Chunking or reranking first? Chunking. Reranking cannot rescue a candidate set that never contained the answer.
Related
Written by our editorial team; tools listed here are tested or verified against public sources. Links point to official sites or GitHub repos for reference only — no paid placements.