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.

Duration
14m
Level
Advanced
Students
7.7k students

Overview

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

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

Sanity Context and content APIs

The official reference for the tools used in this lesson.