New Tool Radar

AI Concepts

How to Choose a RAG Chunk Size for Your Question Type

Pick a RAG chunk size that fits the questions your readers actually ask, instead of copying a 512-token default.

Schematic illustration with three step boxes: sort your questions, match size to type, and test recall at each size.

A chunk size that works for short fact questions can fail on comparison questions that need several paragraphs together. The size should follow the question type: factoid lookups do best with small chunks, while analytical questions need larger ones. A 2026 benchmark summary puts factoid queries at 256 to 512 tokens and multi-hop analytical queries at 512 to 1,024 tokens.

Before you start

A small set of real questions from your own users, grouped by type, and a RAG pipeline where you can change the chunk size and re-index.

Sort the questions by type

Split your test questions into factoid lookups (one fact, one source), comparisons (two or more items) and summaries (a whole section). Count how many fall in each group. The largest group decides the default size, and the other groups get their own check.

Write down the answer span each question needs: a single sentence, a paragraph, or a whole table. If the span is longer than the chunk, the retriever cannot return it whole, and the model has to guess the missing part.

Pick a starting size per type

Start factoid lookups at 256 to 512 tokens and analytical questions at 512 to 1,024 tokens. These ranges come from published benchmark summaries, not from a rule of the format. Treat them as a starting point to test, not as a final answer.

Keep chunks small enough that one chunk holds one idea. When a chunk mixes two unrelated topics, its embedding represents neither well, and retrieval precision falls.

Test recall before you settle

For each size, run the same test questions and record how often the chunk holding the answer appears in the top 5 results. Change one variable at a time: size first, overlap second, retrieval method third.

Pick the smallest size that keeps recall high for your largest question group. Smaller chunks cost less to embed and leave more room in the context window for more results.

Practice check: fictional Maple Corner support docs

The table below is fictional practice material, worked out by hand from the stated chunk sizes. It is the expected result for the practice questions, not a run of any retrieval system.

Question type Chunk size Recall in top 5 Verdict
Factoid: refund window 256 tokens 5 of 5 Pass
Factoid: warranty length 256 tokens 4 of 5 Pass
Comparison: Plan A vs Plan B 256 tokens 2 of 5 Fail – chunks too small
Comparison: Plan A vs Plan B 768 tokens 5 of 5 Pass
Summary: onboarding steps 768 tokens 4 of 5 Pass

Factoid questions pass at 256 tokens, but the comparison question needs 768 tokens to pass. One size does not fit all three types, so the default follows the largest group.

Expected result. UNTESTED: the recall numbers in the practice table are worked out by hand, not measured by running a retriever. In your own pipeline, run the same test questions at each size and keep the smallest size that holds recall for your largest question group.

Limits

  • Chunk size alone does not fix bad retrieval: the embedding model, the index and the query wording all matter.
  • These ranges come from benchmark summaries on academic text; your documents may behave differently, so test on your own data.

Sources

See all