Problem
Teams ship an LLM assistant on an external API, it starts bringing value, and then nobody can say whether it behaves as intended. Outputs are open text with no label to compare against. Quality criteria are subjective ("comments must be actionable"), and expert judgment does not scale. A bad answer reaches users under the brand's name.
Example from the article: a Chevrolet dealer's ChatGPT bot agreed to sell a car for one dollar and called it a legally binding offer. A DPD delivery bot wrote a poem about how useless the company is.
Solution in brief
Split the work in two. Before release, run regression tests on small golden datasets (critical path, edge cases, adversarial). In production, trace everything and score logged answers with the cheapest method that fits the criterion: regular expressions, text statistics, ready-made models, semantic similarity, an LLM judge, or a drift check between versions.
Questions this case answers
- How to evaluate the quality of open-ended generated text automatically when there is no single correct answer and quality criteria are subjective
- How to monitor a generative system in production without reference answers and alert only when behavior goes wrong
- How to check that an LLM assistant behaves as intended before release?
- How to monitor answer quality in production when there are no reference answers?
Tools and methods
- Golden datasets — several packs of test cases: critical path, known failure modes, adversarial
- LLM-as-a-judge — checks custom criteria and groundedness of an answer in its context
- Semantic similarity — embedding distance between new and reference answers
- Tracing — logs the full interaction for batch evaluations
- Guardrails — a layer that blocks bad requests or answers before the user sees them
- Evidently AI — open-source library that builds text evaluation reports from descriptors
- Hugging Face models — ready classifiers for sentiment, toxicity and PII
Google or a one-time email code. No password.
