Workflow design
From a quick LLM workflow to a production system
A prototype proves that an interaction can be useful. Production work proves that it can stay useful when the context becomes less friendly.
The first version of an LLM workflow is often wonderfully direct: a prompt, an input, and an answer that feels surprisingly good. That is exactly the point of a prototype. It compresses the path from question to feedback.
But the moment someone else relies on that workflow, the question changes. It is no longer can this produce a good answer? It becomes when does it fail, how will we notice, and what happens next?
Keep the prototype, add the seams
I do not think the answer is to replace a prototype with a giant framework. The useful next step is smaller: make the assumptions visible enough to inspect.
- Write down the representative inputs, including the awkward ones.
- Separate the prompt from the rest of the application logic.
- Save a few outputs that show what “good enough” means.
Reliability begins when an opinion about quality becomes an example another person can review.
Turn examples into a small evaluation loop
The first evaluation loop does not need a perfect metric. A compact set of scenarios and a clear place to record a judgement is already more useful than re-running a favourite example by hand.
scenario = evaluate(
input=customer_question,
expected="explains the next action clearly",
model_output=response,
)
record(scenario, reviewer_note="Helpful, but too vague on timing")
This is deliberately plain. The goal is not to automate every decision; it is to create a repeatable conversation between the system, its users, and the people responsible for improving it.
Production is a learning environment
A production-ready workflow is not one that never changes. It is one that can change without making everyone nervous. Clear scenarios, inspectable outputs, and short feedback loops create that confidence.
That is the part of LLM systems work I find most interesting: building the conditions where people can learn from model behaviour rather than simply hope for it.