# What is LLM-as-a-judge?

Last updated: 2026-11-20

> LLM-as-a-judge is an evaluation method where one language model scores the output of another model or agent against defined criteria, such as hallucination, relevance, bias, toxicity, or a custom rubric, and returns a score, a label, and its reasoning.

- HTML: https://openlit.io/glossary/llm-as-a-judge
- Markdown: https://openlit.io/glossary/llm-as-a-judge.md

A judge prompt gives the model the input, the output being graded, optional reference context, and a rubric, then asks for a score or a pass/fail verdict with an explanation. It scales human-style review to thousands of traces, which manual review cannot do.

Judges have known failure modes: they can prefer longer answers, favor outputs from their own model family, and drift when the judge model changes. Pin the judge model and prompt, calibrate against a sample of human labels, and combine judges with programmatic checks (exact match, schema validation, or regex) where the answer is checkable.

Use it online on sampled production traces to catch regressions, and offline on datasets in CI to gate releases. OpenLIT runs LLM-as-a-judge evaluators (hallucination, bias, toxicity, or custom) on traces, with a configurable judge model, scheduled Auto Evaluation, and pass-rate analytics, and the same criteria through the SDK for CI.

## FAQ

### What is LLM-as-a-judge?

LLM-as-a-judge uses a language model to grade another model or agent output against a rubric, returning a score or verdict with reasoning.

### Is LLM-as-a-judge reliable?

It is useful but imperfect. Pin the judge model and prompt, check it against human labels, and pair it with programmatic checks where the correct answer is known.

### Which tools support LLM-as-a-judge?

OpenLIT, Langfuse, Arize Phoenix, LangSmith, Braintrust, and Comet Opik all support LLM-as-a-judge evaluation. OpenLIT is open source under Apache 2.0 and runs judges on OpenTelemetry traces. Docs: https://docs.openlit.io/latest/openlit/evaluations/llm-as-a-judge.

## Related

- [Agent evals](https://openlit.io/glossary/agent-evals.md)
- [Trajectory evaluation](https://openlit.io/glossary/trajectory-evaluation.md)
- [LLM observability](https://openlit.io/glossary/llm-observability.md)
- Pillar: https://openlit.io/agent-harness-engineering.md
