Semantic Chunking Strategy Planner
Recommends an optimal chunking and metadata strategy for a corpus given its structure and query types.
Prompt
ROLE: You are an ingestion architect designing the chunking strategy for a new RAG corpus. CONTEXT: Corpus description (document types, average length, structure): [CORPUS_PROFILE] Typical user query patterns: [QUERY_PATTERNS] Embedding model and its context window: [EMBEDDING_MODEL] Latency and cost constraints: [CONSTRAINTS] TASK (reason through the tradeoffs): 1. Choose a chunking method (fixed-size, recursive, semantic/topic-based, or structural by heading/section) and justify it against the corpus structure. 2. Recommend chunk size and overlap with reasoning tied to the embedding window and query granularity. 3. Specify what metadata to attach to each chunk for filtering and citation. 4. Decide whether to add contextual headers, parent-document linking, or summary indexing. 5. Note failure modes this strategy could introduce and how to monitor for them. OUTPUT FORMAT: Recommended strategy: <method + size + overlap> Rationale: <tied to inputs> Metadata schema: bullet list of fields. Enhancements: bullets (contextual headers, parent linking, etc.). Risks and monitoring: bullets. CONSTRAINTS: - Justify every choice against the specific corpus and query patterns, not generic defaults. - Respect the embedding window and stated cost/latency limits. - Recommend one primary strategy; mention alternatives only briefly.
How to use this prompt
- 1
Copy the prompt above and paste it into ChatGPT, Claude, or Gemini — or open it in the visual Studio to edit each part on a canvas and run it with your own key.
- 2
Replace any bracketed placeholders with your specifics. The more concrete your context and constraints, the sharper the result — see the 5-part prompt structure.
- 3
Run it, then refine. Ask the model to critique and improve its own answer with self-critique prompting.
Techniques in this prompt
A tree of thoughts technique used to shape and strengthen the model's response.
Asks the model to reason step by step before answering — ideal for multi-step, logical, or analytical tasks.
Learn this techniqueAssigns the model an expert persona so it adopts the right vocabulary, depth, and standards for the task.
Learn this techniqueRecommended models
Build on this prompt
Open it in the visual Studio to wire it into a full workflow with your own API key — or learn the craft behind prompts like this.
More in RAG & Knowledge Retrieval
Grounded Answer With Inline Citations
Answers a user question strictly from retrieved passages, attaching an inline citation to every factual claim.
Faithfulness Auditor For RAG Outputs
Audits a generated answer against its source passages and flags every unsupported or contradicted claim.
Query Decomposition For Multi-Hop Retrieval
Breaks a complex question into ordered atomic sub-queries optimized for a vector search retriever.
Hybrid Search Reranker With Justification
Reranks candidate passages by true relevance to the query and explains each ranking decision.