Skip to content
Klay

Chunking documents

After this lesson you can: Split a document so retrieved pieces are actually answerable.

First: Why RAG exists

Watch

Notes

Chunking is the decision of where to cut source documents before embedding and indexing them. In RAG, the model does not retrieve whole manuals or repos; it retrieves small text pieces. Those pieces must contain enough context to answer a likely question, but not so much unrelated material that the embedding becomes vague or the prompt fills with noise.

Unlock the full lesson notes, the exercises and the graded checkpoint - ₹5,000 once.