သဘောတရား · AIF-C01 အပေါ် ဆက်လေ့လာရန်
LLM-as-a-judge and AI output assessment
Choose the judge model, write the rubric and rating scale, and check the judge against human ratings.
ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။
AI Practitioner မှ သင်သိပြီးသားများ
- A judge model scores answers against a rubric and gives a reason.
- The judge can be biased or wrong, so check a sample against human ratings.
- 1Write the rubric and a rating scale.
- 2Send the model answers to the judge.
- 3The judge returns a score and a reason.
- 4Compare the scores with human ratings on a sample.
Length
- What happens
- Longer answers score higher
- What helps
- A rubric that ignores length
Self-preference
- What happens
- Prefers its own style
- What helps
- A judge from another family
Position
- What happens
- Prefers the first of two
- What helps
- Swap the order and average
No reference
- What happens
- Misses wrong facts
- What helps
- Add a reference answer
| Bias | What happens | What helps |
|---|---|---|
| Length | Longer answers score higher | A rubric that ignores length |
| Self-preference | Prefers its own style | A judge from another family |
| Position | Prefers the first of two | Swap the order and average |
| No reference | Misses wrong facts | Add a reference answer |
1 / 2
Length
- What happens
- Longer answers score higher
- What helps
- A rubric that ignores length
Self-preference
- What happens
- Prefers its own style
- What helps
- A judge from another family
Position
- What happens
- Prefers the first of two
- What helps
- Swap the order and average
| Bias | What happens | What helps |
|---|---|---|
| Length | Longer answers score higher | A rubric that ignores length |
| Self-preference | Prefers its own style | A judge from another family |
| Position | Prefers the first of two | Swap the order and average |
2 / 2
No reference
- What happens
- Misses wrong facts
- What helps
- Add a reference answer
| Bias | What happens | What helps |
|---|---|---|
| No reference | Misses wrong facts | Add a reference answer |
ဘာလဲ
A Bedrock judge job needs two models: a generator (or your saved answers) and an evaluator. Supported evaluators differ for built-in and custom metrics, so check your Region first. Cross-Region inference profiles work. Pick a judge at least as strong as the model it grades, and from another model family when you can, to reduce self-preference. A stronger judge costs more per prompt.
ဘာလဲ
Built-in metrics cover quality (correctness, completeness, faithfulness, helpfulness, logical coherence, relevance, following instructions, professional style and tone) and responsible AI (harmfulness, stereotyping, refusal). Correctness and completeness use a referenceResponse if the dataset has one, and still run without it. Faithfulness checks the answer against the information in the prompt, so it is the hallucination check.
ဘာလဲ
Custom metrics cover what built-ins miss, such as brand voice. A job can have up to 10. A custom prompt has an optional role, the task, an optional rubric, and the input variables last: prompt, prediction (the answer) and ground_truth (the reference). The whole prompt is at most 5,000 characters. Also define a rating scale (an output schema) with numbers or strings, not both. Each value has a definition of at most five words that matches your rubric. Without a scale, Bedrock may not parse the judge output to chart or average scores.
ဘာလဲ
Calibrate the judge: have people rate a sample of the same answers and compare by percent agreement or correlation. If agreement is low, tighten the rubric, add a reference answer or change the judge, and test again, also after any judge change. For bias checks, add the category key to the dataset so scores are reported per category, and use harmfulness, stereotyping and refusal. A judge job is a screen, not proof. Keep people for high-stakes cases.
မှတ်ထားရန်
- Custom metric: up to 10 per job, prompt up to 5,000 characters, input variables last.
- Rating scale: each definition at most five words and 100 characters.
- Calibrate: compare judge scores with human ratings on a sample.
စာမေးပွဲမှာ
- “Score answers on brand voice, which no built-in metric covers” points to a custom metric with a rating scale.
- “The judge keeps preferring longer answers” points to judge bias, handled with a clearer rubric and a check against human ratings.
- “Detect answers that go beyond the supplied context” points to the faithfulness metric.
ဒါတွေနဲ့ မရောပါနဲ့
- 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.
- NLP and text-generation metricsBLEU, ROUGE, BERTScore, semantic similarity and perplexity: what each compares and which need a reference text.
- 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