The Chunking Problem

Where to cut a document, and what it costs you.

Read the blog →

Retrieval quality problems are usually ingestion problems.

Before a single vector is computed, something decided where your documents get cut. If that decision was a default in a tutorial — a character count and an overlap — then your tables are in halves, your code blocks end mid-function, and the chunk that contains the answer is missing the heading that said what the answer was about.

This site is about that decision. Chunk size as a trade-off rather than a setting. Structural boundaries versus fixed ones. What overlap actually buys and what it costs. The metadata that has to travel with a chunk for it to mean anything. And the document types — tables, code, transcripts — that break every general strategy and need their own.

There is no universal chunk size here, because there isn’t one. What there is: the mechanism behind each failure, the same text shown cut two ways so you can see the damage, and a procedure for finding what works on your corpus.

Latest posts

See all posts →