List Collections
GEThttps://api.confident-ai.com/v2/metric-collections
Lists all the metric collections in your Confident AI project, each with the metrics inside it.
curl -X GET "https://api.confident-ai.com/v2/metric-collections" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"metricCollections": [
{
"id": "<METRIC-COLLECTION-ID>",
"name": "RAG Quality",
"multiTurn": false,
"sampleRate": 1,
"inputTransformerId": "<TRANSFORMER-ID>",
"outputTransformerId": null,
"metricsSettings": [
{
"metric": {
"id": 1,
"name": "Answer Relevancy"
},
"activated": true,
"threshold": 0.8,
"includeReason": true,
"strictMode": false,
"sampleRate": 1,
"evaluationModelProvider": "OPEN_AI",
"evaluationModelName": "gpt-4o"
}
]
}
]
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Response
List Collections succeeded.
successbooleanIndicates if the request was successful.
dataobjectShow 1 propertyHide 1 property
metricCollectionslist of objectsThis is the list of metric collections in your project.
Show 7 propertiesHide 7 properties
idstringThis is the id of the metric collection.
namestringThis is the name of the metric collection, which you supply to the evals API to run evaluations remotely.
multiTurnbooleanWhether this is a multi-turn collection. Multi-turn collections contain only multi-turn metrics and evaluate conversations rather than single test cases.
sampleRatenumberThe share of eligible entities this collection is run against, between 0 and 1. Applied on top of each metric's own
sampleRate.inputTransformerIdstring | nullThe id of the transformer that reshapes the payload before evaluation, or null when the collection does not use one.
outputTransformerIdstring | nullThe id of the transformer that reshapes the result after evaluation, or null when the collection does not use one.
metricsSettingslist of objectsThe metrics in the collection with their settings.
Show 8 propertiesHide 8 properties
metricobjectA metric as it appears inside a collection, by id and name.
Show 2 propertiesHide 2 properties
idintegerThis is the id of the metric.
namestringThis is the name of the metric.
activatedbooleanWhether this metric is activated. Only activated metrics are run during an evaluation.
thresholdnumberThe threshold this metric is scored against. A metric passes when its score is equal to or greater than the threshold.
includeReasonbooleanWhether a written reason explaining the metric's score is generated during evaluation.
strictModebooleanWhether this metric runs in strict mode, which outputs a binary score of 0 or 1 instead of a continuous score.
sampleRatenumberThe probability that this metric is run for any given evaluation, between 0 and 1. Applied on top of the collection's own
sampleRate.evaluationModelProviderenum | nullThis is the provider of the model.
Show 18 enum valuesHide 18 enum values
OPEN_AICUSTOMCONFIDENT_AIBEDROCKANTHROPICGEMINIX_AIDEEPSEEKMOONSHOT_AIVERTEX_AIAZUREMISTRALPERPLEXITYOPEN_ROUTERPORTKEYLITE_LLMTRUE_FOUNDRYHUGGING_FACE
evaluationModelNamestring | nullThe name of the model this metric is evaluated with, or null when the project's default evaluation model is used.
deprecatedbooleanIndicates if this endpoint is deprecated.