Context relevancy
Context relevancy rates the overall relevance of the retrieved context to the question on a 0–3 scale, without needing a reference answer. It mirrors RAGAS context_relevancy and autoevals ContextRelevancy.
What the evaluator does
A single Jev Score over `input` and `context`. It is coarser than chunk_relevance but works when you have no gold answer.
Rate how relevant `context` as a whole is to `input`.
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 relevant the `context` as a whole is to the question in `input`.
- 0The context is unrelated to the input
- 1The context is loosely related with little that helps answer the input
- 2The context is relevant with some extraneous material
- 3The context is tightly relevant to the input
Reach for it when
- Quick retrieval sanity checks in production, where no reference exists.
- Alerting on drift when relevancy drops over time.
Not the right tool when
- You want per-chunk decisions (use chunk_relevance).
- You have a reference answer (context_recall is more informative).
Watch out for
- A single highly relevant chunk among noise can pull the level up; the rubric weighs the whole, so use chunk_relevance for precision.
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": [
"context_relevancy"
],
"input": "How do I list available models?",
"context": [
"`GET /v1/models` returns the names your account can send in the `model` field."
],
"output": "…"
}Level 3: tightly relevant.
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.
- When should I use context relevancy instead of precision?
- When you have no reference answer and want a single retrieval-quality number. Precision needs the same inputs but is defined per chunk; chunk_relevance gives you that breakdown.