Lesson 2.1

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.

14mAdvanced7.7k students

Overview

What this lesson covers

  • 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

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