Lesson 4 of 6 Evaluating Generative AI

Integrating Human Evaluation and Human-in-the-Loop Review

This lesson explains integrated human evaluation frameworks, during development with Bedrock human evaluation jobs and in production with Amazon Augmented AI, since humans remain the reference for subjective and high-stakes judgements.

Learning outcomes

After completing this lesson, you will be able to:

  • Run human evaluation jobs during development.
  • Add human review to production with Amazon A2I.
  • Design reliable human evaluations.

Human evaluation during development

Bedrock human-based evaluation jobs send model responses to your own work team through a review portal. Reviewers rate responses with methods such as thumbs up or down, Likert scales, ordinal ranking of several models' responses and comparison choices, on metrics you define, such as accuracy, style or brand voice. SageMaker Ground Truth custom labelling workflows support any evaluation task with private, vendor or public workforces, and annotation consolidation across several reviewers.

Human-in-the-loop in production

Amazon Augmented AI (A2I) adds human review to production predictions. A human review workflow defines a worker task template, a work team and activation conditions, such as a confidence score below a threshold or a random sample for auditing. A2I integrates natively with Textract and Rekognition and works with custom models and FMs through its API. Reviewed results are stored in S3 and can become new training labels, closing the loop. For agents, human approval steps for high-impact actions are another form of human in the loop.

The following diagram shows how drafts of hospital discharge summaries generated by a model are routed to clinicians for review.

Human review of discharge summaries in production. An LLM judge scores each draft's faithfulness to the patient record; A2I routes drafts scoring below 0.9, plus a 5% random sample, to a clinician; other drafts proceed; and clinician corrections become data for the next fine-tuning round.
The scenario is illustrative.
Scenario questions

People in the loop

Exam skills 2.3.7

Choose how to include human review during development and in production.

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

Designing a reliable human evaluation

Human evaluation is only as reliable as its design. Reviewers need clear guidelines with examples for each score, and training before they start. Each item is rated by several reviewers, and inter-rater agreement is measured to check that the guidelines are being applied consistently. Reviewers are blinded to which model produced each response, and the order is randomised, so that expectations do not bias the scores.

Because human evaluation is slow and expensive, it is used strategically: to calibrate automated judges, to make final release decisions and to review samples of production traffic. The following table summarises the tools.

NeedTool
Rate and compare FM responses before releaseBedrock human-based evaluation job
Custom evaluation or labelling tasks with any workforceSageMaker Ground Truth
Human review of low-confidence production predictionsAmazon A2I
Approval before an agent takes an actionAgent return of control or workflow approval step
True or false

Reliable human ratings

Exam skills 2.3.7

Check the practices that make human ratings reliable.

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

Medical summaries

A hospital uses an FM to draft discharge summaries. Clinical accuracy must be assured, but clinicians cannot review every draft in full.

  • Before release, a Bedrock human evaluation job has three clinicians rate 300 drafts for accuracy and completeness on a 5-point Likert scale.
  • In production, an LLM judge scores each draft's faithfulness to the patient record; A2I routes drafts scoring below 0.9, plus a 5% random sample, to a clinician.
  • Clinician corrections are saved and used for the next fine-tuning round.

The combination focuses expensive human time on risky drafts while the random sample keeps the automated judge honest.

Check yourself

Which service sends low-confidence production predictions to human reviewers?

Show answer

Amazon Augmented AI (A2I), with activation conditions such as a confidence threshold.

Exam Tips

Remember for the exam

  • Rate FM responses with your own experts: Bedrock human-based evaluation.
  • Human review of low-confidence production predictions: Amazon A2I.
  • A2I activation conditions: confidence thresholds or random sampling.
  • Measure inter-rater agreement and blind reviewers to the model.
  • Human corrections can become new training labels.