Explainer
When to split a prompt
Split a task into steps when you want to check a middle result before the next step relies on it; a one-fact question needs no split.
Prompt chaining, also called task splitting, sends a task as a series of requests, each using the checked output of the one before. Anthropic's current guide says its newer models handle most multistep reasoning internally, and that chaining “is still useful when you need to inspect intermediate outputs or enforce a specific pipeline structure” (Anthropic's prompting guide).
Illustration, invented. A visitor writes to the repair club: “I'd like to bring my drill on Saturday 17 April. What time, and is there anything to pay?” Write down the steps you would use, then compare:
- Extract a fact table: hours, item limit, entry, part price.
- Check each row against the club's two notices (in the long read). Part price: not in the notices.
- Draft from the checked table.
The draft: “Saturday 17 April: 1 pm to 3 pm. Your drill is your one item. Entry is free; the notices do not say whether parts cost anything.” Step 2 shows the missing price before any reply is written.
One turn or two? A visitor asks “Do repairs start at 1 pm now?” One fact and nothing to check in between, so one turn is enough: “Yes. From 3 April, Saturday repairs run from 1 pm to 3 pm.”
Going deeper
Each step is another request. Anthropic's guide describes a common chain, draft, review against criteria, then refine, each step a separate call “so you can log, evaluate, or branch at any point”. An older result: on code-davinci-002 in 2022, splitting a problem into simpler sub-problems (least-to-most prompting) scored “at least 99%” on one benchmark against 16% for chain of thought (Zhou and colleagues), a 2022 result.
In the long read: Can the answer say “unknown”? Then try the first exercise.
Read next: Do magic phrases work?