Study FAQ
When should I use a rule, a model judge or an external service to evaluate AI output?
Also asked as 2
- How do I choose a Foundry evaluation approach for a domain-specific rule?
- Should I check an AI requirement with a fixed rule, an LLM judge or my own scoring service?
Answer
Choose a deterministic rule for an exact contract, a model judge for a semantic or subjective criterion, and an external evaluator when scoring needs external data or infrastructure. Foundry lets you combine standard measures with application-specific checks.
A required field or allowed value can be checked directly. A rule can verify that an escalation code is present, while a judge can assess whether the answer applies the escalation policy correctly. Define the required evidence and expected decisions for each check.
For a Foundry implementation, a prompt-based judge can score a focused criterion. A code-based evaluator runs self-contained Python in a sandbox with no network access. An endpoint-based evaluator calls scoring infrastructure that you control, so check its authentication, reachability and handling of failures. Those three implementations are documented as preview. Microsoft documents separate rubric options with their own support status, including safety and task-level rubrics marked preview.
Give each check a defined output and record execution errors separately. The application release policy determines how to act on each result.
Microsoft Learn
Full explanation
AI-300: Choosing Quality, Safety, and Custom Evaluation Gates
Study guide · AI-300
Read the full explanation