Skip to main content

evaluation_items

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

Overview

Nameevaluation_items
TypeResource
Idgoogle.aiplatform.evaluation_items

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The resource name of the EvaluationItem. Format: projects/{project}/locations/{location}/evaluationItems/{evaluation_item}
createTimestring (google-datetime)Output only. Timestamp when this item was created.
displayNamestringRequired. The display name of the EvaluationItem.
errorobjectThe Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. (id: GoogleRpcStatus)
evaluationItemTypestringRequired. The type of the EvaluationItem.
evaluationRequestobjectThe request to evaluate. (id: GoogleCloudAiplatformV1EvaluationRequest)
evaluationResponseobjectOutput only. The response from evaluation. (id: GoogleCloudAiplatformV1EvaluationResult)
gcsUristringThe Cloud Storage object where the request or response is stored.
labelsobjectOptional. Labels for the EvaluationItem.
metadataanyOptional. Metadata for the EvaluationItem.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, evaluationItemsIdGets an Evaluation Item.
listselectprojectsId, locationsIdfilter, pageToken, orderBy, pageSizeLists Evaluation Items.
createinsertprojectsId, locationsIdCreates an Evaluation Item.
deletedeleteprojectsId, locationsId, evaluationItemsIdDeletes an Evaluation Item.

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
evaluationItemsIdstring
locationsIdstring
projectsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets an Evaluation Item.

SELECT
name,
createTime,
displayName,
error,
evaluationItemType,
evaluationRequest,
evaluationResponse,
gcsUri,
labels,
metadata
FROM google.aiplatform.evaluation_items
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND evaluationItemsId = '{{ evaluationItemsId }}' -- required
;

INSERT examples

Creates an Evaluation Item.

INSERT INTO google.aiplatform.evaluation_items (
data__gcsUri,
data__metadata,
data__evaluationRequest,
data__displayName,
data__name,
data__labels,
data__evaluationItemType,
projectsId,
locationsId
)
SELECT
'{{ gcsUri }}',
'{{ metadata }}',
'{{ evaluationRequest }}',
'{{ displayName }}',
'{{ name }}',
'{{ labels }}',
'{{ evaluationItemType }}',
'{{ projectsId }}',
'{{ locationsId }}'
RETURNING
name,
createTime,
displayName,
error,
evaluationItemType,
evaluationRequest,
evaluationResponse,
gcsUri,
labels,
metadata
;

DELETE examples

Deletes an Evaluation Item.

DELETE FROM google.aiplatform.evaluation_items
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND evaluationItemsId = '{{ evaluationItemsId }}' --required
;