MENU

GET IN TOUCH

All posts

November 16, 2026 · 4 min read · Vishal Krishna Kumar

The best chunk size depends on your retriever

I re-ran the same chunking audit with an embedding model instead of BM25. The strategy that ranked first fell to fifth, and 400-word chunks lost 25 points of Recall@5.

In an earlier post I audited nine chunking strategies on 10,570 SQuAD questions with a BM25 retriever. The obvious objection is that most RAG systems retrieve with embeddings, not BM25. So I added an embedding retriever to chunkaudit and ran the same audit again.

The setup

Same documents, same questions, same chunkers. Only the retriever changed, from BM25 to sentence-transformers/all-MiniLM-L6-v2, ranking chunks by cosine similarity. A chunk still counts as a hit only if it contains the whole sentence that answers the question. The run happens on GitHub Actions through a workflow in the repository, so anyone can reproduce it. Two separate runs gave identical tables.

The ranking changed

StrategyRecall@5, BM25RankRecall@5, embeddingsRank
paragraph:20091.6%284.0%1
recursive:20091.3%383.5%2
sentence:5:189.8%581.8%3
sentence:386.0%780.1%4
sentence:10:292.5%179.7%5
fixed:200:5090.2%478.9%6
fixed:20078.7%868.7%7
fixed:40087.5%662.7%8
fixed:10062.6%957.4%9
  • The biggest chunks lost the most. Ten-sentence chunks, about 245 words each, went from first place to fifth. Fixed 400-word chunks fell from 87.5% to 62.7%.
  • Small chunks gained. Three-sentence chunks, about 74 words each, moved from seventh to fourth.
  • Some things held. Paragraph-aware chunks of about 150 words were in the top three with both retrievers. Fixed chunks with no overlap were near the bottom with both, and a 50-word overlap helped with both.
  • The split rate did not move at all. How often a strategy cuts the answering sentence in two depends only on the chunker, so that column is identical in both runs.

Why big chunks suffer

A likely reason is the input limit of the model. This one reads at most 256 tokens, roughly 190 words. Anything after that is never seen, so the second half of a 400-word chunk does not contribute to its embedding at all. A second effect is dilution: one vector has to stand for everything in the chunk, and the more topics a chunk covers, the less it resembles any single question.

I have not separated those two effects. Testing a model with a longer input limit on the same data would do it, and the workflow takes the model name as an input for that reason.

Do not read this as BM25 beats embeddings

BM25 scored higher than this embedding model on every strategy here. That says more about SQuAD than about the retrievers. Its questions were written by people looking at the passage, so they share many words with it, which is exactly what BM25 rewards. On questions phrased differently from the source text, the picture can reverse.

There is also a cost difference worth knowing. On the same GitHub Actions runner, the BM25 audit took 7 seconds and the embedding audit took 322 seconds.

What I take from it

Chunk size is not a setting you can tune once and carry between systems. A size that works with a lexical retriever can be too long for an embedding model, and the only way to know is to measure with the retriever you will actually use.

pip install "chunkaudit[embeddings]"
chunkaudit squad --out data/squad
chunkaudit run data/squad --retriever embeddings

The full tables for both retrievers are in the repository.

VISHAL-KRISHNA

vishalkrishnakkr@gmail.com