Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class RagManagedDb.
The config for the default RAG-managed Vector DB.
Generated from protobuf message google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb
Namespace
Google \ Cloud \ AIPlatform \ V1 \ RagVectorDbConfigMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ knn |
RagManagedDb\KNN
Performs a KNN search on RagCorpus. Default choice if not specified. |
↳ ann |
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. |
getKnn
Performs a KNN search on RagCorpus.
Default choice if not specified.
| Returns | |
|---|---|
| Type | Description |
RagManagedDb\KNN|null |
|
hasKnn
setKnn
Performs a KNN search on RagCorpus.
Default choice if not specified.
| Parameter | |
|---|---|
| Name | Description |
var |
RagManagedDb\KNN
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAnn
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.
| Returns | |
|---|---|
| Type | Description |
RagManagedDb\ANN|null |
|
hasAnn
setAnn
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.
| Parameter | |
|---|---|
| Name | Description |
var |
RagManagedDb\ANN
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRetrievalStrategy
| Returns | |
|---|---|
| Type | Description |
string |
|