ladderlore
ガイドをリクエスト
  • S3 や IAM などのサービス名を入力してください。

概念 · AIF-C01 の発展

LLM-as-a-judge and AI output assessment

Choose the judge model, write the rubric and rating scale, and check the judge against human ratings.

このレッスンはまだ翻訳されていないため、英語で表示しています。

AI Practitionerで学んだこと

  • A judge model scores answers against a rubric and gives a reason.
  • The judge can be biased or wrong, so check a sample against human ratings.
AI Practitionerのレッスンを読む
Rubric prompt
Evaluator model
Scores and reasons
Model answers
Human check
  1. 1Write the rubric and a rating scale.
  2. 2Send the model answers to the judge.
  3. 3The judge returns a score and a reason.
  4. 4Compare the scores with human ratings on a sample.
The judge scores answers against your rubric, and people check the scores.
  • Length

    What happens
    Longer answers score higher
    What helps
    A rubric that ignores length
  • Self-preference

    What happens
    Prefers its own style
    What helps
    A judge from another family
  • Position

    What happens
    Prefers the first of two
    What helps
    Swap the order and average
  • No reference

    What happens
    Misses wrong facts
    What helps
    Add a reference answer
Common judge biases and the usual fix.

1 / 2

  • Length

    What happens
    Longer answers score higher
    What helps
    A rubric that ignores length
  • Self-preference

    What happens
    Prefers its own style
    What helps
    A judge from another family
  • Position

    What happens
    Prefers the first of two
    What helps
    Swap the order and average

2 / 2

  • No reference

    What happens
    Misses wrong facts
    What helps
    Add a reference answer
Common judge biases and the usual fix.

概要

A Bedrock judge job needs two models: a generator (or your saved answers) and an evaluator. Supported evaluators differ for built-in and custom metrics, so check your Region first. Cross-Region inference profiles work. Pick a judge at least as strong as the model it grades, and from another model family when you can, to reduce self-preference. A stronger judge costs more per prompt.

概要

Built-in metrics cover quality (correctness, completeness, faithfulness, helpfulness, logical coherence, relevance, following instructions, professional style and tone) and responsible AI (harmfulness, stereotyping, refusal). Correctness and completeness use a referenceResponse if the dataset has one, and still run without it. Faithfulness checks the answer against the information in the prompt, so it is the hallucination check.

概要

Custom metrics cover what built-ins miss, such as brand voice. A job can have up to 10. A custom prompt has an optional role, the task, an optional rubric, and the input variables last: prompt, prediction (the answer) and ground_truth (the reference). The whole prompt is at most 5,000 characters. Also define a rating scale (an output schema) with numbers or strings, not both. Each value has a definition of at most five words that matches your rubric. Without a scale, Bedrock may not parse the judge output to chart or average scores.

概要

Calibrate the judge: have people rate a sample of the same answers and compare by percent agreement or correlation. If agreement is low, tighten the rubric, add a reference answer or change the judge, and test again, also after any judge change. For bias checks, add the category key to the dataset so scores are reported per category, and use harmfulness, stereotyping and refusal. A judge job is a screen, not proof. Keep people for high-stakes cases.

覚えること

  • Custom metric: up to 10 per job, prompt up to 5,000 characters, input variables last.
  • Rating scale: each definition at most five words and 100 characters.
  • Calibrate: compare judge scores with human ratings on a sample.

試験では

  • “Score answers on brand voice, which no built-in metric covers” points to a custom metric with a rating scale.
  • “The judge keeps preferring longer answers” points to judge bias, handled with a clearer rubric and a check against human ratings.
  • “Detect answers that go beyond the supplied context” points to the faithfulness metric.