Reconstructing Context: Evaluating Advanced Chunking Strategies for Retrieval-Augmented Generation

Carlo Merola, Jaspinder Singh
4/28/2025
cs.IRcs.AIcs.CL

No official code found. Best implementation: disi-unibo-nlp/rag-when-how-chunk (12 stars, MIT, last commit 2025-03-20).

Abstract

Retrieval-augmented generation (RAG) has become a transformative approach for enhancing large language models (LLMs) by grounding their outputs in external knowledge sources. Yet, a critical question persists: how can vast volumes of external knowledge be managed effectively within the input constraints of LLMs? Traditional methods address this by chunking external documents into smaller, fixed-size segments. While this approach alleviates input limitations, it often fragments context, resulting in incomplete retrieval and diminished coherence in generation. To overcome these shortcomings, two advanced techniques, late chunking and contextual retrieval, have been introduced, both aiming to preserve global context. Despite their potential, their comparative strengths and limitations remain unclear. This study presents a rigorous analysis of late chunking and contextual retrieval, evaluating their effectiveness and efficiency in optimizing RAG systems. Our results indicate that contextual retrieval preserves semantic coherence more effectively but requires greater computational resources. In contrast, late chunking offers higher efficiency but tends to sacrifice relevance and completeness.

View on arXivView PDF

Code Implementations(1)

MIT

[AI Project Work, KEIR] When and How Chunk in Modern RAG Applications

124Jupyter NotebookJan 3, 20251 years agoMIT

Similar Papers

Cite this paper

@article{merola2025reconstructing,
  title  = {Reconstructing Context: Evaluating Advanced Chunking Strategies for Retrieval-Augmented Generation},
  author = {Carlo Merola and Jaspinder Singh},
  year   = {2025},
  eprint = {2504.19754},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.19754v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.19754.svg)](https://codeofpaper.com/paper/2504.19754)

Discussion