Prompt LibraryEngineering

RAG Chunking Strategy Design Prompt

Design a structure-aware chunking plan for a specific document type.

The prompt

Document type: {{doc_type}}
Sample document: {{sample}}

Propose a chunking strategy: what structural boundaries to split on, target chunk size range, how much overlap (if any) and why, and what metadata to attach to every chunk (heading path, page, section id).
Identify the one failure mode this document type is most prone to (e.g. tables split mid-row, numbered lists losing their intro sentence) and how the strategy avoids it.

Replace the {{fields}} with your own context and tighten the rules to match your domain.

Share this prompt