Skip to content
sinc-LLMBook a 15-minute call

How to Compare RAG Chunking Under the Same Context Budget

Choose a chunking strategy with a frozen question set and measure which required evidence survives a matched context budget.

On this page

By Mario Alexandre · November 27, 2026 · 3 min read

Compare chunking strategies by measuring whether every required source span reaches the assembled context at the same token budget. Record ranked retrieval and answer quality separately. A chunk can rank first and still leave the model without a nearby exception, table heading, or condition that completes the answer.

Consider a synthetic test for a depot handbook assistant. A question asks whether a weekend return can go directly to stock. The overview says that weekend returns may go to stock. The exception immediately below requires an inspection for opened seals. A fixed-size chunk can retrieve the overview while clipping the exception. A section-based chunk may keep both together while consuming enough of the context budget to crowd out another answer’s evidence. The experiment should make both effects visible.

Freeze evidence before comparing chunks

Save a fixed handbook snapshot and a list of questions with stable identifiers. For each question annotate the required source spans using document revision and offsets, page regions, or another locator independent of chunk boundaries. Put every necessary fact on the list, including exception text and units. Record which questions require multiple spans and which have no authorized answer.

Run the two indexes against those same questions and identities. Hold the query wording, embedding and reranking configuration, top retrieval depth, tokenizer, total context budget, and context assembly procedure fixed. If an implementation needs to change more than its chunk boundaries, report it as a comparison of two pipelines. Elasticsearch offers ranked search evaluation over representative queries. The additional check here inspects evidence after the retrieved list has been assembled within the application’s context cap. Elasticsearch ranking evaluation API

Count complete evidence at the delivery boundary

In this synthetic six-question fixture, each system can assemble up to 1,200 evidence tokens under the same tokenizer. Require every annotated span for a question to be present in the assembled input. Use the retrieved lists to diagnose missing context and grade final answers against a separate rubric.

Question Fixed windows Section-based chunks
Standard return location Complete Complete
Opened seal exception Exception clipped Complete
Cold-storage unit Unit clipped Complete
Regional escalation rule Complete Complete
Two-policy comparison Complete Second source displaced
Emergency contact Complete Complete
Questions with full evidence 4 of 6 5 of 6

A candidate can have 5 of 6 complete-evidence cases and still fail a release rule that requires the two-policy comparison. Inspect why the relevant span disappeared. A span absent from all ranked results suggests a retrieval problem. A ranked span omitted from the assembled context points to selection or budget. A correct span in the context followed by a wrong answer points to generation or validation. Keep the actual selected spans beside each grade so someone else can verify the attribution.

Decide what to ship

Name the high-consequence cases before opening the results. In this example, retain the baseline while trying a section-based candidate with a bounded allowance for a second source. Evaluate the allowance on a fresh question set under the same total budget to see whether it preserves cross-document evidence without undoing the exception and unit gains. A short factual control where both indexes should return the same support helps catch a broken fixture or assembly step.

Also retain the token count actually delivered and the support spans lost during truncation. Two setups given the same limit can allocate that space differently. Separate a hit lost at assembly from a span the index never retrieved.

Use the output as evidence about the measured workload and budget. A different corpus, tokenizer or question mix can change the tradeoff. When planning candidate strategies before testing, use the existing guide to make the alternatives explicit. sinc-LLM guide to RAG chunking strategies