Workflowscore
Prompt chaining
Break a task into fixed sequential LLM calls, with checks between them.
What it is and why it exists
Each call does one sub-task (outline → draft → translate) and passes output to the next; programmatic gates between steps verify intermediate results. Latency is the sum of the steps; each step is easier, so quality goes up.
Quick prototype
Two calls in a row.
In production, at scale
Typed outputs between steps, validation gates, cheaper models on easy steps, and tracing per step so you can see which step broke.
Vendors and tools
| LangChain LCEL / Bedrock Flows / plain code | Chains |
|---|
On AWS: Bedrock Flows or Step Functions with Bedrock InvokeModel tasks.
How it fails
- Errors compound across steps
- Latency adds up on user-facing paths
What the interviewer asks next
Latency of a 4-step chain at 1.2 s per step?
About 4.8 s — chains are sequential. Parallelise independent steps or stream the last one.