Skip to content

Set Up AI Evaluations

⏱ 20 minutes advanced
πŸ“œAdvancedOpal

An agent that works well once does not guarantee consistent quality over time. As prompts change, tools update, and instructions evolve, output quality can drift. Without measurement, you only discover problems when a team member notices a bad result.

AI evaluations (evals) in Opal provide a structured method for assessing output quality automatically. You define what β€œgood” looks like by selecting preferred output examples, and Opal scores every subsequent execution against those benchmarks. This closes the gap between building an agent and maintaining it.

Opal evaluations measure three dimensions:

  • Quality β€” Is the generated content accurate, relevant, and complete?
  • Consistency β€” Does the output follow brand guidelines, tone, and formatting requirements?
  • Improvement β€” Does the scoring data provide actionable feedback for refining agent prompts and configurations?

A preferred output example is a specific, high-quality output from an agent execution that you designate as a benchmark. These examples represent the gold standard β€” the tone, accuracy, structure, and depth you want the agent to reproduce.

Once you establish preferred outputs, every subsequent execution receives an automated quality score (0-100) based on how closely it matches those benchmarks.

  1. Navigate to Opal > Agents
  2. Click the agent name or select More (…) > Edit Agent
  3. Click Add example
  4. Enter:
    • Name β€” A descriptive label for this example
    • Input variables β€” The values used to generate this output
    • Output β€” Paste the high-quality output you want as the benchmark
  5. Click Add

You can add up to five preferred output examples per agent.

  1. Navigate to Opal > Agents
  2. Select the agent and open the Logs tab
  3. Find an execution whose output meets your quality standards
  4. Click More (…) and select Link as Output Eval

This method is often faster because you select from outputs the agent has already produced, rather than crafting examples from scratch.

  • Add at least three varied examples β€” A single example does not capture the full range of expected quality. Include examples with different input variables, content types, and output lengths.
  • Use real use cases β€” Examples from actual work are more meaningful benchmarks than synthetic test cases.
  • Select outputs that truly represent ideal outcomes β€” Do not settle for β€œgood enough.” The preferred output sets the standard.

After you establish preferred outputs, Opal automatically scores subsequent executions on three criteria:

CriterionWhat it measures
Completeness and scopeWhether the response addresses all necessary components
Structural and format consistencyAdherence to formatting conventions and output structure
Overall usefulness and adherencePractical utility and achievement of the stated objective
ScoreRatingMeaning
90-100ExcellentMeets or exceeds expectations
80-89GoodMinor, non-critical deviations only
70-79AdequateSome notable issues present
60-69Needs improvementSignificant structural or factual differences
0-59PoorMajor errors or missing objectives

The quality baseline is the minimum acceptable score. Outputs meeting or exceeding this threshold receive a Passed designation. Outputs below it receive a Failed designation.

Set your baseline based on your organization’s tolerance for variation:

  • High-stakes content (legal, financial, healthcare) β€” Set 85-90 as the baseline
  • Marketing content β€” Set 75-80 as the baseline
  • Internal drafts β€” Set 65-70 as the baseline

Quality scores are not just pass/fail indicators. Use them to drive continuous improvement:

  1. Identify underperforming outputs β€” Filter execution logs by score to find patterns in low-scoring results
  2. Analyze discrepancies β€” Compare failed outputs against preferred examples to understand where the agent diverges
  3. Refine agent prompts β€” Adjust instructions for clarity, add constraints for common failure modes, or provide additional context
  4. Update preferred outputs β€” As your brand, products, or standards evolve, refresh preferred outputs to reflect current expectations
  5. Build evaluation agents β€” Create specialized agents whose purpose is to critique other agents’ outputs against predefined criteria (grammar, SEO, brand voice), creating iterative feedback loops