Retrieve Results
Retrieve Results of an Evaluation Run Prompt
get/v2/gen-ai/evaluation_runs/{evaluation_run_uuid}/results/{prompt_id}
To retrieve results of an evaluation run, send a GET request to /v2/gen-ai/evaluation_runs/{evaluation_run_uuid}/results/{prompt_id}.
Path Parameters
evaluation_run_uuidstring
prompt_idnumber
formatint64
Returns
promptground_truthstringinputstringoutputstringprompt_chunksarray of objectprompt_idnumberprompt_level_metric_resultsarray of APIEvaluationMetricResultAPIEvaluationPrompt
optional
Request example cURL
curl https://api.digitalocean.com//v2/gen-ai/evaluation_runs/$EVALUATION_RUN_UUID/results/$PROMPT_ID \
-H "Authorization: Bearer $GRADIENTAI_API_KEY"200 Example
{
"prompt": {
"ground_truth": "ground_truth",
"input": "input",
"output": "output",
"prompt_chunks": [
{
"chunk_usage_pct": 0,
"chunk_used": true,
"index_uuid": "index_uuid",
"source_name": "source_name",
"text": "text"
}
],
"prompt_id": 0,
"prompt_level_metric_results": [
{
"metric_name": "metric_name",
"number_value": 0,
"string_value": "string_value"
}
]
}
}