datarobot_genai.eval.benchmarks.response_acceptability
response_acceptability
Response Acceptability: how acceptable is the response given example answers (LLM-as-judge).
The judge-based twin of response_similarity, reading the same dataset. Instead of counting shared words, a judge sees the example answers and rates how well the agent's response matches them in substance. It catches paraphrases that the lexical metrics miss, at the cost of a judge call per case.
The examples are illustrations, not an exhaustive list: a response can score 5 without matching any of them word for word.
Scoring (judge-based): the judge rates 1-5 on the rubric below, mapped to
0.2..1.0. With the default 0.5 pass threshold, a rating of 3 or more passes.
The reason repeats the rubric line for the rating the judge gave.
Dataset fields
input (required) the prompt sent to the agent acceptable_responses (required) str | list[str] example good answers unacceptable_responses (optional) str | list[str] example bad answers notes (optional) extra grading guidance for the judge
metric is ignored here, so one dataset can drive both benchmarks. A case
with no acceptable_responses is scored inconclusive.
build_criteria
Build the optional criteria block: unacceptable examples and extra guidance.
Source code in datarobot_genai/eval/benchmarks/response_acceptability.py
score_sample
Scoring logic behind score, separate so tests can call it undecorated.
Source code in datarobot_genai/eval/benchmarks/response_acceptability.py
score
Judge how acceptable the response is given the case's example answers.