Skip to content
Forward Deployed

Forward Deployed
T5.3

Chunking Strategies

Apply character, recursive, token and structure-aware (Markdown, HTML, code) splitters.

Lessons
6 lessons
By
Sourav Banerjee
Prerequisites
None
6 lessons

Practise and Check

Deliverable
Chunking bake-off: index the same corpus with recursive, semantic and proposition chunking at three sizes each, and compare hit rate and answer faithfulness against the M10 baseline.
Assessment
Answer the five Interview questions without notes, then run the lab.
Interview probe
Your support assistant tells a customer "Annual plans are refundable within 30 days" and the customer gets a refund denied: they had used 300 GB of traffic. The retrieved chunk is correct as far as it goes. What happened, and what do you change?
Common mistakes
  • Setting an overlap shorter than the piece of the answer that gets cut
  • Reusing a semantic chunking threshold tuned on another corpus
  • Grading propositions with the same model that wrote them

Checkpoint

8 questions on this module's lessons. Pass mark 70 %. Your result feeds interview readiness, and a failed checkpoint puts the module in your revision queue.

  1. 1. The Larkspur refund answer sentence is 141 characters long. A teammate splits the refund section at chunk size 140 and, when the answer arrives cut, adds 70 characters of overlap. What happens?
  2. 2. You are chunking the Larkspur handbook, which is Markdown with one heading per section. The refund section alone is 1,111 characters. Which approach does the module recommend?
  3. 3. You run the semantic chunker with its default percentile threshold of 95 on the 13-sentence refund section, which has several topic changes. It cuts exactly once. Why?
  4. 4. Using the standard_deviation threshold, the semantic chunker returns a long single-topic Larkspur runbook as one chunk, which then exceeds the embedding model's input limit. What should the pipeline do?
  5. 5. A same-model grader passes the generated proposition "Annual plans can be fully refunded within 30 days of purchase". The source adds "as long as the account has used less than 100 GB of outbound traffic". What does this show?
  6. 6. A chunk boundary leaves "It takes 5 to 10 business days to appear" at the top of a chunk, so retrieved alone it does not say what "it" is. Which fix should you check first, before proposition chunking?
  7. 7. Your sweep at k=3 gives size 256 a margin of 0.150 and size 768 a margin of 0.152. Both reach hit@3 of 1.0. Size 768 sends about three times as many tokens per query. Which size do you choose?
  8. 8. Your chunk-size sweep shows small chunks winning on precision, while questions needing a rule and its condition do better with large chunks. Which next step does the module suggest?

Your Progress

How confident are you with this module?

1 means "I could not explain it yet"; 5 means "I could teach it". Rate again any time.

 

Saved in this browser when you leave the box.