AnswerRelevanceEvaluator is an LLM judge that scores how well the answer addresses the user’s question. It uses QuestionContext (no gold answer required). It is used in RAG examples and was missing from the judge inventory.
A case fails when score < threshold. Default threshold is 3 on a 1–3 scale, so only a high-relevance score passes.
How It Works
Usage Example
When to Use
- RAG functional tests without a gold answer
- Checking that retrieval-backed answers stay on topic
- Combining with Correctness or Completeness when you also have
ExpectedResponseContext