Workflow Patterns: Five Ways to Compose Model Calls
Prompt chaining, routing, parallelization, orchestrator–worker, and evaluator–optimizer — the five workhorse patterns for composing LLM calls in code, the failure mode each one hides, and a decision procedure for picking the right one.