Create a new Metric for evaluating system outputs. 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 Project to create the Metric in.
"314"
A Metric with AI evaluation and integer output.
The name of the Metric.
AI-based evaluation type.
"ai"The complete prompt template for AI evaluation. Should include placeholders for dynamic content.
Integer output type.
"int"The description of the Metric.
Guidelines for AI evaluation on how to score the metric.
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 created 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