Nettms · Building TomorrowAcademy of AI &
Engineering
Sign inStart free →
← All glossary termsLLM & Gen AI

Chunking

Splitting documents into smaller passages before indexing them for RAG retrieval.

What is Chunking?

A RAG system cannot embed an entire 500-page document as one vector — too coarse, too imprecise. Chunking splits documents into smaller passages (typically 200–1000 tokens) that get embedded and indexed individually.

The strategy matters. **Fixed-size chunking** (every 500 tokens) is simple but cuts mid-sentence. **Recursive chunking** respects paragraphs and sections. **Semantic chunking** uses an embedding model to find topic breaks. **Sentence-window chunking** indexes single sentences but retrieves with surrounding context.

Chunk size is a tradeoff: smaller chunks → more precise retrieval but less context per chunk; larger chunks → more context but vaguer matches. The current best practice is 300–800 tokens with 50–100 token overlap.

Why this matters

Chunking quality is the #1 lever on RAG performance after retrieval model choice. Poor chunking explains 60% of mediocre RAG systems.

Real-world example (India)

A Chennai HR-tech indexed company policies with 2000-token chunks and got vague answers. Switching to recursive 400-token chunks with 80-token overlap raised answer precision from 64% to 88% — same documents, better splits.

Related terms

  • RAG (Retrieval-Augmented Generation)
  • Embedding
  • Vector Database
  • Reranking

Want to master this?

Learn Chunking in a structured cohort

3-month live program with mentors, real projects, and 50+ partner placement support.

View the program →
Nettms · Building TomorrowAcademy of AI &
Engineering

Free masterclasses, live cohorts, and pan-India placement support. Building Tomorrow.

ISO CertifiedStartup IndiaPractitioner-taught

Programs

  • Applied AI Engineer
  • Data Analysis with Gen AI
  • BIM
  • All programs

Free Tools

  • Python Playground
  • AI Glossary
  • Success Stories

Free Learning

  • Free Masterclass
  • Blog
  • Events
  • WhatsApp Channel
  • Newsletter

Workshops

  • AI Workshop
  • BIM Workshop
  • Refer & Earn

Company

  • About
  • Careers at Nettms
  • Contact
  • Privacy
  • Terms
  • Refund policy

Get the weekly drop.

One email a week — career insights, free masterclass invites, and what India's top employers are hiring for.

© 2026 Nettms Urban Habitat Pvt. Ltd. · 🌱 Building Tomorrow

Hyderabad, India

  • Home
  • Programs
  • Practice
  • Free
  • Account