Skip to content
Query Feedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  1. Home /
  2. AI Glossaries /
  3. RAG /
  4. What is Document Chunking?
RAG

What is Document Chunking?

Updated October 2, 2026 Read 3 min

Document chunking is the process of splitting documents into smaller passages so they can be embedded, retrieved and passed to a model. Chunking decisions have more effect on RAG quality than almost any other choice.

Contents 12
  1. 01Key takeaways
  2. 02Chunking explained in simple terms
  3. 03Main strategies
  4. 04Choosing a chunk size
  5. 05Overlap
  6. 06A worked example
  7. 07Adding context to chunks
  8. 08Practical checklist
  9. 09Limitations
  10. 10Common Use Cases
  11. 11Frequently Asked Questions
  12. 12Related Terms

Document chunking is the process of splitting documents into smaller passages so they can be embedded, stored and retrieved individually. Embedding models have input limits, context windows are finite, and retrieval works better on focused passages than whole documents. How you chunk determines what can be retrieved at all, which makes it one of the highest-impact decisions in a RAG pipeline.

Key takeaways

  • Common chunk sizes are 200 to 800 tokens, with 10–20% overlap.
  • Splitting on document structure beats splitting on character counts.
  • Each chunk should make sense on its own.
  • Adding surrounding context to each chunk improves retrieval significantly.
  • Tables, code and lists usually need special handling.

Chunking explained in simple terms

Imagine cutting a manual into index cards for a librarian to hand out. Cut too finely and each card lacks context: “It must be replaced every six months” tells nobody what “it” is. Cut too coarsely and the card covers five topics, so retrieving it for one buries the other four. Good chunking makes each card a self-contained answer to some likely question.

Main strategies

StrategyHow it splitsBest for
Fixed sizeEvery N tokens, with overlapSimple, uniform text
RecursiveTry paragraphs, then sentences, then charactersGeneral-purpose default
Structure-awareBy headings, sections or pagesManuals, policies, documentation
SemanticWhere topic similarity drops between sentencesUnstructured prose
Element-basedTables, code blocks and lists kept wholeTechnical and financial documents
Sentence windowsRetrieve one sentence, return neighboursPrecise retrieval with context

Choosing a chunk size

SizeEffect
100–200 tokensPrecise retrieval, often missing context
300–500 tokensGood general default
600–1,000 tokensMore context, less precise matching
Whole documentPoor retrieval; everything matches weakly

Smaller chunks match questions more sharply but risk losing meaning. Larger chunks carry context but dilute the embedding, since one vector must represent several ideas.

Overlap

Overlapping chunks by roughly 10–20% prevents answers being cut in half at a boundary. With 400-token chunks, a 50-token overlap means each chunk repeats the last 50 tokens of the previous one. The cost is a slightly larger index.

A worked example

An HR policy states: “Employees may carry forward unused leave. The maximum carry-forward is 15 days.“

  • Chunked at 100 tokens with no overlap, the bolded sentence may land in a chunk that never mentions leave. A search for “leave carry forward limit” then misses it.
  • Chunked by section with a heading prefix, the chunk begins “Leave Policy — Carry Forward” and includes both sentences, so it is retrieved reliably.

Adding context to chunks

A strong improvement is to prepend information to each chunk before embedding: the document title, the section heading, or a one-line summary of what the chunk is about within the document. This approach, sometimes called contextual retrieval, has been shown to cut retrieval failures substantially, because isolated chunks regain the context that made them meaningful.

Practical checklist

  • Preserve headings and attach them to chunks.
  • Keep tables and code blocks intact.
  • Store metadata: source, title, section, date, permissions.
  • Test retrieval with real questions after each chunking change.
  • Re-chunk when you change embedding models or document formats.

Limitations

  • No universally optimal size; it depends on content and questions.
  • Re-chunking means re-embedding everything.
  • Poorly parsed documents produce poor chunks regardless of strategy.
  • Cross-chunk questions still need multi-passage retrieval.

Common Use Cases

01

RAG ingestion

Prepare documents for embedding and retrieval.

02

Policy and manual indexing

Split by section so each chunk answers a topic.

03

Technical documentation

Keep code blocks and tables intact.

04

Long-form content

Chunk articles for semantic search and internal linking.

05

Transcript processing

Split meetings and calls into topic segments.

06

Multilingual corpora

Chunk by structure across languages consistently.

Frequently Asked Questions

Splitting documents into smaller passages so they can be embedded, retrieved and passed to a model.

300–500 tokens is a good general default, with 10–20% overlap, adjusted after testing on real questions.

So answers that fall on a boundary are not split in half and lost.

Splitting where the topic changes, detected by similarity between neighbouring sentences, rather than at fixed lengths.

Heavily. If the answer is not inside a retrievable, self-contained chunk, the system cannot find it.

Related Terms

  • RAG Pipeline
  • Vector Embedding
  • Retriever in RAG
  • Vector Database
  • Semantic Search
  • Reranker

Related AI Terms

What is Retrieval-Augmented Generation (RAG)?Retrieval-augmented generation (RAG) is a technique where relevant documents are retrieved from a knowledge source and added to…What is a RAG Pipeline?A RAG pipeline is the end-to-end system that turns raw documents into grounded answers, covering ingestion, chunking, embedding,…What is a Vector Database?A vector database is a database built to store vector embeddings and find the most similar vectors to…What is Vector Search?Vector search is the operation of finding the embeddings closest to a query vector. At scale it uses…What is Semantic Search?Semantic search finds results based on meaning rather than exact word matching, so a search for 'can't log…What is Hybrid Search?Hybrid search combines keyword search, which excels at exact terms, with vector search, which captures meaning, then merges…

Contents

  1. 01Key takeaways
  2. 02Chunking explained in simple terms
  3. 03Main strategies
  4. 04Choosing a chunk size
  5. 05Overlap
  6. 06A worked example
  7. 07Adding context to chunks
  8. 08Practical checklist
  9. 09Limitations
  10. 10Common Use Cases
  11. 11Frequently Asked Questions
  12. 12Related Terms

AI Topic

  • RAG

Related Terms

  • What is Retrieval-Augmented Generation (RAG)?
  • What is a RAG Pipeline?
  • What is a Vector Database?
  • What is Vector Search?
  • What is Semantic Search?
  • What is Hybrid Search?

Quick Navigation

  • Common Use Cases
  • Frequently Asked Questions
  • Related Terms
  • Back to top

Details

Updated
October 2, 2026
Read
3 min
  • Forum
  • Submit a tool
  • Submit Guest Post
  • List Your Startup
  • Privacy Policy
  • Editorial Policy
  • Account
  • Contact
  • AI Productivity
  • AI Video
  • AI Coding
  • AI Chatbots
  • Sales
  • AI Business
  • View All Tools

Subscribe our Newsletter

Get weekly exclusive content - No spam.

Copyright © 2026 -  Query Feedz

Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}