Keep overlap when chunking a definition

Read identifiers and quoted passages in short groups. · 170 words

Chunking splits a long document into smaller passages for retrieval, meaning the system searches those passages. Without overlap, a sentence cut at a boundary can lose the reference that makes a definition understandable. A library guide says: 'A library membership is a renewable record that identifies a borrower. Its validity period is 12 months. The period starts on the payment date.' If chunk 1 contains the first two sentences and chunk 2 contains only the third, 'The period' has no clear owner.

Overlap fixes that without repeating every chunk. Keep chunk 1 as the first two sentences, and make chunk 2 contain 'Its validity period is 12 months. The period starts on the payment date.' The sentence about the 12-month validity is now the overlap. A retriever can select either chunk and still make a grounded answer, meaning an answer based on the source text: the membership lasts 12 months and starts on the payment date. Overlap should preserve needed context. It should not add facts or change the source.

Check your recall

Without overlap, why is the chunk 'The period starts on the payment date' ambiguous, and which sentence should overlap?

Check your answer

The phrase 'The period' refers to a missing definition of the library membership's validity period. Repeat 'Its validity period is 12 months' at the start of chunk 2 so the start date remains attached to the correct membership.

Sources and credits

Original KeyTouch lesson. Background reading · Lewis et al. · Retrieval-Augmented Generation.