Skip to main content
Let your agent set this up. Copy the evaluations prompt into your coding agent to get started automatically.
Evaluators are scoring functions that assess the quality of your LLM’s outputs. They’re the building blocks for experiments, online evaluation, and guardrails.

Choose Your Approach

There are three ways to evaluate your LLM outputs with LangWatch:

Built-in Evaluators

Use LangWatch’s library of evaluators directly in your code.

Saved Evaluators

Create reusable evaluator configs on the platform.

Custom Scoring

Send scores from your own evaluation logic.

Which should I use?

What is an Evaluator?

An evaluator takes inputs (like the user question, LLM response, and optionally context or expected output) and returns a score indicating quality along some dimension.

Built-in Evaluator Categories

LangWatch provides a library of ready-to-use evaluators: Browse all evaluators →

Quick Examples

Using a Built-in Evaluator

Using a Saved Evaluator

Sending Custom Scores

Using Evaluators

In Experiments

Run evaluators on each row of your test dataset for batch evaluation:
Learn more about experiments →

In Online Evaluation (Monitors)

Run evaluators automatically on production traces:
  1. Create a monitor in LangWatch
  2. Select evaluators to run
  3. Configure when to trigger (all traces, sampled, filtered)
  4. Scores appear on traces and dashboards
Learn more about online evaluation →

As Guardrails

Use evaluators to block harmful content in real-time:
Learn more about guardrails →

Evaluator Inputs

Different evaluators require different inputs: Check each evaluator’s documentation for required and optional inputs.

The name Parameter

Important: Always provide a descriptive name when running evaluators. This helps identify evaluation results in Analytics and traces.

Next Steps

Built-in Evaluators

Saved Evaluators

Custom Scoring

Evaluators List