RAG & Knowledge Retrieval5.0 · 0 ratings
Semantic Chunking Strategy Planner
Recommends an optimal chunking and metadata strategy for a corpus given its structure and query types.
Tree-of-ThoughtsChain-of-ThoughtRole-Based
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.
Recommended models
claudegpt-4ogemini
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.
Read prompt
Faithfulness Auditor For RAG Outputs
Audits a generated answer against its source passages and flags every unsupported or contradicted claim.
Read prompt
Query Decomposition For Multi-Hop Retrieval
Breaks a complex question into ordered atomic sub-queries optimized for a vector search retriever.
Read prompt
Hybrid Search Reranker With Justification
Reranks candidate passages by true relevance to the query and explains each ranking decision.
Read prompt