ladderlore
请求新指南
  • 输入服务名称,例如 S3 或 IAM。

概念 · 基于 AIF-C01

Amazon Bedrock evaluations

Set up automatic, judge, human and RAG evaluation jobs in Amazon Bedrock, then compare the results.

本课尚未翻译,暂以英文显示。

你在AI Practitioner中已学过

  • A Bedrock evaluation job runs test prompts through a model and produces a report.
  • Job types: automatic metrics, human raters, LLM-as-a-judge, and RAG evaluation of a knowledge base.
阅读AI Practitioner课程
  • Automatic

    Scored by
    Built-in algorithms
    Dataset needs
    Prompts and reference answers
  • Judge

    Scored by
    Evaluator model
    Dataset needs
    Prompts, reference optional
  • Human

    Scored by
    Your team or an AWS team
    Dataset needs
    Prompts, up to two models
  • RAG

    Scored by
    Evaluator model
    Dataset needs
    Questions and ground truth
Each job type has its own scorer and dataset needs.

1 / 2

  • Automatic

    Scored by
    Built-in algorithms
    Dataset needs
    Prompts and reference answers
  • Judge

    Scored by
    Evaluator model
    Dataset needs
    Prompts, reference optional
  • Human

    Scored by
    Your team or an AWS team
    Dataset needs
    Prompts, up to two models

2 / 2

  • RAG

    Scored by
    Evaluator model
    Dataset needs
    Questions and ground truth
Each job type has its own scorer and dataset needs.
Prompt dataset
Evaluation job
Results in S3
Model or own responses
Compare jobs
  1. 1Upload the JSONL dataset to S3.
  2. 2Pick a Bedrock model, or supply your own responses.
  3. 3The job scores the answers and writes the output.
  4. 4Compare the job with another run.
A dataset and a model go in. Results land in S3 and can be compared.

是什么

The job type decides the scorer and the dataset. An automatic job takes one task type (general text generation, summarization, question and answer, or classification) and scores accuracy, robustness and toxicity. The built-in datasets hold 100 prompts each. In a judge job a second model, the evaluator, scores the answers of the generator model on built-in or custom metrics. A human job sends the answers to a work team. A RAG job scores a knowledge base.

是什么

A custom dataset is a JSONL file in S3 with up to 1,000 prompts per job. Each line has a prompt, and optionally a referenceResponse (the ground truth, needed for accuracy) and a category (scores are then reported per category). To score a model that Bedrock does not run, put its answers in the file as modelResponses with a modelIdentifier. Bedrock then skips the model call and scores what you supply. A judge job accepts one model response per prompt. Bedrock can call foundation models, Marketplace models, custom and imported models, prompt routers and models with Provisioned Throughput.

是什么

A knowledge base can be evaluated in two ways. A retrieve-only job scores the passages found. A retrieve-and-generate job also scores the final answer. You can bring the responses of a RAG system outside Bedrock in the same way.

是什么

Results appear as a report in the console and as JSONL files under the S3 output path, in a folder named for the job. Use the compare feature to put jobs side by side after you change a prompt, a model or a RAG setting. For a fair comparison, keep the dataset, the evaluator model and the metrics the same and change one thing at a time. The job runs under an IAM service role that can read the dataset and write the output. Human jobs also need a CORS configuration on the output bucket. Automatic and judge jobs do not.

要记住

  • Automatic: one task type, accuracy, robustness, toxicity. Judge: evaluator model. Human: work team. RAG: knowledge base.
  • Datasets are JSONL in S3, up to 1,000 prompts. Keys: prompt, referenceResponse, category.
  • Built-in datasets hold 100 prompts each.
  • Bring your own responses to score any model, wherever it runs.

要记住

  • A judge job allows up to 10 custom metrics.
  • Results land in S3 as JSONL. The console compares jobs.

考试中

  • “Score answers with a second model and get explanations” points to a judge job.
  • “Evaluate a model that is not hosted in Bedrock” points to bringing your own inference responses.
  • “Check how well a knowledge base finds the right passages” points to a retrieve-only RAG job.