locations
Creates, updates, deletes, gets or lists a locations resource.
Overview
| Name | locations |
| Type | Resource |
| Id | google.aiplatform.locations |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Resource name for the location, which may vary between implementations. For example: "projects/example-project/locations/us-east1" |
displayName | string | The friendly name for this location, typically a nearby city name. For example, "Tokyo". |
labels | object | Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} |
locationId | string | The canonical id for this location. For example: "us-east1". |
metadata | object | Service-specific metadata. For example the available capacity at the given location. |
| Name | Datatype | Description |
|---|---|---|
name | string | Resource name for the location, which may vary between implementations. For example: "projects/example-project/locations/us-east1" |
displayName | string | The friendly name for this location, typically a nearby city name. For example, "Tokyo". |
labels | object | Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} |
locationId | string | The canonical id for this location. For example: "us-east1". |
metadata | object | Service-specific metadata. For example the available capacity at the given location. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId | Gets information about a location. | |
list | select | projectsId | extraLocationTypes, pageToken, filter, pageSize | Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. |
evaluate_dataset | exec | projectsId, locationsId | Evaluates a dataset based on a set of given metrics. | |
async_retrieve_contexts | exec | projectsId, locationsId | Asynchronous API to retrieves relevant contexts for a query. | |
corroborate_content | exec | projectsId, locationsId | Given 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. | |
deploy | exec | projectsId, locationsId | Deploys a model to a new endpoint. | |
ask_contexts | exec | projectsId, locationsId | Agentic Retrieval Ask API for RAG. | |
generate_user_scenarios | exec | projectsId, locationsId | Generates user scenarios for agent evaluation. | |
augment_prompt | exec | projectsId, locationsId | Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards generating grounded responses. | |
evaluate_instances | exec | projectsId, locationsId | Evaluates instances based on a given metric. | |
generate_loss_clusters | exec | projectsId, locationsId | Generates loss clusters from evaluation results. This is a statelss API method that would not modify the EvaluationSet resource. | |
generate_synthetic_data | exec | projectsId, locationsId | Generates synthetic (artificial) data based on a description | |
generate_instance_rubrics | exec | projectsId, locationsId | Generates 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. |
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.
| Name | Datatype | Description |
|---|---|---|
locationsId | string | |
projectsId | string | |
extraLocationTypes | string | |
filter | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT examples
- get
- list
Gets information about a location.
SELECT
name,
displayName,
labels,
locationId,
metadata
FROM google.aiplatform.locations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
;
Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.
SELECT
name,
displayName,
labels,
locationId,
metadata
FROM google.aiplatform.locations
WHERE projectsId = '{{ projectsId }}' -- required
AND extraLocationTypes = '{{ extraLocationTypes }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
;
Lifecycle Methods
- evaluate_dataset
- async_retrieve_contexts
- corroborate_content
- deploy
- ask_contexts
- generate_user_scenarios
- augment_prompt
- evaluate_instances
- generate_loss_clusters
- generate_synthetic_data
- generate_instance_rubrics
Evaluates a dataset based on a set of given metrics.
EXEC google.aiplatform.locations.evaluate_dataset
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"autoraterConfig": "{{ autoraterConfig }}",
"dataset": "{{ dataset }}",
"metrics": "{{ metrics }}",
"location": "{{ location }}",
"outputConfig": "{{ outputConfig }}"
}'
;
Asynchronous API to retrieves relevant contexts for a query.
EXEC google.aiplatform.locations.async_retrieve_contexts
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"query": "{{ query }}",
"tools": "{{ tools }}"
}'
;
Given 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.
EXEC google.aiplatform.locations.corroborate_content
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"facts": "{{ facts }}",
"content": "{{ content }}",
"parameters": "{{ parameters }}"
}'
;
Deploys a model to a new endpoint.
EXEC google.aiplatform.locations.deploy
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"modelConfig": "{{ modelConfig }}",
"endpointConfig": "{{ endpointConfig }}",
"publisherModelName": "{{ publisherModelName }}",
"huggingFaceModelId": "{{ huggingFaceModelId }}",
"deployConfig": "{{ deployConfig }}"
}'
;
Agentic Retrieval Ask API for RAG.
EXEC google.aiplatform.locations.ask_contexts
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"query": "{{ query }}",
"tools": "{{ tools }}"
}'
;
Generates user scenarios for agent evaluation.
EXEC google.aiplatform.locations.generate_user_scenarios
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"userScenarioGenerationConfig": "{{ userScenarioGenerationConfig }}",
"rootAgentId": "{{ rootAgentId }}",
"allowCrossRegionModel": {{ allowCrossRegionModel }},
"agents": "{{ agents }}"
}'
;
Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards generating grounded responses.
EXEC google.aiplatform.locations.augment_prompt
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"vertexRagStore": "{{ vertexRagStore }}",
"contents": "{{ contents }}",
"model": "{{ model }}"
}'
;
Evaluates instances based on a given metric.
EXEC google.aiplatform.locations.evaluate_instances
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"fulfillmentInput": "{{ fulfillmentInput }}",
"toolNameMatchInput": "{{ toolNameMatchInput }}",
"summarizationQualityInput": "{{ summarizationQualityInput }}",
"summarizationHelpfulnessInput": "{{ summarizationHelpfulnessInput }}",
"rougeInput": "{{ rougeInput }}",
"trajectorySingleToolUseInput": "{{ trajectorySingleToolUseInput }}",
"exactMatchInput": "{{ exactMatchInput }}",
"metrics": "{{ metrics }}",
"summarizationVerbosityInput": "{{ summarizationVerbosityInput }}",
"questionAnsweringCorrectnessInput": "{{ questionAnsweringCorrectnessInput }}",
"autoraterConfig": "{{ autoraterConfig }}",
"trajectoryRecallInput": "{{ trajectoryRecallInput }}",
"rubricBasedInstructionFollowingInput": "{{ rubricBasedInstructionFollowingInput }}",
"location": "{{ location }}",
"metricSources": "{{ metricSources }}",
"cometInput": "{{ cometInput }}",
"toolCallValidInput": "{{ toolCallValidInput }}",
"trajectoryExactMatchInput": "{{ trajectoryExactMatchInput }}",
"trajectoryAnyOrderMatchInput": "{{ trajectoryAnyOrderMatchInput }}",
"instance": "{{ instance }}",
"pairwiseQuestionAnsweringQualityInput": "{{ pairwiseQuestionAnsweringQualityInput }}",
"pairwiseMetricInput": "{{ pairwiseMetricInput }}",
"pointwiseMetricInput": "{{ pointwiseMetricInput }}",
"metricxInput": "{{ metricxInput }}",
"bleuInput": "{{ bleuInput }}",
"groundednessInput": "{{ groundednessInput }}",
"coherenceInput": "{{ coherenceInput }}",
"questionAnsweringQualityInput": "{{ questionAnsweringQualityInput }}",
"questionAnsweringRelevanceInput": "{{ questionAnsweringRelevanceInput }}",
"pairwiseSummarizationQualityInput": "{{ pairwiseSummarizationQualityInput }}",
"fluencyInput": "{{ fluencyInput }}",
"trajectoryPrecisionInput": "{{ trajectoryPrecisionInput }}",
"safetyInput": "{{ safetyInput }}",
"toolParameterKvMatchInput": "{{ toolParameterKvMatchInput }}",
"questionAnsweringHelpfulnessInput": "{{ questionAnsweringHelpfulnessInput }}",
"trajectoryInOrderMatchInput": "{{ trajectoryInOrderMatchInput }}",
"toolParameterKeyMatchInput": "{{ toolParameterKeyMatchInput }}"
}'
;
Generates loss clusters from evaluation results. This is a statelss API method that would not modify the EvaluationSet resource.
EXEC google.aiplatform.locations.generate_loss_clusters
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"evaluationSet": "{{ evaluationSet }}",
"inlineResults": "{{ inlineResults }}",
"configs": "{{ configs }}"
}'
;
Generates synthetic (artificial) data based on a description
EXEC google.aiplatform.locations.generate_synthetic_data
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"taskDescription": "{{ taskDescription }}",
"count": {{ count }},
"examples": "{{ examples }}",
"outputFieldSpecs": "{{ outputFieldSpecs }}"
}'
;
Generates 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.
EXEC google.aiplatform.locations.generate_instance_rubrics
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"location": "{{ location }}",
"contents": "{{ contents }}",
"rubricGenerationSpec": "{{ rubricGenerationSpec }}",
"agentConfig": "{{ agentConfig }}",
"predefinedRubricGenerationSpec": "{{ predefinedRubricGenerationSpec }}",
"metricResourceName": "{{ metricResourceName }}"
}'
;