Class RagManagedDb (1.101.0)

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

The config for the default RAG-managed Vector DB.

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

Name Description
knn google.cloud.aiplatform_v1.types.RagVectorDbConfig.RagManagedDb.KNN
Performs a KNN search on RagCorpus. Default choice if not specified. This field is a member of oneof_ retrieval_strategy.
ann google.cloud.aiplatform_v1.types.RagVectorDbConfig.RagManagedDb.ANN
Performs an ANN search on RagCorpus. Use this if you have a lot of files (> 10K) in your RagCorpus and want to reduce the search latency. This field is a member of oneof_ retrieval_strategy.

Classes

ANN

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

Config for ANN search.

RagManagedDb uses a tree-based structure to partition data and facilitate faster searches. As a tradeoff, it requires longer indexing time and manual triggering of index rebuild via the ImportRagFiles and UpdateRagCorpus API.

KNN

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

Config for KNN search.

Methods

RagManagedDb

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

The config for the default RAG-managed Vector DB.

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