Update an existing Metric. You must specify the evalType and outputType of the metric. The structure of a metric depends on the evalType and outputType of the metric.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the Metric to update.
"321"
A Metric with AI evaluation and integer output.
AI-based evaluation type.
"ai"Integer output type.
"int"The name of the Metric.
The description of the Metric.
Guidelines for AI evaluation on how to score the metric.
The complete prompt template for AI evaluation. Should include placeholders for dynamic content.
The AI model to use for evaluation.
The temperature for AI evaluation (0-2).
0 <= x <= 2The threshold for determining pass/fail from integer scores (1-5).
1 <= x <= 5Metric updated successfully
A Metric defines how to evaluate system outputs against expected results.
The ID of the Metric.
The name of the Metric.
The description of the Metric.
AI-based evaluation type.
"ai"Guidelines for AI evaluation on how to score the metric.
The complete prompt template for AI evaluation. Should include placeholders for dynamic content.
The AI model to use for evaluation.
The temperature for AI evaluation (0-2).
0 <= x <= 2Integer output type.
"int"The threshold for determining pass/fail from integer scores (1-5).
1 <= x <= 5