Class grounding (1.117.0)

grounding()

Grounding namespace.

Classes

DynamicRetrievalConfig

DynamicRetrievalConfig(
 mode: google.cloud.aiplatform_v1beta1.types.tool.DynamicRetrievalConfig.Mode = Mode.MODE_UNSPECIFIED,
 dynamic_threshold: typing.Optional[float] = None,
)

Config for dynamic retrieval.

GoogleSearchRetrieval

GoogleSearchRetrieval(
 dynamic_retrieval_config: typing.Optional[
 vertexai.generative_models._generative_models.grounding.DynamicRetrievalConfig
 ] = None,
)

Tool to retrieve public web data for grounding, powered by Google Search.

Retrieval

Retrieval(
 source: vertexai.generative_models._generative_models.grounding.VertexAISearch,
 disable_attribution: typing.Optional[bool] = None,
)

Defines a retrieval tool that model can call to access external knowledge.

VertexAISearch

VertexAISearch(
 datastore: str,
 *,
 project: typing.Optional[str] = None,
 location: typing.Optional[str] = None
)

Retrieve from Vertex AI Search data store for grounding. See https://cloud.google.com/products/agent-builder

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.