Overview
AI Metric Generation lets you automatically create evaluation metrics from your product’s specifications. Instead of manually crafting judge prompts and configuring evaluation parameters, the AI analyzes your specifications and generates ready-to-use metrics.Evaluation parameters are automatically selected based on each specification’s description and test type. The generated judge prompt follows a format optimized for reliable LLM-based evaluation across different evaluator models.
Requirements
- A product with a description
- At least one specification of type POLICY with a test type assigned (Accuracy, Security, or Behavior)
How to Generate Metrics
There are two ways to trigger AI metric generation from the dashboard:From the Specifications Page
- Navigate to your product’s Specifications tab
- Open the dropdown menu on the specification you want to generate metrics for
- Click Generate Metrics — this takes you to the generation page with that specification pre-selected
- Click Generate and wait for the AI to process
- Review the generated candidates — edit, save, or discard each one
From the Metrics Page
- Navigate to your product’s Metrics tab
- Click Generate Metrics with AI
- Select the specifications you want to generate metrics for
- Click Generate and wait for the AI to process
- Review the generated candidates — edit, save, or discard each one
Complete a Metric with AI
When you already know what you want to measure but don’t want to write the judge prompt by hand, use Complete with AI. You provide the metric’s name, description, and evaluation type as the source of truth, and the AI fills in the rest: the judge prompt and the evaluation parameters (plus a recommended evaluator model for AI Evaluation). This is available in two places:- The manual metric form — when creating a metric from scratch (Metrics tab → New Metric → blank), fill in the name, description, and evaluation type, then click Complete with AI.
- The AI generation review step — when editing a generated candidate, click Complete with AI to regenerate its judge prompt and evaluation parameters from the candidate’s current name, description, and tags.
Your name, description, and tags are never modified — they are the inputs the AI completes from. If you have already written a judge prompt, the dashboard asks for confirmation before replacing it.
- For AI Evaluation, it produces a binary LLM-judge prompt and recommends an evaluator model.
- For Human Evaluation, it produces annotator guidelines on a 0–100 scoring scale (no evaluator model, since a human assigns the score).
Evaluation Parameter Selection
In both spec-driven generation and completion mode, the AI automatically selects the evaluation parameters each metric needs. In spec mode these are inferred from the specification description; in completion mode they are inferred from the metric description you provided. For example:- A specification about citation accuracy or knowledge-grounded answers will include
retrieval_contextso the judge can verify answers against retrieved source material. - A specification about internal processes, workflows, or tool orchestration will include
traces(and oftentools_used) so the judge can inspect the execution path — not just the final output. - A specification about refusal or safety boundaries typically only needs
inputandactual_output, since compliance is fully observable from what was asked and answered.