Decompose this complex query into sub-queries for better RAG retrieval. ## Complex Query {{complex_query}} ## Available Knowledge Sources {{knowledge_sources}} ## Decomposition Goals {{decomposition_goals}} Apply systematic decomposition: **Step 1: Query Analysis** Identify the core intent and information needs. **Step 2: Sub-Query Generation** Break into atomic sub-queries: - Sub-query 1: [specific question] - Sub-query 2: [specific question] - Sub-query 3: [specific question] **Step 3: Source Mapping** Map each sub-query to best knowledge sources. **Step 4: Dependency Order** Identify which sub-queries depend on others. **Step 5: Aggregation Strategy** Define how to combine sub-answers: - Sequential synthesis - Parallel combination - Hierarchical merging **Step 6: Execution Plan** Optimize for latency while maintaining correctness.
Task Decomposition for RAG Queries
U
@
Systematically decompose complex RAG queries into atomic sub-queries with source mapping, dependency ordering, and aggregation strategies.
88 copies0 forks
Details
Category
AnalysisUse Cases
Query decompositionComplex RAGMulti-step retrieval
Works Best With
claude-sonnet-4-20250514gpt-4o
Created Shared