Skip to main content

evaluation_metrics

Creates, updates, deletes, gets or lists an evaluation_metrics resource.

Overview

Nameevaluation_metrics
TypeResource
Iddigitalocean.genai.evaluation_metrics

Fields

The following fields are returned by SELECT queries:

A successful response.

NameDatatypeDescription
metric_namestring (example: example name)
descriptionstring (example: example string)
invertedbooleanIf true, the metric is inverted, meaning that a lower value is better.
metric_typestring (default: METRIC_TYPE_UNSPECIFIED, example: METRIC_TYPE_UNSPECIFIED)
metric_uuidstring (example: 123e4567-e89b-12d3-a456-426614174000)
metric_value_typestring (default: METRIC_VALUE_TYPE_UNSPECIFIED, example: METRIC_VALUE_TYPE_UNSPECIFIED)
range_maxnumber (float)The maximum value for the metric.
range_minnumber (float)The minimum value for the metric.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
genai_list_evaluation_metricsselectTo list all evaluation metrics, send a GET request to /v2/gen-ai/evaluation_metrics.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription

SELECT examples

To list all evaluation metrics, send a GET request to /v2/gen-ai/evaluation_metrics.

SELECT
metric_name,
description,
inverted,
metric_type,
metric_uuid,
metric_value_type,
range_max,
range_min
FROM digitalocean.genai.evaluation_metrics;