Class RagRetrievalConfig (1.89.0)

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

Specifies the context retrieval config.

Attributes

Name Description
top_k int
Optional. The number of contexts to retrieve.
filter google.cloud.aiplatform_v1.types.RagRetrievalConfig.Filter
Optional. Config for filters.
ranking google.cloud.aiplatform_v1.types.RagRetrievalConfig.Ranking
Optional. Config for ranking and reranking.

Classes

Filter

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

Config for filters.

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

Ranking

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

Config for ranking and reranking.

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

Methods

RagRetrievalConfig

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

Specifies the context retrieval config.