သဘောတရား · 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.
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
| Job type | Scored by | Dataset needs |
|---|---|---|
| Automatic | Built-in algorithms | Prompts and reference answers |
| Judge | Evaluator model | Prompts, reference optional |
| Human | Your team or an AWS team | Prompts, up to two models |
| RAG | Evaluator model | Questions and ground truth |
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
| Job type | Scored by | Dataset needs |
|---|---|---|
| Automatic | Built-in algorithms | Prompts and reference answers |
| Judge | Evaluator model | Prompts, reference optional |
| Human | Your team or an AWS team | Prompts, up to two models |
2 / 2
RAG
- Scored by
- Evaluator model
- Dataset needs
- Questions and ground truth
| Job type | Scored by | Dataset needs |
|---|---|---|
| RAG | Evaluator model | Questions and ground truth |
- 1Upload the JSONL dataset to S3.
- 2Pick a Bedrock model, or supply your own responses.
- 3The job scores the answers and writes the output.
- 4Compare the job with another run.
ဘာလဲ
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.
ဒါတွေနဲ့ မရောပါနဲ့
- LLM-as-a-judge and AI output assessmentChoose the judge model, write the rubric and rating scale, and check the judge against human ratings.
- Human evaluation and human-in-the-loopPeople rate model output in Bedrock evaluation jobs, or review uncertain predictions in a human-in-the-loop workflow.
- Evaluating RAG retrieval and answersScore the search and the answer separately on a fixed set of golden questions, and keep watching over time.
ဒီ task ထဲမှာ · 2.3
- Experiment tracking: managed MLflow
- Amazon Bedrock evaluations
- Performance baselines and drift detection
- Shadow variants and A/B tests
- Explaining model outputs
- Debugging model convergence
- Evaluating traditional ML models
- NLP and text-generation metrics
- Human evaluation and human-in-the-loop
- LLM-as-a-judge and AI output assessment
- Evaluating RAG retrieval and answers