Why regression testing matters
You change a prompt, swap a model, or update your documents. Did the AI get worse? Regression testing answers that question. It means re-running the same checks after every change, so you catch problems before your users do.
Large language models (LLMs) are the AI systems behind most business agents. They can give different answers to the same question. That makes testing harder than it is for normal software.
Why it is harder with LLMs
Same input, different output
In traditional software, one input gives one output. You write a check and it passes or fails. With an LLM, small changes can shift the answer. Even the same question can come back worded differently.
This matters for customer service agents and tools that support decisions. A simple pass-or-fail check often cannot tell you if the answer is still good.
What a regression looks like
LLM regressions are often quiet. The agent does not crash. It becomes a little less relevant, or its tone shifts, or it misses a detail. Users notice before your dashboards do. Poor testing leads to uneven user experience, compliance worries and lost trust.
Two ways to test
Golden datasets
A golden dataset is a fixed set of questions with answers that experts have approved. It covers your most important workflows. You run it after every change and compare the results.
Its strength is control. You know exactly what you are checking. Its limits are real too. The set is fixed, so it cannot cover everything users ask. If you tune the system only to pass it, the system may do well on the test and worse in practice. You need to review and update it regularly.
Random sampling
Random sampling means pulling real questions at random from live use and checking the answers. It shows what users really ask, including odd cases no one planned for.
The trade-off is that there is no approved answer to compare against. You need reviewers, or a second AI model, to judge quality. That takes more effort and clear scoring rules. A second AI model can also be wrong, so people should spot-check its scores.
Why you need both
Golden datasets give depth on what matters most. Random sampling gives breadth on what really happens. Use the golden set as a gate before each release. Use random samples after release to find new problems. When a random sample finds a failure, add it to the golden set. The set then improves over time.
Keep people in the loop
Automated scoring helps, but it cannot judge everything. People should review tone, context and risky answers. Experts who know the business can tell when an answer is technically right but wrong for the customer.
How we approach it
Our engineers work inside your team. This is forward-deployed engineering. We build the golden dataset with your domain experts, not for them. They know which answers are right and which mistakes are costly. We turn that knowledge into test cases.
We then set up the checks to run on every change, with random sampling and human review alongside. We assign clear owners for each check and write down how scoring works.
At handover, your team owns the test set and knows how to grow it. See our process, or how we build AI agents and RAG systems (where the AI looks up your documents before it answers).
What this means for business leaders
- Without regression tests, every model or prompt change is a risk to a live workflow.
- Ask your team how they know a change did not make answers worse.
- Make sure your own experts help write the golden set.
- Plan for ongoing review. Testing is not a one-time task.
Next step
If your team has unreliable AI quality checks in pilot but not in production, book a discovery call.
Saksham Gupta
Founder & CEO, EduBildSaksham Gupta is the founder and CEO of EduBild, which embeds forward-deployed AI engineers with enterprise teams to ship production AI. Ex-Daimler AG; KIT Germany.



