Choosing a Workflow Pattern
In this article
- Place single calls, chains, routers, parallel branches, orchestrators, evaluator loops and planners on one ladder by what each adds in cost, wait and failure points.
- Set up a fair comparison of designs on the same test cases with the same prompt effort.
- Pick the cheapest design that meets a quality target by reading pass rate, cost and p95 wait together.
- Name the evidence that justifies moving to a more complex pattern, and spot a failure that needs a tool instead.
Overview
Your team can build a support assistant as one model call, as a fixed sequence of calls, or as a model that splits the work among helper calls (an orchestrator). Which one do you ship? Somebody wants the orchestrator because it sounds most capable; somebody else wants the single call because it is cheap. Both are guessing. You will learn to line up these workflow patterns, test them fairly and pick one from measured results.
The example is made up: Brightline, a home-internet provider, runs a support assistant on its website that answers customers, can look up an order, issue a refund of at most $50 and hand a conversation to a person. A customer writes that their router stopped working and that this month's $35 plan fee was charged twice. Three designs run on ten messages like that one, their results fit in one table, and the rule for picking among them is one you can defend in a review.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- The ladder of designs
- A fair comparison
- Reading the results
- When to climb a rung
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions