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_uuid: string
prompt_id: number
Returns
curl https://api.digitalocean.com/v2/gen-ai/evaluation_runs/$EVALUATION_RUN_UUID/results/$PROMPT_ID \
-H "Authorization: Bearer $DIGITALOCEAN_ACCESS_TOKEN"
{
"prompt": {
"ground_truth": "example string",
"input": "example string",
"input_tokens": "12345",
"output": "example string",
"output_tokens": "12345",
"prompt_chunks": [
{
"chunk_usage_pct": 123,
"chunk_used": true,
"index_uuid": "123e4567-e89b-12d3-a456-426614174000",
"source_name": "example name",
"text": "example string"
}
],
"prompt_id": 123,
"prompt_level_metric_results": [
{
"error_description": "example string",
"metric_name": "example name",
"metric_value_type": "METRIC_VALUE_TYPE_UNSPECIFIED",
"number_value": 123,
"reasoning": "example string",
"string_value": "example string"
}
]
}
}
Returns Examples
{
"prompt": {
"ground_truth": "example string",
"input": "example string",
"input_tokens": "12345",
"output": "example string",
"output_tokens": "12345",
"prompt_chunks": [
{
"chunk_usage_pct": 123,
"chunk_used": true,
"index_uuid": "123e4567-e89b-12d3-a456-426614174000",
"source_name": "example name",
"text": "example string"
}
],
"prompt_id": 123,
"prompt_level_metric_results": [
{
"error_description": "example string",
"metric_name": "example name",
"metric_value_type": "METRIC_VALUE_TYPE_UNSPECIFIED",
"number_value": 123,
"reasoning": "example string",
"string_value": "example string"
}
]
}
}