Lesson 2 of 4 Evaluating FM Outputs

Running Amazon Bedrock Evaluation Jobs

This lesson covers the managed evaluation jobs in Amazon Bedrock for models and RAG systems, with built-in metrics, LLM-as-a-judge scoring and human review, so teams can compare configurations without building their own evaluation infrastructure.

Learning outcomes

After completing this lesson, you will be able to:

  • Run automatic model evaluation jobs.
  • Run LLM-as-a-judge evaluation jobs.
  • Run human evaluation and RAG evaluation jobs.

Automatic model evaluation

Automatic (programmatic) evaluation jobs run a model on a prompt dataset for a task type, such as general text generation, summarisation, question and answer or classification, and compute built-in metrics: accuracy (comparison with reference answers), robustness (how much output changes with small, meaning-preserving perturbations of the input) and toxicity. Jobs can use curated built-in datasets or a custom dataset in S3 in JSON Lines format, with fields for the prompt, the reference response and an optional category for breaking down results.

{"prompt": "Summarize the claim: ...", "referenceResponse": "The policyholder reports ...", "category": "water-damage"}
{"prompt": "Summarize the claim: ...", "referenceResponse": "A rear-end collision ...", "category": "motor"}

LLM-as-a-judge evaluation

LLM-as-a-judge (model as a judge) jobs use an evaluator model to score a generator model's responses. Built-in metrics include correctness, completeness, faithfulness, helpfulness, coherence, relevance, following instructions, professional style and tone, readability, and responsible AI metrics such as harmfulness, stereotyping and refusal. Custom metrics define a judge prompt and rating scale for organization-specific criteria. Each score comes with the judge's explanation. Responses generated outside Bedrock can be evaluated by supplying them in the dataset (bring your own inference responses).

True or false

Judge models

Exam skills 5.1.2

Check three claims about LLM-as-a-judge evaluation in Amazon Bedrock.

Log in to try this activity Interactive activities are free with an account.

Human evaluation and RAG evaluation

Human evaluation jobs send model responses to a work team of the organisation's reviewers through a review interface, with metrics such as thumbs up or down, Likert scales, ordinal ranking or side-by-side comparison of two models, and custom instructions. They suit subjective qualities and calibrating judges.

RAG evaluation jobs evaluate a knowledge base (or responses from any RAG system). Retrieve-only jobs score context relevance and context coverage; retrieve-and-generate jobs also score correctness, completeness, helpfulness, faithfulness, citation precision and citation coverage, and responsible AI metrics. Results for several jobs can be compared in the console to choose chunking, embedding, retrieval and model settings. The following table summarises the job types.

Job typeScores withBest for
AutomaticBuilt-in algorithms: accuracy, robustness, toxicityQuick, repeatable comparisons with references
LLM-as-a-judgeEvaluator model with built-in or custom metricsNuanced quality at scale
HumanYour work teamSubjective quality; judge calibration
RAG (retrieve only)Context relevance and coverageTuning retrieval
RAG (retrieve and generate)Correctness, faithfulness, citations and moreEnd-to-end RAG quality

The following diagram summarises the four kinds of evaluation job.

The kinds of Amazon Bedrock evaluation job. Automatic jobs compute accuracy, robustness and toxicity. LLM-as-a-judge jobs score correctness, completeness, faithfulness, harmfulness and other metrics with an evaluator model. Human jobs use the organisation's reviewers. RAG jobs evaluate retrieval alone or retrieval with generation.
Each panel lists examples, not every available metric.
Sort into groups

Which Bedrock evaluation job?

Exam skills 5.1.2 · 5.1.5

Choose the Amazon Bedrock evaluation job type for each need.

Log in to try this activity Interactive activities are free with an account.
Worked example

Choosing a model for a support assistant

A team must choose between three models for a support assistant, judging correctness, helpfulness, professional tone and harmfulness on 300 real questions, with the least custom tooling.

An LLM-as-a-judge evaluation job per candidate model on a custom JSONL dataset in S3, using the built-in metrics, produces comparable scores with explanations in the console; a small human evaluation job on 50 questions confirms the judge's ranking.

Check yourself

Which evaluation job uses your own reviewers?

Show answer

A human evaluation job with your own work team.

Exam Tips

Remember for the exam

  • Automatic jobs: accuracy, robustness and toxicity on built-in or custom JSONL datasets.
  • LLM-as-a-judge: correctness, completeness, faithfulness, helpfulness, harmfulness and custom metrics.
  • Human jobs use your own work team.
  • RAG jobs: context relevance and coverage; faithfulness and citation precision and coverage.