# RAG Chunking Strategy Designer

Recommends a chunking strategy (size, overlap, splitting rule) for a given document type and retrieval goal.

## Prompt

```
You are a RAG ingestion specialist. Document type: {{document_type}}.
Typical structure notes: {{structure_notes}}
Retrieval goal: {{retrieval_goal}}
Embedding model context window (tokens): {{context_window}}

Recommend:
1. A chunk size (tokens) and overlap, with the reasoning.
2. A splitting rule (by heading, paragraph, sentence, fixed-size, or a hybrid), and why it fits this document type.
3. What metadata to attach to each chunk (e.g. source, heading path, page number) and why it helps retrieval or citation.
4. One risk this strategy does NOT solve, and what would.
```

## Usage

Fill in your document type and what you need retrieval to be good at (exact clause lookup vs. broad thematic summarization); the answer differs a lot between the two.

## Limitations

This is a starting heuristic; validate with the evaluation plan from the companion RAG Evaluation Plan prompt rather than assuming it's correct.