RAG for Everyone

← Back to quiz

Chapter 9 Exercises55 min hands-on

Exercises: Build Chunking Baselines

Use starter.py to compare fixed and recursive chunking decisions.

1 Create fixed chunks

Split a document by target size and overlap.

2 Score chunk quality

Detect tiny chunks, huge chunks, missing metadata, and high overlap.

3 Recommend recursive chunking

Identify when headings or paragraphs should guide boundaries.

4 Explain production risk

Return the first risk and a next action for the chunking strategy.

← Back to QuizPractice Bank →