For the complete documentation index, see llms.txt. This page is also available as Markdown.

Monitor production quality

Score a sample of future live runs so you can see changes in output quality without reviewing every response manually.

Before you start

Choose a compatible evaluator that does not need an expected reference answer. A production run does not normally come with one. An LLM judge can incur usage charges. Monitoring starts with future runs; use an experiment to evaluate an existing set of cases.

Create the monitor

Call evals_monitors_create with the project and evaluator IDs:

{
  "project_id": "<project-id>",
  "evaluator_id": "<evaluator-id>",
  "sampling_rate": 0.1,
  "max_runs_daily": 100,
  "notifications_enabled": false
}

sampling_rate: 0.1 samples 10% of eligible future runs. max_runs_daily: 100 caps sampled runs at 100 per UTC day. This example disables notifications. Select values for your required coverage and usage budget; the maximum supported sampling rate is 30%, and the daily cap cannot exceed 1000.

Inspect coverage and scores

Save the returned monitor ID. Call evals_monitors_get with expand: ["stats", "alert"] and window: "7d".

  • scored_count shows how many samples received scores.

  • pending_count shows samples still awaiting scoring.

  • failed_count shows scoring failures; these differ from low-quality answers that were scored successfully.

  • runs_enqueued_today shows today's sampled runs and helps explain whether the daily cap has been reached.

  • alert.severity shows the alert state. Review alert.effective for the thresholds and minimum-sample settings used.

A new monitor can have no scores until qualifying runs occur and scoring completes. Read coverage before drawing conclusions from an aggregate score. Supported windows are 24h, 7d, 30d, and all.

Inspect one run

Use evals_run_scores_list to read a run's score history. To add a score for an existing run, use evals_run_scores_create with a compatible evaluator. Each successful call appends another score; inspect history before repeating it.

Tool reference

Was this helpful?