Document Chunking & Overlap
Chunking splits long documents into smaller pieces. Overlap repeats a few words between chunks so important meaning is not lost at the boundary.
This is a simple learning demo. Real RAG systems may use more advanced chunking methods.
Real RAG systems split text different ways — by word count, character length, sentence, or paragraph — depending on the content.
Document Timeline
Chunks
🚫 Without Overlap
Storage: Uses less storage, but nearby meaning may be split.
Context: Words at chunk boundaries can lose their connection to nearby meaning.
🔗 With Overlap
Storage: Uses more storage, but keeps more context between chunks.
Context: Repeated words at the boundary help preserve meaning across chunks.
Try the default question below — it sits right on a chunk boundary, so overlap makes the difference.
Statistics
How It Works
Document
Chunks
Overlap
Context
Retrieval
Overlap repeats a small part of the previous chunk so important context is less likely to be lost.