Class Retrieval (1.48.0)

Retrieval(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
vertex_ai_search google.cloud.aiplatform_v1beta1.types.VertexAISearch
Set to use data source powered by Vertex AI Search. This field is a member of oneof_ source.
vertex_rag_store google.cloud.aiplatform_v1beta1.types.VertexRagStore
Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService. This field is a member of oneof_ source.
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.

Methods

Retrieval

Retrieval(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields