RAG Chunking Strategies: Context vs Precision Trade-offs | Vedanshu
Vedanshu Patel, a fellow at Humanitarians AI, explains that where you cut a document decides what retrieval can find. He covers the too-small and too-large failure modes, the unsettled value of overlap, and splitting at a document's own boundaries.
Embeddings let a system compare text by meaning instead of wording, but they leave one question open: a piece of text of what size? A sentence, a page, the whole document? Vedanshu Patel, a fellow at Humanitarians AI, explains in this video that the embedding model does not care, while retrieval cares enormously. Chunking is a design decision, and where you cut a document decides what retrieval can find.
Cut badly and the answer is unreachable
If a document is cut badly, the answer can sit in the store and still be unreachable. The video uses a 40-page benefits manual as the example. Embed it as one vector and that vector carries everything at once: vacation, health coverage, retirement, parental leave, travel. A question about vacation days can only match it approximately, because the same vector also encodes everything that has nothing to do with vacation. Packing more topics into one chunk averages them.
The trade-off runs both ways
Cutting smaller helps, but only to a point. Too small and a chunk loses the context that gave it meaning: "five days per year" is useless if you cannot tell five days of what. Too large and you have rebuilt the whole-document problem in miniature. The video says there is no correct number to look up.
Overlap is an unsettled guard
Should neighboring chunks share a little text at the seam? The rationale is clean: a fact that straddles a boundary survives in one piece instead of being cut in half. Common practice says to use a modest overlap. But the video notes that a 2026 controlled study found no measurable benefit to answer quality and a higher indexing cost, and it advises holding that finding loosely.
Three ways to cut the same page
The video redraws the chapter's figure. Cut at a fixed character count and you slice straight through a sentence, even mid-word. Cut at paragraph and heading boundaries and the text stays intact. Or use embeddings to detect where the meaning actually shifts and split there. Of the three cuts, only two respect what is written.
In tooling, this is often done with a prioritized list of separators: paragraph breaks first, then line breaks, then individual spaces. The splitter drops to a smaller unit only when the larger one would produce an oversized chunk, so paragraphs stay whole whenever possible. LangChain's recursive splitter is one example, but the video says the pattern is the point, not the library.
A prediction exercise
The video poses a question against a 140-page benefits manual: how many vacation days do I get in my second year? Chunk it three ways and ask which puts the complete answer in a single chunk.
- Whole document: the question matches one vector carrying the entire manual, so you retrieve everything or cannot tell this manual from the next one.
- Fixed count: the vacation table splits mid-row, and the sentence naming the policy lands in a different chunk from the number it refers to.
- Structure-aware: the vacation section stays whole, second-year increase included.
Key takeaways
- Chunking is a design decision: where you cut decides what retrieval can find.
- A whole document embedded as one vector averages every topic it contains.
- Too-small chunks lose context, and too-large chunks lose precision.
- Overlap has a clear rationale, but a 2026 controlled study found no measurable answer-quality benefit and a higher indexing cost.
- Splitting at the document's own boundaries beats splitting at arbitrary counts.
- A prioritized list of separators keeps paragraphs whole when possible.
Try it yourself
Describe a document you actually work with and ask Claude to propose a chunking strategy: approximate size, whether to use overlap, and where the boundaries should fall. Then ask it to argue the opposite case as strongly as it can, and to say which failure would cost you more, a chunk too small to carry its context or one too large to match precisely. The video says making it argue against itself shows whether the recommendation was reasoned or reflexive.
Chapters
Full transcript(auto-generated, with timestamps)
The chunking trade-off: Context vs. precision
[0:00]Jambo, I'm Vedanshi Dakshash Patel. Chapter 3 gave us embeddings, text compared by meaning instead of by wording, but it left one question wide open. A piece of text of what size? A sentence, a page, the whole document? The model doesn't care. Retrieval cares enormously. Here is the whole idea in one breath. Chunking is a design decision where you cut a document decides what retrieval
Why embedding whole documents dilutes topics
[0:21]Can find. Cut badly and the answer sits in your store unreachable. Embed a 40-page benefits manual as one vector and that vector carries everything at once, vacation, health coverage, retirement, parental leave, travel. A question about vacation days can only match it approximately because the same vector is also encoding everything that has nothing to do with vacation. Pack more topics into one chunk and you are
Fixed character counts vs. structure-aware splitting
[0:45]Averaging them. So, cut it smaller, but this trade-off runs in both directions. Too small and a chunk loses the context that gave it meaning. Five days per year is useless if you cannot tell five days of what. Too large and you have rebuilt the whole document problem in miniature. There is no correct number to look up. Should neighboring chunks share a little text at the seam? The rationale is clean. A fact that straddles a boundary survives in one piece instead of being cut in half. Common practice says yes, a
The truth about chunk overlap and indexing costs
[1:12]Modest overlap, but a 2026 controlled study found no measurable benefit to answer quality and higher indexing cost. Hold this one loosely. Here is the chapter's own figure redrawn. Cut at a fixed character count and you slice straight through a sentence mid-word. Cut at paragraph and heading boundaries and the text stays intact or use embeddings to detect where the meaning actually shifts and split there. Same
Prompting Claude to evaluate your document chunking strategy
[1:35]Page, three cuts, only two of them respect what is written. How the tooling actually does it? Try a prioritized list of separators. Paragraph breaks first, then line breaks, then individual spaces. Drop to a smaller unit only when the larger one would produce an oversized chunk, so paragraphs stay whole whenever they possibly can. LangChain's recursive splitter is one example of the pattern. The pattern is the point, not the library. Predict before I show you 140-page benefits manual. One question, how many vacation days do I get in my second year? Now, chunk that manual three ways as one whole document by fixed character count or a paragraph and heading boundaries. Which one puts the complete answer inside a single chunk? Whole document, the question matches one
Vector carrying the entire manual. You retrieve everything or you cannot tell this manual from the next one. Fixed count, the vacation table splits mid-row and the sentence naming the policy lands in a different chunk from the number it refers to. Structure aware, the vacation section stays whole, second year increase included. Let's recap. A whole document embedded as one vector averages every topic it contains, so no single question matches it sharply. Chunk size fails in both directions. Too small loses context, too large loses precision. Overlap is a guard with a clear rationale and an unsettled payoff. And splitting at the document's own boundaries beats splitting at arbitrary counts. Chunking is a design decision. And chapter five asks the next one, how do you search thousands
Of these chunks fast? Your turn, paste this. Here's a document I actually work with. I'll describe its structure. Propose a chunking strategy, approximate size, whether to use overlap, and where the boundaries should fall. Then argue the opposite case as strongly as you can and tell me which failure would cost me more, a chunk too small to carry its context or one too large to match precisely. That second half is the part that matters. Anything will hand you a confident first answer. Making it argue against itself is how you find out whether the recommendation was reasoned or reflexive. Bring a document whose structure you already know and see whether its boundaries match the ones you would have drawn. Where you cut the page, Vedant Sudhaksh Patel.
More from Humanitarians AI Fellows
2:26RAG Retrieval Architecture: 3 Default Settings That Will Fail | Vedanshu
3:27Approximate Vector Search: Scaling Beyond Brute Force Cosine Similarity | Vedanshu
8:29The Cell Next Door: Reading Errors, Statistical Missteps, and Immunotherapy Links
2:24Embeddings vs. Keyword Matching: Knowing When Closeness Trumps Exactness
4:21AI in Project Management Tools & The 3-Question Test | Sanjana
2:50