A Systematic Analysis of Chunking Strategies for Reliable Question Answering
- Authors
- Sofia Bennani
- Charles Moslonka
- Affiliations
- Artefact Research Center
- MICS, CentraleSupélec, Université Paris-Saclay
- Accepted at
- ECIR 2026
- Date
- arXiv
- 2601.14123
Abstract
We study how document chunking choices impact the reliability of Retrieval-Augmented Generation (RAG) systems in industry. While practice often relies on heuristics, our end-to-end evaluation on Natural Questions systematically varies chunking method (token, sentence, semantic, code), chunk size, overlap, and context length. We use a standard industrial setup: SPLADE retrieval and a Mistral-8B generator. We derive actionable lessons for cost-efficient deployment: (i) overlap provides no measurable benefit and increases indexing cost; (ii) sentence chunking is the most cost-effective method, matching semantic chunking up to ~5k tokens; (iii) a "context cliff" reduces quality beyond ~2.5k tokens; and (iv) optimal context depends on the goal (semantic quality peaks at small contexts; exact match at larger ones).
Cite this paper
@inproceedings{bennani2026systematic,
title = {A Systematic Analysis of Chunking Strategies for Reliable Question Answering},
author = {Sofia Bennani and Charles Moslonka},
booktitle = {European Conference on Information Retrieval (ECIR 2026)},
year = {2026},
doi = {10.1007/978-3-032-21321-1_9},
url = {https://doi.org/10.1007/978-3-032-21321-1_9}
}Copied
Introduction
Enterprises increasingly deploy RAG systems for knowledge access and user support. In industrial settings, these systems operate under strict constraints regarding latency, storage costs, and maintainability. While agentic workflows are the ultimate goal, reliability hinges on the foundational retrieval layer — particularly how source documents are chunked. Despite ample work on retrieval (1, 2, 3) and LLMs, chunking is often left to rules of thumb. This paper reports an end-to-end, data-driven study conducted to standardize our production defaults. Our contributions are:
A systematic evaluation of chunking method, size, overlap, and context length for agentic question answering (QA) on Natural Questions (NQ).
Compact, deployable guidance: avoid overlap; prefer sentence chunking; select context size by task; beware the “context cliff”.
A reliability view that includes abstention (“NONE”) rates alongside semantic and exact-match metrics.
Experimental Setup
We evaluate a standard two-stage RAG pipeline (Figure 1): a sparse retriever indexes chunked documents; the top-ranked chunks are passed to an instruction-tuned LLM prompted to answer strictly from context and output “NONE” otherwise.
We use the Natural Questions (4) short-answer subset (open-domain QA). The underlying corpus is English Wikipedia; documents are ingested and chunked according to each strategy below, then indexed.
We use SPLADE (5, 6) (pretrained weights (7)) to build a sparse index over all chunks. At query time, we retrieve the top-ranked chunks and fill a token budget (context length) using the generator’s tokenizer, appending in rank order until the budget is reached. This “fill-to-budget” policy ensures fair comparison across chunk sizes and methods (no fixed- bias).
Token: fixed-size sliding windows of target size with optional token overlap .
Sentence: respects sentence boundaries; no sentence is split.
Semantic: sentence-preserving; adjacent sentences are merged if cosine similarity (all-MiniLM-L12-v2) exceeds 0.5, up to the target size .
Code: structure-aware parsing (e.g., functions/classes) for source code, focused on markdown; included for completeness though NQ is text-centric.
We use Ministral-8B-Instruct-2410 (8) with low-temperature decoding (). The prompt enforces grounded generation and explicit abstention: “Answer only using the provided context. If the context is insufficient, output ‘NONE’.” We cap output length to short answers.
We evaluate four methods (Token, Sentence, Semantic, Code) across a grid of sizes. We test chunk sizes from 50 to 500 (step 50), with overlaps of 0% or 20%. Finally, we retrieve into a context budget of {500, 1k, 2.5k, 5k, 10k} tokens.
We report:
BERTScore (9) (semantic quality vs. reference answer).
Exact Match (EM) with standard normalization (lowercasing; stripping punctuation/articles).
None Ratio: fraction of queries where the model outputs “NONE”.
We compute 95% bootstrap confidence intervals over questions; claims of “no measurable difference” indicate paired deltas within CIs (e.g., , EM differences ). We intentionally do not use rerankers or LLM-as-reranker to isolate the effect of chunking and context budgeting.


Findings
We report the end-to-end effects that were most consistent and actionable across settings, along with brief mechanisms and deployment implications.
Across paired configurations, adding 10–20% overlap did not improve BERTScore or EM (e.g., BERTScore ; EM differences ). Mechanism: with a sentence-aware pipeline and a sparse retriever, boundary spillover rarely changes the top- content; overlap mostly introduces near-duplicates. Cost: for overlap ratio , chunk count (and index size) inflates by a factor (e.g., leads to more chunks), increasing ingestion time and storage. Recommendation: use unless you have evidence your retriever benefits from boundary redundancy.
Sentence and semantic chunking were statistically tied up to 5k tokens; token chunking lagged; code chunking was not competitive on this text task (Fig. 2). Mechanism: sentence-preserving methods keep topical coherence and reduce cross-sentence fragmentation, improving both retrieval precision and LLM grounding. Semantic merging helps when very large contexts are used (slight edge k), likely by packing semantically contiguous text. Recommendation: default to sentence; consider semantic only for very large or highly discursive documents.
Performance improved from small to moderate contexts but dropped beyond 2.5k tokens. For sentence chunking (, ), BERTScore was stable between 0.5k–2.5k tokens and then declined by – relatively at 10k tokens. Mechanism: long-context LLMs can suffer from distraction and redundancy; retrieval at large budgets introduces overlapping or off-topic chunks, diluting signal. Recommendation: identify and enforce a sweet spot for ; in our setup, k was a strong default for QA. Note that the exact drop-off point is model-dependent; our values reflect Ministral-8B-Instruct-2410 and should be re-tuned per LLM. However, the existence of a performance plateau or decline with excessive context is a consistent phenomenon in RAG.
BERTScore tended to peak at small, focused contexts ( tokens), whereas EM peaked at larger contexts ( k). None Ratio fell with larger (e.g., from at 0.5k to at 10k) and rose with larger . Mechanism: small concentrates the most relevant evidence (good for semantic faithfulness), while larger increases recall across disparate mentions (good for EM). Larger chunks reduce the number of distinct contexts retrieved, increasing abstention when narrow evidence is missed. Recommendation: for summaries/explanations, keep small; for factoid QA, use k. To reduce “NONE”, increase and use smaller .
Our study focuses on optimizing the first-stage retrieval index, a critical step for latency-sensitive industrial applications. We intentionally excluded rerankers and late-interaction models (e.g., ColBERT) to isolate the effects of chunking on the base retriever; while these methods often improve precision, they incur higher storage and latency costs that must be weighed against their benefits in future work. Furthermore, our results on Natural Questions are most representative of general text-centric corpora. While code chunking remains the clear choice for source code, these findings should be validated on specialized enterprise domains (e.g., legal or technical documentation). Finally, we used low temperature () to minimize generation variance, though key trends persisted under bootstrap resampling.
Conclusion
Chunking is a first-order design choice for reliable, cost-effective RAG agents. Our study provides compact, deployable guidance: avoid overlap; default to sentence chunking; tune context to the task; beware the context cliff beyond 2.5k tokens; and use and to control abstention. These defaults have improved the robustness of client-facing agents in practice and offer a baseline for future IR-for-agents evaluations.
Next step
A problem worth researching?
Tell us what you are trying to solve, and we will put you in touch with the people who work on it.