Skip to main content
An evaluator judges each answer of a benchmark against the baseline’s: better, same or worse (why side-by-side evaluation). Your library keeps them to reuse across benchmarks.

Types

  • AI judge: AI models from different providers read both answers and follow your instructions, e.g. “The answer names the policy clause it relies on”. The instructions can use the call’s tags, e.g. {{tags.language}}. The judges also see the tools the call offered and the structured output it asked for. When every model you benchmark runs in the EU (or the US), the judges do too.
  • Deterministic: a Python check, e.g. at most 120 words, which Weflayr can write from your description. It receives the call’s tags.
  • Built-in: ready-made judges (Overall quality, Context fidelity, Instruction fidelity, Completeness, Tone fidelity).
A call’s tags come from the gateway request’s weflayr.tags, the SDK’s extra_tags (Python, Node.js), or the run tags of imported calls.

Test before you save

Run an evaluator on one of your real calls to check its verdict before using it in a benchmark. When an OpenAI model replays a call made with Chat Completions, the test asks which OpenAI API it replays the call with: Chat Completions, or the Responses API, which can answer differently.

With the API

Get evaluators, Set evaluator, Delete evaluator, Generate evaluators and Test evaluator do the same.