The Practitioner's LLM Curriculum ← Week 5 · Chunking Strategy Comparator
Interactive · Week 5 · Section 4

Five chunking strategies, same document.

A real production decision: how do you split documents into retrievable chunks? The same source doc, the same query, but five different chunking strategies produce five different "best" retrieved chunks. Pick a strategy and a query, and watch the top-retrieved chunk shift in the document — and the similarity score change. The fragmentation and dilution failure modes are visible in the chunks themselves.

Chunk size 200 chars
Overlap 40 chars
Query
Chunks
—
total produced
Mean length
—
chars per chunk
Top-1 score
—
retrieval similarity
Answer captured
—
in the top-1 chunk

Source document · with chunk boundaries

retrieved chunk highlighted in accent

Chunks ranked by similarity

click any chunk to expand

What's happening here