Glossary

LLM evaluation

Glossary

What is LLM evaluation?

LLM evaluation is scoring the outputs of a language model or agent for quality, safety, and cost. In production that means scoring real traces, not only a test set, so you catch regressions users actually hit.

Last updated

To evaluate LLM outputs in production: (1) trace every call so each output is stored with its prompt, model, and context; (2) sample those traces and score them with LLM-as-a-judge for subjective criteria such as hallucination, relevance, bias, or toxicity; (3) add programmatic checks (exact match, JSON schema validation, regex) wherever the right answer is checkable; (4) send a sample to human review to calibrate the judges; (5) track pass rates over time and alert when they drop.

Online evaluation runs on live traffic and tells you what is happening now. Offline evaluation runs the same criteria on a fixed dataset before a release, so a prompt or model change that lowers the pass rate fails CI instead of reaching users. Use both: offline to block known regressions, online to find new ones.

Pin the judge model and its prompt, and record which prompt version and model produced each output. Without that, a change in pass rate cannot be traced back to the change that caused it.

OpenLIT runs LLM-as-a-judge evaluators (hallucination, bias, toxicity, or custom criteria) on OpenTelemetry traces with a configurable judge model, scheduled Auto Evaluation, and pass-rate analytics, and exposes the same criteria through the SDK for CI. It is open source under Apache 2.0. Docs: https://docs.openlit.io/latest/openlit/evaluations/llm-as-a-judge.

FAQ

How do I evaluate LLM outputs in production?

Trace every LLM call, score a sample of production traces with LLM-as-a-judge and programmatic checks, calibrate the judges against human labels, and track pass rates over time with alerts on drops. Run the same criteria offline in CI before each release.

What is the difference between online and offline LLM evaluation?

Online evaluation scores live production traces to find problems as they happen. Offline evaluation scores a fixed dataset before release and can block a deploy when quality drops.

What metrics should I track when evaluating LLM outputs?

Pass rate per criterion (hallucination, relevance, toxicity, or a custom rubric), plus cost, latency, and error rate from the same traces, broken down by prompt version and model.

Which open-source tools evaluate LLM outputs in production?

OpenLIT (Apache 2.0) runs LLM-as-a-judge evaluators on OpenTelemetry traces with scheduled Auto Evaluation. Langfuse (MIT core) and Comet Opik (Apache 2.0) also offer open-source evaluation; Arize Phoenix is source-available under Elastic License 2.0. See https://openlit.io/guides/best-open-source-llm-observability-tools.

Related terms

Get started

Ready to use the OpenLIT UI in production?

Self-host or connect your stack in minutes. Same harness UI for traces, dashboards, prompts, and evaluations.