Lesson 6.4 · 8 min read · about 55 min to master at a very slow pace

Observability and Handover

How to run an LLM system after launch: tracing every request, the dashboard metrics that matter, alerts, safe rollouts of prompt and model changes, and what a professional handover to the client includes.

Not startedJump to quiz

Trace every request

A trace records each step of one request with its inputs, outputs, timing and cost: the user message, the rewritten query, the retrieved chunk IDs and scores, the prompt version, the model and its parameters, every tool call and result, the final answer, tokens and latency. When a client says "it gave a wrong answer yesterday at 14:05", a trace lets you find out why in minutes (and lesson 3.3's first question becomes answerable).

The dashboard

AreaMetrics
UsageRequests, active users, top topics
QualityOnline judge scores (sampled), thumbs-down rate, refusal rate, escalations to humans
SpeedTime to first token and total latency at p50 and p95
CostCost per request, per user, per day; cache hit rate
ReliabilityError rate, retries, fallback usage, timeouts

Use percentiles, not averages, for latency: an average of 3 s can hide 10% of users waiting 15 s.

Alert on what needs action: error rate spikes, p95 latency above the agreed limit, daily spend above budget, a jump in refusals (often a broken index), or a fall in judge scores.

Changing a live system safely

  • Version prompts like code: in the repository, reviewed, with the version recorded in every trace.
  • Pin model versions; when the provider releases or retires a model, run your evals before switching.
  • Run the eval suite in CI; block releases that regress.
  • Roll out gradually (canary: 5% of traffic, compare metrics, then 100%), with a one-step rollback.

Handover to the client

A professional delivery is more than a working URL. Hand over:

  1. Architecture document: components, data flows, providers and regions, where personal data lives.
  2. Eval report: the eval set, the scores at launch, known limitations and failure types.
  3. Runbook: what to do when the provider is down, costs spike, answers go wrong, or a document must be removed urgently.
  4. Operating procedures: how to add documents, update prompts, review feedback, and re-run evals.
  5. Agreed service levels: availability, response times, who responds to incidents and how fast.
  6. Training for the people who will own it, and a plan for the first months (review cadence, budget, improvements).

The real deliverable

Clients don't buy a model call; they buy a system they can trust and run. Evals, observability and a clear handover are what make an LLM prototype into that system, and they are exactly the skills employers ask for when they say "production experience".

Stuck? Common doubts

Questions real learners asked while studying this lesson. They stay closed so they don't spoil your own thinking: open only the ones you need.

First passDo I need a dedicated LLM observability tool?

Not at first. Structured logs with a request ID tying all steps together, plus a dashboard on your existing monitoring, cover the basics. LLM-specific tools make traces easier to browse, link them to eval runs and support online scoring; adopt one when volume or team size makes plain logs painful. Check where the tool stores data, since traces contain user content.

Going deeperWhat does "the provider retired the model" mean for my client?

Providers deprecate model versions on a published schedule. When that happens, your pinned version stops working on a known date. Track those dates, run the eval suite on candidate replacements well before, adjust prompts if needed, and roll out the switch like any other change. Put this in the runbook and the support agreement.

Cheatsheet

What a trace records

Message, rewritten query, chunk IDs and scores, prompt version, model and parameters, tool calls, answer, tokens, latency, cost.

Safe changes

Versioned prompts, pinned models, evals in CI, canary rollout, one-step rollback.

Handover pack

Architecture doc, eval report, runbook, operating procedures, service levels, training and a first-months plan.

See every cheatsheet by category →

Check your understanding

Score 75% or more to master this lesson and earn XP. Answer first, then check.

Q1applyA client reports a wrong answer from yesterday afternoon. What lets you find the cause quickly?
Q2interpretAverage latency is 3 s, but p95 latency is 14 s. What does this mean?
Q3diagnoseOvernight, the refusal rate jumps from 5% to 40% with no code change. What is the most likely cause to check first?
Q4applyThe provider announces your pinned model will be retired in three months. What should you do?
Q5conceptWhat should a runbook in the handover pack contain?