Lesson 3 of 3 Evaluating Foundation Models

Building an Evaluation Plan for a Generative AI Application

This lesson explains how an evaluation plan defines what good looks like and how it is measured, before and after launch. The choice of model, prompt or RAG configuration should rest on evidence from your own use case, not general benchmarks alone.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe the steps of an evaluation plan.
  • Identify what to measure for each kind of use case.
  • Explain why evaluation on your own data outweighs public benchmarks.

Steps

A generative AI application should be evaluated systematically before it is deployed. The evaluation consists of the following steps.

  1. Define success criteria

    Agree them with the business: accuracy, tone, safety, latency, cost per request.

  2. Build a prompt dataset

    Collect realistic inputs, including edge cases and inputs that should be refused, with reference answers where possible.

  3. Choose methods

    Automatic metrics for overlap with references, LLM-as-a-judge for qualities such as correctness and helpfulness, human evaluation for subjective or high-stakes outputs.

  4. Compare candidates

    Compare models, prompts and RAG settings on the same dataset with Amazon Bedrock model evaluation.

  5. Keep evaluating

    After launch, track business metrics and user feedback, and rerun the evaluation whenever the model, prompt or data changes.

Put in order

An evaluation plan

Exam skills 3.4.1

Put the steps of an evaluation plan for a generative AI application in order.

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

What to measure for each use case

What to measure depends on what the system is for. A summarisation system is judged by ROUGE, by faithfulness to the source and by whether it covers the key points. A translation system is judged by BLEU and by human ratings of fluency. Question answering with RAG is judged by whether the right documents were retrieved, whether the answer is correct and whether its citations are accurate. A classification model is judged by accuracy, precision, recall and F1.

A chat assistant is judged by helpfulness, avoidance of harmful content, refusal of requests outside its scope and user satisfaction. Every production system should also be measured on latency, cost per request and business results, such as task completion or conversion rate. The following table summarises the measures.

Use caseUseful measures
SummarisationROUGE, faithfulness to the source, coverage
TranslationBLEU, human fluency ratings
Question answering with RAGRetrieval relevance, answer correctness, citation accuracy
ClassificationAccuracy, precision, recall, F1
Chat assistantsHelpfulness, harmfulness, refusal of out-of-scope requests, user satisfaction
Any production systemLatency, cost per request, task completion or conversion rate
Match the pairs

What to measure

Exam skills 3.4.2 · 3.4.4

Match each use case with the measures that suit it.

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

A company must choose between two foundation models for answering customer questions from its product manuals. Public benchmark scores favour model A. What should the company do?

Evaluate both models on a dataset of its own customer questions with reference answers, using Bedrock model evaluation (for example LLM-as-a-judge for correctness plus a human review sample), and compare cost and latency. Public benchmarks may not reflect its domain.

Check yourself

Why should the evaluation be run again after launch?

Show answer

Models, prompts and data change, and quality can drop. Rerunning the evaluation on the same dataset shows whether a change helped or harmed.

Exam Tips

Remember for the exam

  • Define success criteria with the business before choosing a model.
  • Evaluate on your own prompt dataset, including edge cases.
  • Combine automatic metrics, LLM-as-a-judge and human evaluation.
  • Bedrock model evaluation compares models and RAG configurations.
  • Keep evaluating after launch with business metrics and feedback.