New Tool Radar

AI Concepts

How to Check Whether RAG Chunk Overlap Loses Facts at Boundaries

Find out whether facts that straddle a chunk boundary are being lost, and whether overlap actually saves them.

Schematic illustration with three step boxes: find boundary facts, test with and without overlap, and keep the winner.

When a document is cut into chunks, a fact that sits across the cut can end up in neither chunk in a usable form. Overlap is the usual fix, but it is not free: it duplicates content, raises storage cost, and can return near-identical results. A recent systematic study found overlap provided no measurable benefit and increased indexing cost, so check before you pay for it.

Before you start

A document with facts you can locate exactly, and a way to chunk it with overlap set to zero and to about 20 percent.

Find the facts that sit on boundaries

Pick ten facts from your document and note where each one sits: the start, middle or end of a paragraph, and how close it is to a likely cut point. Facts that span a sentence boundary or sit in the last line of a chunk are the ones at risk.

Write a question for each fact that can only be answered from that fact. If the question can be answered from elsewhere in the document, it cannot test boundary loss.

Run the same questions twice

Chunk the document once with no overlap and once with 20 percent overlap, keeping the chunk size the same. Run the ten questions against each version and record which facts are retrieved in the top 5.

Count the wins separately: facts retrieved only with overlap, facts retrieved only without it, and facts retrieved by both. A fact retrieved by both tells you nothing about overlap.

Decide on the difference, not the habit

Keep overlap only if it rescues facts that no-overlap misses, and the rescued facts matter to your readers. If both versions retrieve the same facts, drop the overlap and save the indexing cost.

If overlap rescues a fact, check the size of the rescue: one fact in ten is a different decision from five in ten.

Practice check: fictional Maple Corner policy manual

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

Fact No overlap 20 percent overlap Verdict
Refund window is 30 days Retrieved Retrieved No difference
Warranty covers batteries Missed Retrieved Overlap rescues it
Support hours end 18:00 Retrieved Retrieved No difference
Return label is prepaid Missed Missed Both miss – other cause
Exchange needs receipt Retrieved Retrieved No difference

Overlap rescues one fact in five and the other miss has a different cause, so the decision here is to keep a small overlap and investigate the remaining miss separately.

Expected result. UNTESTED: the retrieval results in the practice table are worked out by hand, not measured by running a retriever. Run your own ten boundary facts at both overlap settings and keep overlap only if it rescues facts that matter.

Limits

  • Overlap cannot fix a fact that is missing from the document or buried in a table the splitter mangles.
  • The cited study tested a specific setup; your corpus and embedding model may respond differently.

Sources

See all