Detecting silent degradation: input drift, provider-side changes and feedback-signal dashboards.
01
01
Understand the problem
driftmonitoringproductionquality
02
02
Attempt it yourself
Sketch your approach before reading the solution — that's what interviews test.
Stuck? AI Nudge Available
Get a conceptual hint to guide your logic without spoiling the final implementation.
03
03
Study the solution
The solution is waiting
Give it an honest attempt first — then compare your thinking with the full walkthrough.
04
04
Read the code
Continuous sampled scoring job
// hourly cron: score a sample of the last hour's traces
const sample = await traces.sample({ lastHours: 1, rate: 0.03, feature: "support" });
for (const t of sample) {
const score = await judge.score("faithfulness", t.context, t.output);
await qualityTs.write({ feature: t.feature, model: t.model, score, at: t.at });
}
// alerting: 7-day rolling mean vs trailing 24h, per feature
// fires when delta > 2σ — catches provider-side shifts with no deploy marker
await alerts.evaluate("quality.faithfulness", { window: "24h", baseline: "7d", sigma: 2 });05
05
Join the discussion
Discussion (0)
Sign in to join the discussion.
No responses yet. Be the first to share what you think.