Noise sensitivity
Noise sensitivity detects whether irrelevant or misleading context leaked into the output as incorrect claims. It mirrors RAGAS noise_sensitivity and returns the probability that leakage happened.
What the evaluator does
Jev returns p(yes) for “the output contains claims that come from irrelevant parts of the context and are not needed to answer the question”. jeval inverts it: higher score means less leakage.
`output` contains claims that come from irrelevant or misleading parts of `context` and are not needed to answer `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.
`output` contains claims that come from irrelevant or misleading parts of `context` and are not needed to answer `input` (or contradict `expected`).
Reach for it when
- Stress-testing RAG with distractor documents.
- Measuring robustness of a generator to noisy retrieval.
Not the right tool when
- The context has no irrelevant material by construction; the signal will be trivially clean.
Watch out for
- Leakage of correct-but-unneeded facts is still noise sensitivity; decide whether your product cares before thresholding hard.
What to send
score 0–1 (p of the good outcome), label “nn% yes”, confidence |p − 0.5| × 2, probabilities yes/no, passed at 0.5.
{
"evaluators": [
"noise_sensitivity"
],
"input": "What is Jev's context limit?",
"output": "64k tokens per request; and Jev costs $8 per million output tokens.",
"context": [
"Context length: 64k tokens per request; 32k tokens for `state` plus the longest question.",
"Output tokens are billed at $8 per million on the legacy v0 endpoint, which is deprecated."
]
}p(leak) high: the deprecated pricing line leaked into an unrelated answer.
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.
- What does a high noise sensitivity mean?
- The generator repeated irrelevant or misleading context as if it answered the question. It is a robustness problem in the generator, not a retrieval problem.