Lesson 1 of 3 Evaluating Foundation Models

Evaluating Foundation Models with Automatic, Human and LLM-as-a-Judge Methods

This lesson explains why foundation models, and the applications built on them, need systematic evaluation, both to choose a model and to check quality before and after launch.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain why models and applications must be evaluated.
  • Distinguish automatic evaluation, human evaluation and LLM-as-a-judge.
  • Describe what Amazon Bedrock Model Evaluation supports.
  • Identify how agents and workflows are evaluated.

Why evaluate

Models differ in quality, cost and latency for each task, and changing a prompt, model version or knowledge base can make results better or worse. Evaluation replaces "it seems fine" with evidence.

Evaluation approaches

There are three main ways to judge a foundation model's output. Automatic evaluation runs a set of prompts with known reference answers and scores the outputs with metrics such as accuracy, ROUGE, BERTScore, toxicity and robustness. It is fast, cheap and repeatable, so it suits comparing models and catching regressions, but it misses subjective qualities such as tone.

Human evaluation has people rate outputs for helpfulness, correctness, tone or brand voice, or compare two models side by side. It captures nuance that metrics miss, but it is slower and more expensive. LLM-as-a-judge uses a strong model to score outputs against a written rubric, which approximates human judgement at much larger scale and lower cost. The following table summarises the approaches.

ApproachHow it worksStrengths and weaknesses
Automatic (benchmark data sets)Runs prompts with reference answers and scores outputs with metrics such as accuracy, ROUGE, BERTScore, toxicity and robustnessFast, cheap and repeatable; misses subjective qualities
Human evaluationPeople rate helpfulness, correctness, tone, brand voice or style, or compare models side by sideCaptures nuance; slower and more expensive
LLM-as-a-judgeA strong model scores outputs against a rubricApproximates human judgement at scale and low cost

Public benchmarks measure general capability; your own task-specific data set measures real performance.

Sort into groups

Which evaluation approach?

Exam skills 3.4.1

Decide which approach suits each evaluation need.

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

Amazon Bedrock Model Evaluation

Amazon Bedrock Model Evaluation supports several methods of assessing models. The following list describes them.

  • Automatic evaluations on built-in data sets or your own prompts.
  • Human evaluations with your team or an AWS-managed workforce.
  • LLM-as-a-judge with metrics such as correctness, completeness, harmfulness and faithfulness.
  • RAG evaluation for Knowledge Bases: retrieval quality (context relevance and coverage) and generation quality (correctness, faithfulness, citation quality).

SageMaker Clarify can also evaluate foundation models.

Sort into groups

Evaluating a RAG application

Exam skills 3.4.4

Bedrock evaluates a knowledge base's retrieval and its generation separately. Place each measure in the right part.

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

Evaluating agents

Agents and workflows are evaluated on task completion, on whether they select the right tools with the right parameters, and on steps, safety, latency and cost, using agent traces and test scenarios. Keep evaluating after launch through user feedback and monitoring.

Select all that apply

Evaluating an agent

Exam skills 3.4.4 · 3.4.5

A team is evaluating an agent that books meeting rooms.

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

Choosing a model for a support assistant

A company shortlists three models for its support assistant and evaluates them on 200 real past questions with approved answers:

Model A (large)
Correctness (LLM-as-a-judge)92%
Tone matches brand (human reviewers)4.5 / 5
Average latency2.8 s
Cost per 1,000 answers$9.00
Model B (medium)
Correctness (LLM-as-a-judge)89%
Tone matches brand (human reviewers)4.4 / 5
Average latency1.1 s
Cost per 1,000 answers$1.40
Model C (small)
Correctness (LLM-as-a-judge)71%
Tone matches brand (human reviewers)3.6 / 5
Average latency0.6 s
Cost per 1,000 answers$0.30

Model C is cheapest but not good enough. Model A is best, but only slightly better than Model B at more than six times the cost and with slower answers. The company chooses Model B. Bedrock Model Evaluation ran the automatic and LLM-as-a-judge scoring; a small team of support agents performed the human tone evaluation, which no automatic metric captures well.

Check yourself

What is LLM-as-a-judge?

Show answer

Using a model to score another model's outputs against criteria such as correctness or helpfulness. It scales faster and costs less than human review.

Exam Tips

Remember for the exam

  • To compare candidate models on your own prompts, use Bedrock Model Evaluation.
  • Subjective qualities such as tone, brand voice and helpfulness call for human evaluation.
  • Scalable, rubric-based scoring that approximates human judgement is LLM-as-a-judge.
  • Evaluate a RAG application's retrieval and generation separately.
  • Evaluate agents on task completion and on the correctness of their tool use.