Context entity recall
Context entity recall rates what share of the named entities, numbers, dates and terms in the reference answer appear in the retrieved context. It mirrors RAGAS context_entity_recall and is a sharper retrieval check for fact-heavy answers.
What the evaluator does
Jev lists the entities implied by `expected` and rates how many are present in `context`, from none to all.
Consider the entities, numbers, dates and terms in `expected`. Rate what share appear in `context`.
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.
Consider the named entities, numbers, dates and technical terms in `expected`. Rate what share of them appear in `context`.
- 0None of the entities (names, numbers, dates, terms) in the expected answer appear in the context
- 1A few of the expected entities appear in the context
- 2Most expected entities appear in the context
- 3All entities in the expected answer appear in the context
Reach for it when
- Fact-dense domains: finance, legal, medical, specs.
- Catching retrieval that found the topic but not the numbers.
Not the right tool when
- Reference answers that are conceptual rather than entity-rich.
Watch out for
- Entities can be present in a different form (Q3 vs third quarter); the rubric allows equivalents, but check with a few gold cases.
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_entity_recall"
],
"expected": "$0.042 per million input tokens; output tokens are free.",
"context": [
"Price: $42 per billion input tokens ($0.042 per million). Output tokens are free."
],
"output": "…"
}Level 3: both entities present.
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.
- How is entity recall different from context recall?
- Context recall is about statements; entity recall is about the specific names, numbers and dates. A context can support a statement loosely while missing the exact figure.