Class Retrieval (1.50.0)

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.

Methods

Retrieval

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

Initializes a Retrieval tool.

Parameters
Name Description
disable_attribution bool

Optional. Disable using the result from this tool in detecting grounding attribution. This does not affect how the result is given to the model for generation.

source VertexAISearch

Set to use data source powered by Vertex AI Search.