Production: monitoring, feedback, languages and what to automate
After release, the quality of an AI feature keeps being measured in production and findings go back into tests. Log the model and prompt version, latency, stop reason and refusal rate, with PII masked and alerts on drift. A thumbs-up or thumbs-down is a signal for finding problems, not a measure of correctness. Each language needs its own golden-set subset, and sampled review of answers and tone stay manual.
AI for QA · AI features
Everything was green before release, and a week later users complain about answers nobody predicted. What do you measure after release?
Before release you cannot predict every request, and live requests and documents change, as does the behaviour of a model taken by alias. So the quality of an AI feature is kept measured in production, and findings go back into tests. This lesson covers what to log, how to read feedback, how to check languages and what of all this to hand to automation.
How it works and why. Production becomes a source of new tests. Logs and feedback show where the feature is weak, triage turns that into a concrete class of errors, and a case in the golden set plus a regression eval in CI keep the error from returning.
The quality loop
Monitoring. Log (with PII masked and access restricted): the model and prompt version, token counts, latency, stop reason, provider errors, the share of refusals and invalid JSON. Alerts go on sharp changes: cost, answer length, refusal rate, number of 429s. A sample of live requests is scored by a judge or a human to notice drift: user requests change, data for retrieval changes and even model behaviour after updates on the provider side.
{
"ts": "2026-11-20T10:15:00Z",
"request_id": "req_8f2c",
"model": "provider-model-2026-10-15",
"prompt_version": "v14",
"lang": "uk",
"tokens_in": 812,
"tokens_out": 164,
"latency_ms": 2430,
"stop_reason": "end",
"refused": false,
"schema_valid": true,
"user_hash": "u_91ab",
"input": "[masked: stored separately with restricted access]"
}
The request body does not sit in the general log of such a record: it is stored separately with restricted access and a retention period. The same goes for traces and analytics: a test checks that there is no PII in them.
User feedback. The 👍/👎 buttons and a "what went wrong" field are useful, but the rating is subjective and only some people respond. It is a signal for finding problems, not a correctness metric. Negative feedback is triaged and turned into new golden set cases. The mechanism itself is also checked: feedback is saved, tied to the specific answer and version, and holds no extra personal data.
Feedback: what it gives
What 👍/👎 feedback gives
A signal for finding problems: where users are unhappy, which topics, which versions. Only some people respond.
What it does not give
A correctness metric: a person can give 👍 to a nice but wrong text and 👎 to a correct but unpleasant answer.
Languages. The assistant must answer in the request language even when the documents are in English; names, numbers, dates and units are not corrupted in translation; quotes stay verbatim. Each supported language needs its own slice of the golden set and its own threshold: quality for English says nothing about Ukrainian.
// every language gets its own slice of the golden set and its own threshold
for (const lang of ['uk', 'en', 'pl']) {
test(`answer in the request language: ${lang}`, async () => {
const out = await run(questionIn(lang, 'docs-in-en'));
expect(detectLanguage(out)).toBe(lang);
expect(out).toContain(factFor(lang)); // numbers, dates and units are intact
});
}
What to automate and what not.
| Automatic | By hand |
|---|---|
| Schema validation, forbidden patterns, presence of facts | Review of a sample of answers |
| Language, length, API calls | Tone and appropriateness |
| Cancellation and provider errors on a stub | New classes of requests |
| A regression eval in CI | Judge calibration, red teaming |
Every finding made by hand becomes an automatic case, and manual work moves on to new questions.
Limits and alternatives. Production monitoring costs money (a judge scores a live sample) and needs care with data: logging request contents without consent and masking is not allowed. Automatic "change" alerts give false alarms until thresholds are tuned on real data. Manual review does not scale, so the sample is picked by risk (negative feedback, refusals, long answers) rather than at random.
Typical mistakes.
- Logging full requests with personal data into the general log.
- Treating the 👍 share as a correctness metric.
- Testing only English and assuming Ukrainian is "the same".
- Not adding incidents to the golden set: the same failure returns.
- Automating everything and never looking at live answers.
Check yourself
Why can 👍/👎 not be treated as a correctness metric?
Answer
Only some users respond and the rating is subjective: a nice but wrong text gets 👍. Feedback is a signal for finding problems, which are then checked and turned into cases.
Why does each language need its own slice of the golden set?
Answer
Quality differs between languages: a good result for English says nothing about Ukrainian. A separate slice and threshold let you spot a regression in one language.
Which AI feature checks stay manual and why?
Answer
Reviewing a sample of answers, tone and appropriateness, new request classes, judge calibration and red teaming: these need judgement, not a rule. What is found becomes an automatic case.