<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Production Monitoring &amp; Guardrails on DATATWEETS</title><link>https://datatweets.com/courses/llm-evaluation/production-monitoring-and-guardrails/</link><description>Recent content in Production Monitoring &amp; Guardrails on DATATWEETS</description><generator>Hugo</generator><language>en</language><copyright>Copyright (c) 2026 Datatweets</copyright><lastBuildDate>Tue, 07 Jul 2026 09:00:00 +0200</lastBuildDate><atom:link href="https://datatweets.com/courses/llm-evaluation/production-monitoring-and-guardrails/index.xml" rel="self" type="application/rss+xml"/><item><title>Lesson 1 - Monitoring in Production: Dashboards &amp; Alerts</title><link>https://datatweets.com/courses/llm-evaluation/production-monitoring-and-guardrails/lesson-1-monitoring-dashboards-and-alerts/</link><pubDate>Tue, 07 Jul 2026 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/llm-evaluation/production-monitoring-and-guardrails/lesson-1-monitoring-dashboards-and-alerts/</guid><description>Module 7 captured what Docent did; this lesson watches it in real time. You&amp;rsquo;ll learn the six-ish metrics worth monitoring continuously for an LLM app &amp;ndash; volume, latency percentiles, cost, error rate, refusal rate, and online quality proxies &amp;ndash; and separate leading signals that predict trouble from lagging ones that confirm it. You&amp;rsquo;ll build a deterministic per-minute metrics stream with a deliberate incident at 09:07, compute rolling-window baselines that expose the regression a lifetime average hides, and write an alert engine that fires static and relative-to-baseline alerts. The engine flags the real spike &amp;ndash; p95 latency 4.88s and refusal rate 40.1% at three times baseline &amp;ndash; and everything reproduces byte-for-byte.</description></item><item><title>Lesson 2 - Detecting Drift &amp; Regressions</title><link>https://datatweets.com/courses/llm-evaluation/production-monitoring-and-guardrails/lesson-2-detecting-drift-and-regressions/</link><pubDate>Tue, 07 Jul 2026 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/llm-evaluation/production-monitoring-and-guardrails/lesson-2-detecting-drift-and-regressions/</guid><description>Quality rarely fails loudly in production; it drifts. This lesson separates input/data drift (users start asking different questions than your golden set covers) from quality/behavior drift (answers get worse because a prompt or model changed underneath you) and from a sudden regression (a specific change caused a step drop). You&amp;rsquo;ll learn detection methods — comparing recent versus baseline metric windows, monitoring the input distribution for new topics, canary sampling live outputs, and watching a rolling quality proxy or refusal rate — and how to tell small-sample wobble from a real shift with a threshold and a simple significance check. Then you build a fully deterministic detector: one part flags a surge of billing questions Docent&amp;rsquo;s golden set under-covers via a total-variation distance of 0.34, the other flags a quality regression where a prompt change dropped the recent window&amp;rsquo;s mean judge score from 0.865 to 0.655, confirmed by a two-proportion z of 4.12.</description></item><item><title>Lesson 3 - Prompt &amp; Model Regression Tests in CI</title><link>https://datatweets.com/courses/llm-evaluation/production-monitoring-and-guardrails/lesson-3-regression-tests-in-ci/</link><pubDate>Tue, 07 Jul 2026 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/llm-evaluation/production-monitoring-and-guardrails/lesson-3-regression-tests-in-ci/</guid><description>A prompt tweak or model upgrade can silently regress quality — and &amp;lsquo;we&amp;rsquo;ll eyeball it&amp;rsquo; doesn&amp;rsquo;t scale. This lesson turns your eval suite into a CI test: a fixed golden set, a deterministic metric per case, critical cases that must never fail (the out-of-scope refusal, a known past bug), and a per-suite threshold that fails the build when quality drops. You&amp;rsquo;ll build a pytest-style regression suite for Docent, watch it PASS on a good version and BLOCK the release when a candidate regresses two critical cases, and run the deterministic suite twice for byte-identical results — plus one live-backed critical check against claude-haiku-4-5.</description></item><item><title>Lesson 4 - Guardrails &amp; Human Feedback</title><link>https://datatweets.com/courses/llm-evaluation/production-monitoring-and-guardrails/lesson-4-guardrails-and-human-feedback/</link><pubDate>Tue, 07 Jul 2026 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/llm-evaluation/production-monitoring-and-guardrails/lesson-4-guardrails-and-human-feedback/</guid><description>Guardrails are checks that run around the model, not inside it: input guardrails block prompt-injection and off-topic requests and redact PII before the call; output guardrails validate format, catch ungrounded or unsafe answers, and spot false refusals after it. Each can allow, block, rewrite, or flag for review. You&amp;rsquo;ll build deterministic input and output guardrails for Docent that block bad cases and pass good ones (reproducible byte-for-byte), add a lightweight live judge-as-guardrail on claude-haiku-4-5 that allows a grounded answer and flags a hallucinated one, then aggregate synthetic thumbs feedback — computing a thumbs-down rate and promoting downvoted, corrected interactions back into Module 2&amp;rsquo;s golden dataset.</description></item><item><title>Lesson 5 - Guided Project: A Monitoring &amp; Guardrails Harness</title><link>https://datatweets.com/courses/llm-evaluation/production-monitoring-and-guardrails/lesson-5-guided-project-monitoring-and-guardrails-harness/</link><pubDate>Tue, 07 Jul 2026 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/llm-evaluation/production-monitoring-and-guardrails/lesson-5-guided-project-monitoring-and-guardrails-harness/</guid><description>The capstone for Module 8. You combine the four production disciplines the module taught into one harness for Docent. Stage 1 wraps Docent in an input guardrail (blocking injection and off-topic questions before any model call) and an output guardrail (a format and numeric-grounding check), returning the answer plus both guardrail decisions. Stage 2 feeds a simulated hourly metric stream with an injected incident through a rolling-window alerter that fires OPEN when grounded_rate drops and p95 latency spikes, then RESOLVED after a rollback. Stage 3 runs a pytest-style regression suite as a CI gate: a good build passes 5/5 and ships, a regressed build fails one critical case and is blocked. Stage 4 aggregates synthetic human thumbs, promotes the thumbs-down cases into the golden set, and prints the deliverable: a one-screen production-readiness report combining guardrail block rate 0.60, alert status HEALTHY, CI gate PASS, and feedback backlog 2 into a READY TO SHIP verdict. The deterministic stages reproduce exactly; one small live guarded call shows the real assistant behind the guardrails.</description></item></channel></rss>