How do you regression-test a system whose output is written in English?
You do not diff the text. You assemble a fixed set of real inputs with known correct structured outcomes and test those: the label, the flag, the extracted field, the routing decision. Prose gets checked against constraints instead, such as required facts present, forbidden claims absent, and every number traceable to the input. Exact-match tests on generated sentences fail constantly and teach you nothing.
Split the output before you try to test it
Every AI step produces some parts that are checkable and some that are not. The checkable parts are structured: a category from a fixed list, an extracted phone number, a yes-or-no flag, a priority. Those support ordinary assertions and belong in an ordinary test suite.
The prose is not checkable by comparison, because two correct summaries can share no wording at all. Trying to test it by equality produces a suite that goes red on every prompt change and gets ignored inside a month.
Building the fixture set
Use real inputs, not invented ones. Twenty genuine cases beat two hundred synthetic ones, because synthetic cases carry the same assumptions the system already has. Include the ugly examples deliberately: the short call, the wrong number, the two-person conversation, the record with a missing field.
Label them once, by hand, with someone who actually knows the business. Then freeze the set. Its value comes from being stable across model versions, which is the same property that makes it useful for the back-test when a model changes.
What to assert on the prose
- Required facts appear. If the input contains an appointment date, the summary mentions it.
- Forbidden content is absent. No commitments on the company's behalf, no invented policy, no causal claims where the system only has correlation.
- Numbers trace to input. Extract every figure from the generated text and confirm each exists in the data that was passed in.
- Length and structure stay in range. Sudden drift in output length is often the first visible symptom of a prompt or model change.
The regression that actually matters
It is not the model getting worse. It is the prompt change that fixes the one case a manager complained about and quietly breaks three cases nobody is watching. Without a fixture set, that trade is invisible, and it happens on almost every iteration.
Run the whole set before any prompt or model change ships, record the results with the version, and keep them. Over time that history becomes the most honest picture you have of your own system, and it makes changing models a decision you can evaluate rather than a leap. It is normal engineering practice applied to AI work.
Topics: testing · regression · quality · evaluation
Have a version of this question about your own business?
The useful answer usually depends on which systems you run and how they're connected. That's a conversation, not a blog post.