Evaluate Trace
POSThttps://api.confident-ai.com/v2/evaluate/traces/{traceUuid}
Queues an evaluation of a trace against the metrics in metricCollection. The evaluation runs in the background, and its results are stored on the trace, so fetch the trace to read them once it has finished.
curl -X POST "https://api.confident-ai.com/v2/evaluate/traces/{traceUuid}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>" \
-H "Content-Type: application/json" \
-d '{
"metricCollection": "Collection Name",
"overwriteMetrics": false
}'{
"success": true,
"data": {
"id": "<TRACE-UUID>"
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
traceUuidstringRequiredThe unique identifier of the trace.
Request body
metricCollectionstringRequiredThe name of the single-turn metric collection you wish to use for evaluation.
overwriteMetricsbooleanSet this to true to re-run every metric in the collection and replace the results already stored, and omit this field to keep those results and only run the metrics that have none yet.
Response
Evaluate Trace succeeded.
successbooleanIndicates if the request was successful.
dataobjectThe trace whose evaluation was queued.
Show 1 propertyHide 1 property
idstringThis is the uuid of the trace the evaluation was queued for.
deprecatedbooleanIndicates if this endpoint is deprecated.