Custom evaluators (preview)

Important

Items marked preview in this article are currently in preview. This preview is provided without a service-level agreement, and Microsoft doesn't recommend it for production workloads. Certain features might not be supported or might have constrained capabilities. For more information, see Supplemental Terms of Use for Microsoft Azure Previews.

Microsoft Foundry evaluators measure the quality, safety, and reliability of your AI models and agents. Start with built-in evaluators for fast, standard coverage. Add custom evaluators to tailor measurements to your model or agent's domain, goals, and expected behavior. This article helps you choose the right combination without repeating the full evaluator catalog.

Start with built-in evaluators

For most quick starts and standard quality, safety, retrieval-augmented generation (RAG), and agent checks, use built-in evaluators. They require no custom code or hosting, cover the most common evaluation needs, and are the fastest way to get a working evaluation:

  • Quality: Coherence, fluency, and textual similarity metrics such as F1 score, BLEU, and ROUGE.
  • Safety: Hate and unfairness, sexual, violence, self-harm, protected materials, and other risk and safety checks.
  • RAG: Retrieval, groundedness, and relevance evaluators for retrieval-augmented applications.
  • Agent: Start with Task Completion to measure whether the agent completed its goal. Add Task Adherence, Tool Call Accuracy, Intent Resolution, and other agent evaluators as needed.

Run one or more built-in evaluators together to cover multiple dimensions of quality in a single evaluation. For the full list, see Built-in evaluators reference.

Combine built-in and custom evaluators in one evaluation

Built-in and custom evaluators aren't an either/or choice. A single evaluation run can include both, so you get standard coverage plus measurements tailored to your application. For example, an agent evaluation might combine built-in task adherence and risk and safety evaluators with a custom rubric evaluator that scores your agent against your business rules.

Customize measurements with custom evaluators

Use custom evaluators to measure criteria specific to your model, agent, domain, or application. Choose the custom evaluator based on how you need to score responses:

  • Rubric evaluators: Use for LLM-as-judge scoring against domain-specific or organization-specific criteria, such as customer support tone, medical accuracy, or policy compliance. Rubric evaluators are the recommended starting point for new custom LLM-as-judge scoring needs, because you can auto-generate a rubric from your agent's context and refine it without writing code. See Rubric evaluators.
  • Prompt-based evaluators (preview): Use for a focused evaluation criterion that you want to define directly in a single judge prompt. For example, evaluate whether a tutor guides a student without revealing the answer too early, or whether shopping recommendations favor repairability and longevity. See Other custom evaluators.
  • Endpoint-based evaluators (preview): Use when scoring requires custom code, external data sources, or an evaluation service or scoring API that your organization already uses. See Endpoint-based evaluators (preview).

Code-based evaluators remain viable if you're maintaining an existing evaluator or your scenario is constrained to a self-contained scoring function with no network access. See Other custom evaluators.

Decision table

Your need Recommended evaluator Why
Quick start, or standard quality, safety, RAG, or agent checks Built-in evaluators Ready-to-use, validated metrics with no custom code or hosting required.
Standard coverage plus application-specific checks in the same run Built-in and custom evaluators together A single evaluation can mix evaluator types. Combine them instead of choosing only one.
Domain-specific or subjective criteria judged by an LLM (tone, policy compliance, task-specific quality) Rubric evaluators Weighted, custom criteria with an LLM judge. Can auto-generate from agent context.
One specialized agent behavior expressed as a focused judge prompt Prompt-based evaluators (preview) Direct control over one criterion without defining a multidimensional rubric.
Custom code, external data sources, or an existing evaluation service or scoring API Endpoint-based evaluators (preview) Runs on infrastructure you control and can access resources outside the evaluator sandbox.
Maintaining an existing code-based evaluator, or a simple, self-contained scoring function Code-based evaluators (preview) Runs Python scoring logic inside the evaluator sandbox.