Answer relevancy
Answer relevancy rates how directly and completely an output addresses the question asked, penalising padding, drift and non-answers. It mirrors RAGAS answer_relevancy and autoevals AnswerRelevancy as a 0–3 Jev level.
What the evaluator does
Jev reads `input` and `output` and returns a level from “does not address the question” to “directly and completely, no padding”.
Rate how directly and completely `output` answers `input`, penalising padding and off-topic content.
The question, verbatim
This is the question the API sends for the example below, generated from the same code path the playground and API use. Jev sees the request fields as state and returns a probability for each outcome. Nothing is generated, so there is nothing to parse.
Rate how directly and completely `output` answers the question in `input`, penalising padding and off-topic content.
- 0The output does not address the input question at all
- 1The output is partially related but misses the main point or is mostly filler
- 2The output addresses the question with some redundant or off-topic content
- 3The output directly and completely addresses the question with no padding
Reach for it when
- Chat and QA systems where answers wander or hedge.
- Catching filler and “great question!” openers at scale.
- Alongside faithfulness: an answer can be grounded yet off-topic.
Not the right tool when
- Correctness matters more than focus (use answer_correctness).
- The input is a task, not a question (use task_completion).
Watch out for
- A concise wrong answer scores high on relevancy; it is not a correctness measure.
- Multi-part questions need all parts answered to reach the top level.
What to send
score 0–1 (expected level ÷ top level), label “x.x / n”, confidence, a probability per level, passed at 75% of the scale.
{
"evaluators": [
"answer_relevancy"
],
"input": "What is the minimum Node version for the SDK?",
"output": "Node 20 or newer. As background, the SDK ships ESM and CommonJS builds, includes TypeScript declarations, and many teams also use pnpm."
}Level 2: answers, then pads.
Aggregate with
One result per item is a fact; a dataset of them is a metric. These are the aggregations that fit this evaluator's output shape.
- Does answer relevancy check facts?
- No. It checks focus and completeness relative to the question. Use answer_correctness or faithfulness for facts.