Every team that ships LLM output hits the same moment. The demo was great. Then real traffic arrived, and the output started to drift: filler where there should be specifics, confident claims with nothing behind them, a tone that sounds like a generic assistant instead of the product, JSON that is almost the right shape.
The instinct is to fix it in the prompt. Add "be specific." Add "do not make things up." Add three more examples. It helps a little, for a while, and then the next edge case arrives.
We stopped fighting slop in the prompt. We treat it as what it is: a validation problem.
Generated output is untrusted input
Nobody would take a form submission from the internet and write it straight into a production database. We validate it, reject what is malformed, and log what we rejected. LLM output deserves exactly the same treatment. It is produced by a system you do not fully control, it varies run to run, and it fails in ways that look plausible.
Once you frame it that way, the architecture almost designs itself: generate → validate → correct → re-validate → ship or escalate.
One detector, one job
The most common mistake is asking a single "judge" prompt to check everything. It ends up checking nothing well. We split validation into focused detectors that each answer one question:
- Grounding — is every factual claim supported by the sources the model was given?
- Specificity — does this say something concrete, or is it padding?
- Voice — does it sound like this product, for this audience?
- Format — does it match the schema downstream code expects?
Each detector returns pass or flag, the exact spans it objects to, and the reason. "Score: 6/10" is useless to a fixing step. "This sentence claims a date that is not in any source" is something you can act on.
Fix the span, not the whole answer
When something is flagged, regenerating the entire answer is tempting and wasteful: you throw away the good parts and roll the dice again. Instead, a corrector rewrites only the flagged spans, with the detectors' reasons attached. Good content stays put, and every change is small enough for a person to review at a glance.
Loop, but not forever
Corrected output goes back through the same detectors. It ships only when every check passes. If it still fails after a fixed number of rounds, it goes to a person, never to the customer. A bounded loop with a human fallback is the difference between a quality system and an expensive infinite loop.
Every failure becomes a test
The part teams skip is the most valuable one. Every flag, fix and final verdict gets logged, and real failures become regression cases. The next time someone changes a prompt or swaps a model, you run it against everything that has ever gone wrong. The detectors get stricter over time instead of the prompts getting longer.
The takeaway
Prompting is how you get a good first draft. Validation is how you get something you can put in front of a customer. If you are still trying to prompt your way out of slop, move the effort one step later in the pipeline — that is where it pays off.



