Definition
Query Planning is the process where an LLM agent decomposes a complex, multi-faceted user prompt into a structured sequence of executable sub-tasks or parallel retrieval queries. It serves as an orchestration layer that determines the logical order of operations and the specific data tools required to synthesize a comprehensive answer.
Distinct from SQL query optimization; this focuses on decomposing natural language intent into agentic step-by-step actions.
"A General Contractor creating a blueprint and schedule for various subcontractors to ensure a complex construction project is completed in the correct order."
- Chain-of-Thought(Prerequisite)
- Sub-Question Query Engine(Component)
- Agentic RAG(Context)
- Task Decomposition(Component)
Conceptual Overview
Query Planning is the process where an LLM agent decomposes a complex, multi-faceted user prompt into a structured sequence of executable sub-tasks or parallel retrieval queries. It serves as an orchestration layer that determines the logical order of operations and the specific data tools required to synthesize a comprehensive answer.
Disambiguation
Distinct from SQL query optimization; this focuses on decomposing natural language intent into agentic step-by-step actions.
Visual Analog
A General Contractor creating a blueprint and schedule for various subcontractors to ensure a complex construction project is completed in the correct order.