Break the task into pieces. Send each piece to the specialist best equipped to handle it.
Not every part of a problem needs AI. Some parts need a calculator. Some need a search engine. Some need a different kind of AI altogether. Decomposed Prompting (DecomP) breaks complex tasks into sub-tasks and routes each one to the best-suited tool or specialist.
Think of it as a manager who knows their team's strengths. Instead of giving every task to one generalist, they assign the math to the accountant, the writing to the editor, and the research to the analyst.
This composition extends:
Break Down the Question Give It a RoleIt uses question decomposition to identify sub-tasks, then assigns each one to a specialized handler — like giving each sub-task to a role-specific expert.
For sub-tasks that need understanding, judgment, or creative thinking. Send "Who directed Jaws?" to AI.
For math, string operations, or anything with an exact answer. Send "What's 847 × 293?" to a calculator.
For current facts or specific data. Send "What award did Spielberg win in 1994?" to a search engine.
A smaller or different AI for simpler sub-tasks. No need for the most expensive model on every piece.
Question: "What award did the director of Jaws win for Schindler's List?"
The first sub-task went to AI (it knows common knowledge), while the second went to search (for a specific factual lookup). Each handler did what it does best.
AI is great at reasoning but makes arithmetic mistakes. Calculators are perfect at math but can't understand context. Search engines have the latest facts but can't reason. DecomP lets each tool do what it's best at.
The result is greater than the sum of its parts. On tasks that mix text understanding with exact computation, DecomP achieves near-perfect accuracy where pure AI approaches degrade — because the deterministic handlers (calculators, code) never make the random errors that AI does.
Break a complex task into sub-tasks. Route each sub-task to the specialist best suited for it — AI for reasoning, code for computation, search for facts. Combine the results.
DecomP is the next step beyond Least-to-Most. Where Least-to-Most sends every sub-problem to the same AI, DecomP recognizes that different sub-problems need different solvers. It's like upgrading from one employee doing everything to a team of specialists.
It's also related to Self-Ask (which is specialized for search-based sub-questions) and sets the stage for more complex multi-agent systems where different AI models collaborate on different aspects of a task.