# Tune Chunking

> Tune chunk size, overlap, and structure-awareness against the eval and the context budget. Reach for this on a chunking question.

- Skill: `mcorbett51090/tune-chunking` (Agent Skill)
- Install (CLI): `npx get-skill add mcorbett51090/tune-chunking`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mcorbett51090/tune-chunking/raw
- Safety review: pending (external: skill-scanner PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: mcorbett51090 (https://skillmd.com/u/mcorbett51090)
- Updated: 2026-11-19
- Page: https://skillmd.com/skills/mcorbett51090/tune-chunking

---


# Skill: Tune chunking

A chunk that splits the answer is a retrieval bug introduced at ingestion (§3 #2).

## Step 1 — Inspect the failing chunks
Are answering units (tables, sections) split or buried? (§3 #2)

## Step 2 — Adjust size + overlap
Tune against recall@k, not a guessed default (§3 #2).

## Step 3 — Add structure-awareness
Keep tables/sections intact; add metadata for pre-filtering (§3 #2).

## Step 4 — Check the context budget
Size × top-k + overhead vs window via `ai_rag_engineering_calc.py chunk-budget` (§3 #5).

## Output
A chunking design tied to recall@k and the context budget. Traverse Tree 2 in the decision-trees file.

