My Profile Photo

Prof. Garg - Building AI things!


Exploring and experimenting to create an era enabled by AI.


← All Projects working paper
LLM Systems & Applications

RAG Chunking for Long- and Short-Form Text: Optimizing Retrieval Cost and Quality

Siyao Yu, Rajiv Garg
Working paper · 2026

LLM Systems & Applications illustration

Chunking strategy is one of the most consequential — and least principled — design choices in a retrieval-augmented generation (RAG) pipeline. Chunk too small and you lose context; chunk too large and you burn tokens (and money) retrieving irrelevant text. This project studies how the optimal chunking strategy differs between long-form documents and short-form text, and builds a cost-aware framework for choosing chunk size and overlap.

The goal is a practical decision rule: given a document type and a retrieval quality target, what chunking configuration minimizes cost per query without sacrificing the answers RAG is supposed to get right.