Before an AI can retrieve knowledge, someone sliced the documents. Slice them yourself — four splitters, live controls — and see why so many RAG systems miss.
Chunking is the step where a long document is cut into smaller pieces before being stored in a retrieval system. A language model can only usefully attend to a limited amount of text at once, and a retrieval system can only return whole pieces — so the shape of those pieces decides what any RAG system can ever find. A chunk is the atom of retrieval: if the answer to a question straddles two chunks, no amount of clever search puts it back together.
Most RAG failures people blame on 'the model' are actually chunking failures: the retriever returned a fragment whose sentence was cut in half, or a chunk so large the relevant line drowned in noise. Being able to look at a document and predict how it will chunk — and what questions will therefore be unanswerable — is a core skill when you build or debug anything with retrieval in it.
Retrieval can only ever return whole chunks — so the moment you chunk a document, you've already decided which questions it can answer.
Why it matters: a RAG system can only retrieve whole chunks. If the answer to a question is split across a chunk boundary with no overlap, retrieval returns a fragment and the model guesses the rest. That's why production pipelines default to recursive splitting with 10–15% overlap — try reproducing that here.
Chunking splits documents into retrievable pieces before they are embedded. Retrieval returns chunks, not documents — so chunk boundaries decide what an AI system can find.
Often because the fact was split across two chunks, or a chunk lost its surrounding context. Bad chunking looks like a bad model but is really a data problem.
There is no universal number — it depends on the document structure and the questions asked. That is exactly what this lab lets you feel: drag the size and overlap and watch what breaks.
Deeper dive: RAG, defined properly
Prompt Anatomy walks a production-grade prompt apart with the COSTAR framework — click each piece to see what it does.