Parallelisation (agent pattern)
Definition
A workflow pattern that runs several model calls at once, on parts or copies of one task, and combines their outputs in code.
In more detail
Anthropic's guide to building effective agents names two forms. Sectioning splits a task into independent pieces, such as one call answering the user while another screens the request for policy problems. Voting runs the same task several times, for example several prompts each reviewing code for vulnerabilities, and aggregates the verdicts.
Unlike orchestrator-workers, the split is fixed in advance by your code rather than chosen by a model at run time. It buys speed or confidence at the cost of more tokens, so use it where the subtasks are truly independent or one opinion is not enough.
Related terms
Orchestrator-workers
A pattern where one model breaks a task into subtasks at run time, hands each to a worker model, and combines the results.
Prompt chaining
Splitting a task into a fixed sequence of model calls where each call works on the output of the previous one, with checks in between.
Routing (agent pattern)
A workflow pattern where a first step classifies the input and sends it on to a specialised prompt, tool or model for that type.
Self-consistency
Sampling several reasoning paths for the same question and taking the most common final answer, instead of trusting a single response.
Read more about Parallelisation (agent pattern)
- Workflows vs agents: start with the simplest thing that works
Most LLM features should be a fixed workflow, not an agent. How to tell which one you need, when an agent earns its cost, and the useful patterns in between.
- AI agents
Building systems where models plan and call tools in a loop to complete tasks.
- Orchestrator-workers
A pattern where one model breaks a task into subtasks at run time, hands each to a worker model, and combines the results.