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}}. 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.

With the API

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