Chunking divides long text by size or semantic boundary and stores each passage as a retrievable unit. Tiny chunks lose context, while large ones can mix irrelevant material into a result.
The demo moves a boundary and shows how overlap preserves nearby context. Tune chunk size and overlap for the documents and measured retrieval quality.
When to use
Use it to index long documents for RAG or fit relevant passages into context.