---
title: "Discussion on \"RAG Chunking: Your Chunks Don't Know What Document They Came From\" | Hashnode"
description: "Discussion on \"RAG Chunking: Your Chunks Don't Know What Document They Came From\". Most RAG tutorials spend one line on chunking: grab a text splitter, set it to 1,000 characters with 200 overlap, move on to the fun part. Then the bot confidently answers a question about your refund"
url: "https://hashnode.com/posts/rag-chunking-your-chunks-don-t-know-what-document-they-came-from/6b02cf147edd617eff767597"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [RAG Chunking: Your Chunks Don't Know What Document They Came From](https://grimicorn.hashnode.dev/rag-chunking-your-chunks-don-t-know-what-document-they-came-from?utm_source=hashnode&utm_medium=feed)

Most RAG tutorials spend one line on chunking: grab a text splitter, set it to 1,000 characters with 200 overlap, move on to the fun part. Then the bot confidently answers a question about your refund

Nov 22 · 5 min read · grimicorn.hashnode.dev  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#rag](https://hashnode.com/tag/rag)
-   [#embeddings](https://hashnode.com/tag/embeddings)
-   [#llm](https://hashnode.com/tag/llm)
-   [#embeddings-and-chunking-strategy](https://hashnode.com/tag/embeddings-and-chunking-strategy)

## Written by

[Dan Holloran](https://hashnode.com/@grimicorn)

@grimicorn · Chico, CA

  
[View profile](https://hashnode.com/@grimicorn)

Full-stack web developer since 2012 · Vue · React · Laravel · danholloran.me

Senior Full Stack Developer with 14+ years building performant, scalable web applications. Passionate about architecture, mentorship, and finding the right tool for the job.

## Responses 1

Markdown supported · ⌘↵ to post

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[Nov 23](https://hashnode.com/posts/rag-chunking-your-chunks-don-t-know-what-document-they-came-from/6b02cf147edd617eff767597/comment/6b04bd885d6ca382781d7f8e)

Citing Chroma's token-level numbers—jumping from 200 tokens with zero overlap to 800 tokens with 400 overlap dropped precision from 7.0 percent down to 1.5 percent while hurting recall—shows why blindly cranking up chunk size and overlap backfires. Overlap is usually compensating for arbitrary character cuts.

Preserving headingPath on every Markdown chunk fixes the exact failure where a refund paragraph and a shipping paragraph look nearly identical out of context. Prepending that heading hierarchy to the embedded text as well as storing it in metadata makes both dense and lexical matching much sharper.
