List Metric Collections
GEThttps://api.confident-ai.com/v1/metric-collections
Lists all the available metric collections in your Confident AI project, each with the metrics inside it. Fetch a single collection for its sampling and transformer configuration.
curl -X GET "https://api.confident-ai.com/v1/metric-collections" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"metricCollections": [
{
"id": "COLLECTION-ID",
"name": "Collection Name",
"multiTurn": false,
"metricsSettings": [
{
"metric": {
"id": 1,
"name": "Faithfulness"
},
"activated": true,
"threshold": 0.5,
"sampleRate": 1
}
]
}
]
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Response
The metric collections in your project.
successbooleanThis is true if the list of metric collections was retrieved successfully.
dataobjectThis maps to a list of metric collections, which can be used to run evals remotely.
Show 1 propertyHide 1 property
metricCollectionslist of objectsThis is a list of metric collection objects.
Show 4 propertiesHide 4 properties
idstringThis is the id of the metric collection.
namestringThis is the name of the metric collection, which should be supplied to the evals API to run evaluations remotely.
multiTurnbooleanThis is true if the metric collection is a multi-turn collection, which only contains multi-turn metrics for multi-turn evaluations.
metricsSettingslist of objectsThe metrics in the collection, with the settings that decide whether and how each one runs.
Show 4 propertiesHide 4 properties
metricobjectThis is a metric object, which contains the metric id and name.
Show 2 propertiesHide 2 properties
idintegerThis is the id of the metric.
namestringThis is the name of the metric.
activatedbooleanThis is true if the metric is activated. Only activated metrics are used for evaluations. Non-activated metrics are skipped.
thresholdnumberThis is the threshold for the metric, which determines if the metric passes or fails depending on if the metric score is above or below the threshold.
sampleRatenumberThis is the probability of the metric being ran for evaluation.