⛓️
Workflow Patterns
Composable patterns for structuring how LLM calls are orchestrated — from simple chains to dynamic multi-step flows.
5 patterns
Prompt Chaining
Basic
Decompose a task into a fixed sequence of steps, where each LLM call processes the output of the previous one.
Routing
Basic
Classify an input and direct it to a specialized handler optimized for that type of request.
Parallelization
Intermediate
Run multiple LLM calls simultaneously and aggregate their results — either by splitting a task into independent parts or by getting diverse perspectives on the same task.
Orchestrator-Workers
Advanced
A central LLM dynamically breaks down a task, delegates subtasks to worker LLMs, and synthesizes their results.
Evaluator-Optimizer
Intermediate
One LLM generates a response while another evaluates it and provides feedback in an iterative loop until quality criteria are met.