Skip to main content

locations

Creates, updates, deletes, gets or lists a locations resource.

Overview

Namelocations
TypeResource
Idgoogle.aiplatform.locations

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringResource name for the location, which may vary between implementations. For example: "projects/example-project/locations/us-east1"
displayNamestringThe friendly name for this location, typically a nearby city name. For example, "Tokyo".
labelsobjectCross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}
locationIdstringThe canonical id for this location. For example: "us-east1".
metadataobjectService-specific metadata. For example the available capacity at the given location.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsIdGets information about a location.
listselectprojectsIdfilter, pageSize, pageToken, extraLocationTypesLists information about the supported locations for this service.
evaluate_instancesexecprojectsId, locationsIdEvaluates instances based on a given metric.
evaluate_datasetexecprojectsId, locationsIdEvaluates a dataset based on a set of given metrics.
generate_instance_rubricsexecprojectsId, locationsIdGenerates rubrics for a given prompt. A rubric represents a single testable criterion for evaluation. One input prompt could have multiple rubrics This RPC allows users to get suggested rubrics based on provided prompt, which can then be reviewed and used for subsequent evaluations.
deployexecprojectsId, locationsIdDeploys a model to a new endpoint.
augment_promptexecprojectsId, locationsIdGiven an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards generating grounded responses.
corroborate_contentexecprojectsId, locationsIdGiven an input text, it returns a score that evaluates the factuality of the text. It also extracts and returns claims from the text and provides supporting facts.

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

SELECT examples

Gets information about a location.

SELECT
name,
displayName,
labels,
locationId,
metadata
FROM google.aiplatform.locations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required;

Lifecycle Methods

Evaluates instances based on a given metric.

EXEC google.aiplatform.locations.evaluate_instances 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"exactMatchInput": "{{ exactMatchInput }}",
"bleuInput": "{{ bleuInput }}",
"rougeInput": "{{ rougeInput }}",
"fluencyInput": "{{ fluencyInput }}",
"coherenceInput": "{{ coherenceInput }}",
"safetyInput": "{{ safetyInput }}",
"groundednessInput": "{{ groundednessInput }}",
"fulfillmentInput": "{{ fulfillmentInput }}",
"summarizationQualityInput": "{{ summarizationQualityInput }}",
"pairwiseSummarizationQualityInput": "{{ pairwiseSummarizationQualityInput }}",
"summarizationHelpfulnessInput": "{{ summarizationHelpfulnessInput }}",
"summarizationVerbosityInput": "{{ summarizationVerbosityInput }}",
"questionAnsweringQualityInput": "{{ questionAnsweringQualityInput }}",
"pairwiseQuestionAnsweringQualityInput": "{{ pairwiseQuestionAnsweringQualityInput }}",
"questionAnsweringRelevanceInput": "{{ questionAnsweringRelevanceInput }}",
"questionAnsweringHelpfulnessInput": "{{ questionAnsweringHelpfulnessInput }}",
"questionAnsweringCorrectnessInput": "{{ questionAnsweringCorrectnessInput }}",
"pointwiseMetricInput": "{{ pointwiseMetricInput }}",
"pairwiseMetricInput": "{{ pairwiseMetricInput }}",
"toolCallValidInput": "{{ toolCallValidInput }}",
"toolNameMatchInput": "{{ toolNameMatchInput }}",
"toolParameterKeyMatchInput": "{{ toolParameterKeyMatchInput }}",
"toolParameterKvMatchInput": "{{ toolParameterKvMatchInput }}",
"cometInput": "{{ cometInput }}",
"metricxInput": "{{ metricxInput }}",
"trajectoryExactMatchInput": "{{ trajectoryExactMatchInput }}",
"trajectoryInOrderMatchInput": "{{ trajectoryInOrderMatchInput }}",
"trajectoryAnyOrderMatchInput": "{{ trajectoryAnyOrderMatchInput }}",
"trajectoryPrecisionInput": "{{ trajectoryPrecisionInput }}",
"trajectoryRecallInput": "{{ trajectoryRecallInput }}",
"trajectorySingleToolUseInput": "{{ trajectorySingleToolUseInput }}",
"rubricBasedInstructionFollowingInput": "{{ rubricBasedInstructionFollowingInput }}",
"metrics": "{{ metrics }}",
"instance": "{{ instance }}",
"autoraterConfig": "{{ autoraterConfig }}"
}';