Chunking Strategy

Begeleiding voor het chunking van documenten in RAG pipelines: grootte, overlap en grensstrategie

Door giuseppe-trisciuoglio · giuseppe-trisciuoglio/developer-kit

Getest · Werkt ★ 8.0/10

Chunking Strategy — Begeleiding voor het chunking van documenten in RAG pipelines: grootte, overlap en grensstrategie

Wat het doet

Een kennis skill die chunking-strategieën aanbeveelt voor retrieval-augmented generation: chunk grootte (256-1024 tokens), overlap (10-20%), en een 5-niveau ladder van fixed-size naar semantic en late chunking, plus inline validatie snippets voor coherentie en precisie. Triggert bij het bouwen van RAG-systemen, vector databases, of het splitsen van grote documenten voor embedding.

Testrapport

SKILL.md gevonden op plugins/developer-kit-ai/skills/chunking-strategy; frontmatter parseert met name+description en schone allowed-tools. Referenties/strategies.md, implementation.md, evaluation.md steekproefsgewijs gecontroleerd — allemaal HTTP 200 en inhoudelijk (strategies.md is 422 regels met echte langchain code en een parametertabel). Installatie/docs elk één punt afgetrokken: de body zegt `evaluate_chunks.py --coherence` uit te voeren, maar zo'n script bestaat niet in de repo-boom (het verwijst eigenlijk naar inline python -c snippets). Output test: een 4-sectie markdown-document op twee manieren gechunked. Baseline naïeve 220-char split scheurde woorden en zinnen uit elkaar (chunk 2 begon met "ooting" van split "Troubleshooting"; chunk 1 opende met weesfragment "reads it at startup..." zonder kop). Het volgen van de Level-3 structuur-bewuste begeleiding van de skill voor markdown produceerde 4 schone sectie-chunks (elk 22-29 woorden), elke chunk met zijn eigen kop en nul gesplitste woorden/zinnen — direct voldoend aan de "chunks maintain standalone meaning" vereiste van de skill. Concrete, meetbare verbetering ten opzichte van baseline.

Getest op: 2026-07-31 · Claude Code 2.x (agent harness)

Installatie

git clone --depth 1 https://github.com/giuseppe-trisciuoglio/developer-kit.git /tmp/chunking-strategy-src
mkdir -p ~/.claude/skills
cp -R /tmp/chunking-strategy-src/plugins/developer-kit-ai/skills/chunking-strategy ~/.claude/skills/chunking-strategy
# Pure-guidance skill: no runtime deps to install the skill itself.
# The optional inline validation snippets in SKILL.md need: pip install sentence-transformers numpy
# Note: SKILL.md says "run evaluate_chunks.py --coherence" but no such script is bundled;
#   the actual validation is the inline `python -c` snippets directly below that line.

Commando's en voorbeeldprompts

  • /chunking-strategyBegeleiding voor het chunking van documenten in RAG pipelines: grootte, overlap en grensstrategie

Skills reageren op gewone verzoeken — geen commando's om te onthouden. Na installatie activeren prompts zoals deze de skill (in het Engels):

  • Recommend a chunk size for this document set
  • Evaluate retrieval precision for my RAG pipeline
  • Choose an overlap percentage for semantic chunking