Workflows
Workflows your code controls: prompt chaining, routing, parallelization, orchestrator-workers and evaluator-optimizer.
6 notes · 12 min total
- 1What a Workflow IsA workflow is a pipeline your code controls, with the model handling some steps. How it differs from tool calling and from an agent.2 min
- 2Prompt ChainingThe simplest workflow pattern: each prompt's output becomes the next prompt's input. When it helps, and why errors compound.2 min
- 3RoutingClassify the input first, then send it to a specialized prompt or model. Why specialized prompts beat one general prompt.2 min
- 4ParallelizationRun independent tasks at the same time and combine the results. The two uses: divide and conquer, and voting.2 min
- 5Orchestrator-WorkersOne model plans the sub-tasks at runtime, workers run them, and the orchestrator combines the results. Its three failure modes and the fix.2 min
- 6Evaluator-OptimizerOne model drafts, an evaluator checks it against a rubric, and the loop repeats until it passes. Why the rubric matters and how to cap the loop.2 min