Lesson 2.114mAdvanced7.7k students

Chunking strategies

Chunk size decides what a match can even mean. Too small and passages lose context; too large and the relevant sentence gets drowned.

This lesson sits in Ingestion and Indexing, part of Retrieval-Augmented Generation from Scratch. It assumes what came before it and leads directly into the next lesson in the module.

In this lesson you will

  • Split on structure rather than a fixed character count
  • Use overlap to avoid cutting an idea in half
  • Keep each chunk understandable on its own

Resources