Rendered Source Note

Online Evaluation & Drift Monitoring for LLM Systems (industry practice)

Generated HTML view. Markdown remains canonical.

Online Evaluation & Drift Monitoring for LLM Systems (industry practice)

Type: article (synthesized industry best-practice; multiple practitioner sources) Tier: 3 (Engineering Guide) URL: https://langfuse.com/blog/2025-03-04-llm-evaluation-101-best-practices-and-challenges Accessed: 2026-06-09 Primary references:

Primary source for Elective 04 — Observability & Ops (the online-evaluation / drift-monitor half). Pairs with sources/official-docs/opentelemetry-genai-semconv.md (the telemetry vocabulary) and sources/papers/mt-bench.md (score-with-numbers, now over a live window). Synthesis of converging industry practice; the linked posts are the references.


The core distinction (carried from the concept map)

Observability records what happened; evaluation decides whether it was good. A trace tells you latency rose and tokens grew; it does not tell you the answers got worse. Production needs both: cheap telemetry on every request, plus sampled quality evaluation.

Offline vs. online evaluation — the loop

frozen set never anticipated. The two together are worth more than either alone — offline gates the release, online watches the deployment.

How online evaluation is run in practice

against it.

traffic and grades it against the same rubric the offline eval used. Critically, the judge must not run synchronously on the request path — that doubles latency and cost. Quality scoring is a background job over sampled traces, not a gate on every response.

production traffic; a spike in malformed-output rate is the earliest warning of drift.

What a trace contains (the unit of monitoring)

A trace records everything the system did to produce a response: the user query, retrieved documents with relevance scores and source ids, tool calls with arguments and results, the assembled prompt, and the model's response — plus latency, tokens, cost, and finish reason. This is exactly what the OTel GenAI conventions standardize so tools agree on the field names.

Drift detection strategies

coverage — queries arriving that the system was never evaluated on — often before failure rates climb.

The monitoring principle that mirrors P09

Aggregate per route / per operation, not as one global mean. A healthy overall average can hide a single route that has silently gone to a 0% pass-rate or a 10× latency — the same trap Project 09 names for routing accuracy. Drift detection must be per-segment.

Why This Source Matters

It is the "decide whether it was good, continuously" half that the OTel telemetry ("record what happened") cannot provide alone. The learner builds a monitor that aggregates spans per route and flags the route that regressed against a baseline — the smallest real online-eval loop.

Key Claims

Relevant To

Known issues / cautions

precision/recall dial as Electives 02/03).