Full name: projects.locations.evaluateDataset
Evaluates a dataset based on a set of given metrics.
Endpoint
posthttps://aiplatform.googleapis.com/v1/{location}:evaluateDataset
Path parameters
locationstring
Required. The resource name of the Location to evaluate the dataset. Format: projects/{project}/locations/{location}
Request body
The request body contains data with the following structure:
Required. The dataset used for evaluation.
Required. The metrics used for evaluation.
Required. Config for evaluation output.
Optional. Autorater config used for evaluation. Currently only publisher Gemini models are supported. Format: projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL}.
Response body
If successful, the response body contains an instance of Operation.
EvaluationDataset
The dataset used for evaluation.
sourceUnion type
source can be only one of the following:Cloud storage source holds the dataset. Currently only one Cloud Storage file path is supported.
BigQuery source holds the dataset.
| JSON representation |
|---|
{ // source "gcsSource": { object ( |
BigQuerySource
The BigQuery location for the input content.
inputUristring
Required. BigQuery URI to a table, up to 2000 characters long. Accepted forms:
- BigQuery path. For example:
bq://projectId.bqDatasetId.bqTableId.
| JSON representation |
|---|
{ "inputUri": string } |
OutputConfig
Config for evaluation output.
destinationUnion type
destination can be only one of the following:Cloud storage destination for evaluation output.
| JSON representation |
|---|
{
// destination
"gcsDestination": {
object ( |