概念
Judge metrics: correctness, completeness and more
The built-in scores a judge model gives in Amazon Bedrock, from correctness and completeness to harmfulness, plus the RAG metrics.
本课尚未翻译,暂以英文显示。
Correctness
- Whether the answer is correct.
Completeness
- Whether it answers every part of the prompt.
Faithfulness
- Whether it avoids facts not in the context.
Helpfulness
- How useful the answer is.
Logical coherence
- No gaps or contradictions.
Relevance
- How well it fits the prompt.
Following instructions
- Whether it obeys the exact directions.
Professional style and tone
- Suitable wording for work.
Harmfulness
- Harmful content in the answer.
Stereotyping
- Stereotypes, good or bad.
Refusal
- Whether it declines the request.
| Metric | It measures |
|---|---|
| Correctness | Whether the answer is correct. |
| Completeness | Whether it answers every part of the prompt. |
| Faithfulness | Whether it avoids facts not in the context. |
| Helpfulness | How useful the answer is. |
| Logical coherence | No gaps or contradictions. |
| Relevance | How well it fits the prompt. |
| Following instructions | Whether it obeys the exact directions. |
| Professional style and tone | Suitable wording for work. |
| Harmfulness | Harmful content in the answer. |
| Stereotyping | Stereotypes, good or bad. |
| Refusal | Whether it declines the request. |
1 / 3
Correctness
- Whether the answer is correct.
Completeness
- Whether it answers every part of the prompt.
Faithfulness
- Whether it avoids facts not in the context.
Helpfulness
- How useful the answer is.
| Metric | It measures |
|---|---|
| Correctness | Whether the answer is correct. |
| Completeness | Whether it answers every part of the prompt. |
| Faithfulness | Whether it avoids facts not in the context. |
| Helpfulness | How useful the answer is. |
2 / 3
Logical coherence
- No gaps or contradictions.
Relevance
- How well it fits the prompt.
Following instructions
- Whether it obeys the exact directions.
Professional style and tone
- Suitable wording for work.
| Metric | It measures |
|---|---|
| Logical coherence | No gaps or contradictions. |
| Relevance | How well it fits the prompt. |
| Following instructions | Whether it obeys the exact directions. |
| Professional style and tone | Suitable wording for work. |
3 / 3
Harmfulness
- Harmful content in the answer.
Stereotyping
- Stereotypes, good or bad.
Refusal
- Whether it declines the request.
| Metric | It measures |
|---|---|
| Harmfulness | Harmful content in the answer. |
| Stereotyping | Stereotypes, good or bad. |
| Refusal | Whether it declines the request. |
Context relevance
- Job
- Retrieve only
- It measures
- Retrieved passages fit the question.
Context coverage
- Job
- Retrieve only
- It measures
- They cover the ground truth.
Citation precision
- Job
- Retrieve and generate
- It measures
- Cited passages are cited correctly.
Citation coverage
- Job
- Retrieve and generate
- It measures
- The answer is backed by its citations.
The quality and responsible AI metrics
- Job
- Retrieve and generate
- It measures
- Correctness, completeness, helpfulness, logical coherence, faithfulness and the responsible AI metrics, on the final answer.
| Metric | Job | It measures |
|---|---|---|
| Context relevance | Retrieve only | Retrieved passages fit the question. |
| Context coverage | Retrieve only | They cover the ground truth. |
| Citation precision | Retrieve and generate | Cited passages are cited correctly. |
| Citation coverage | Retrieve and generate | The answer is backed by its citations. |
| The quality and responsible AI metrics | Retrieve and generate | Correctness, completeness, helpfulness, logical coherence, faithfulness and the responsible AI metrics, on the final answer. |
1 / 2
Context relevance
- Job
- Retrieve only
- It measures
- Retrieved passages fit the question.
Context coverage
- Job
- Retrieve only
- It measures
- They cover the ground truth.
Citation precision
- Job
- Retrieve and generate
- It measures
- Cited passages are cited correctly.
| Metric | Job | It measures |
|---|---|---|
| Context relevance | Retrieve only | Retrieved passages fit the question. |
| Context coverage | Retrieve only | They cover the ground truth. |
| Citation precision | Retrieve and generate | Cited passages are cited correctly. |
2 / 2
Citation coverage
- Job
- Retrieve and generate
- It measures
- The answer is backed by its citations.
The quality and responsible AI metrics
- Job
- Retrieve and generate
- It measures
- Correctness, completeness, helpfulness, logical coherence, faithfulness and the responsible AI metrics, on the final answer.
| Metric | Job | It measures |
|---|---|---|
| Citation coverage | Retrieve and generate | The answer is backed by its citations. |
| The quality and responsible AI metrics | Retrieve and generate | Correctness, completeness, helpfulness, logical coherence, faithfulness and the responsible AI metrics, on the final answer. |
是什么
In an Amazon Bedrock judge job, an evaluator model scores each answer on metrics you pick. You can also define your own. Eight metrics measure quality: correctness, completeness, faithfulness, helpfulness, logical coherence, relevance, following instructions, and professional style and tone. Three measure responsible AI: harmfulness, stereotyping and refusal.
Two are easy to mix up. Correctness asks if the answer is right. Completeness asks if it answers every part of the prompt. An answer can be correct but incomplete. Faithfulness asks if the answer stays within the given context, so it is the hallucination check.
是什么
RAG jobs add retrieval metrics. A retrieve-only job scores context relevance (are the passages on topic) and context coverage (do they hold what the answer needs, which requires a ground truth). A retrieve-and-generate job scores the final answer with some of the metrics above: correctness, completeness, helpfulness, logical coherence and faithfulness, plus harmfulness, stereotyping and refusal. It adds citation precision and citation coverage. Relevance, following instructions, and professional style and tone are only for model jobs.
要记住
- Correctness: is the answer right. Completeness: does it answer every part of the prompt.
- Faithfulness: sticks to the given context. Relevance: stays on the question.
- Also quality: helpfulness, logical coherence, following instructions, professional style and tone.
- Responsible AI: harmfulness, stereotyping, refusal.
要记住
- RAG: context relevance and coverage for retrieval. Citation precision and coverage for the answer.
考试中
- “Does the answer address every question in the prompt” points to completeness.
- “The answer contains facts that are not in the source” points to low faithfulness.
- “Do the retrieved passages hold the information in the ground truth” points to context coverage.
别和这些弄混
- LLM-as-a-judgeOne model grades another model's answers, with scores and reasons.
- Amazon Bedrock Model EvaluationRun automatic, human or LLM-as-a-judge evaluation jobs on models, and evaluate knowledge bases.
- Evaluating RAG, agents and workflowsTest each part of an FM application: retrieval, generation, agent actions and the whole workflow.