| 1 |
<html><body> |
| 2 |
<style> |
| 3 |
|
| 4 |
body, h1, h2, h3, div, span, p, pre, a { |
| 5 |
margin: 0; |
| 6 |
padding: 0; |
| 7 |
border: 0; |
| 8 |
font-weight: inherit; |
| 9 |
font-style: inherit; |
| 10 |
font-size: 100%; |
| 11 |
font-family: inherit; |
| 12 |
vertical-align: baseline; |
| 13 |
} |
| 14 |
|
| 15 |
body { |
| 16 |
font-size: 13px; |
| 17 |
padding: 1em; |
| 18 |
} |
| 19 |
|
| 20 |
h1 { |
| 21 |
font-size: 26px; |
| 22 |
margin-bottom: 1em; |
| 23 |
} |
| 24 |
|
| 25 |
h2 { |
| 26 |
font-size: 24px; |
| 27 |
margin-bottom: 1em; |
| 28 |
} |
| 29 |
|
| 30 |
h3 { |
| 31 |
font-size: 20px; |
| 32 |
margin-bottom: 1em; |
| 33 |
margin-top: 1em; |
| 34 |
} |
| 35 |
|
| 36 |
pre, code { |
| 37 |
line-height: 1.5; |
| 38 |
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 |
} |
| 40 |
|
| 41 |
pre { |
| 42 |
margin-top: 0.5em; |
| 43 |
} |
| 44 |
|
| 45 |
h1, h2, h3, p { |
| 46 |
font-family: Arial, sans serif; |
| 47 |
} |
| 48 |
|
| 49 |
h1, h2, h3 { |
| 50 |
border-bottom: solid #CCC 1px; |
| 51 |
} |
| 52 |
|
| 53 |
.toc_element { |
| 54 |
margin-top: 0.5em; |
| 55 |
} |
| 56 |
|
| 57 |
.firstline { |
| 58 |
margin-left: 2 em; |
| 59 |
} |
| 60 |
|
| 61 |
.method { |
| 62 |
margin-top: 1em; |
| 63 |
border: solid 1px #CCC; |
| 64 |
padding: 1em; |
| 65 |
background: #EEE; |
| 66 |
} |
| 67 |
|
| 68 |
.details { |
| 69 |
font-weight: bold; |
| 70 |
font-size: 14px; |
| 71 |
} |
| 72 |
|
| 73 |
</style> |
| 74 |
|
| 75 |
<h1><a href="aiplatform_v1.html">Agent Platform API</a> . <a href="aiplatform_v1.projects.html">projects</a> . <a href="aiplatform_v1.projects.locations.html">locations</a> . <a href="aiplatform_v1.projects.locations.ragCorpora.html">ragCorpora</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="aiplatform_v1.projects.locations.ragCorpora.operations.html">operations()</a></code> |
| 79 |
</p> |
| 80 |
<p class="firstline">Returns the operations Resource.</p> |
| 81 |
|
| 82 |
<p class="toc_element"> |
| 83 |
<code><a href="aiplatform_v1.projects.locations.ragCorpora.ragFiles.html">ragFiles()</a></code> |
| 84 |
</p> |
| 85 |
<p class="firstline">Returns the ragFiles Resource.</p> |
| 86 |
|
| 87 |
<p class="toc_element"> |
| 88 |
<code><a href="#close">close()</a></code></p> |
| 89 |
<p class="firstline">Close httplib2 connections.</p> |
| 90 |
<p class="toc_element"> |
| 91 |
<code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p> |
| 92 |
<p class="firstline">Creates a RagCorpus.</p> |
| 93 |
<p class="toc_element"> |
| 94 |
<code><a href="#delete">delete(name, force=None, x__xgafv=None)</a></code></p> |
| 95 |
<p class="firstline">Deletes a RagCorpus.</p> |
| 96 |
<p class="toc_element"> |
| 97 |
<code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 98 |
<p class="firstline">Gets a RagCorpus.</p> |
| 99 |
<p class="toc_element"> |
| 100 |
<code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> |
| 101 |
<p class="firstline">Lists RagCorpora in a Location.</p> |
| 102 |
<p class="toc_element"> |
| 103 |
<code><a href="#list_next">list_next()</a></code></p> |
| 104 |
<p class="firstline">Retrieves the next page of results.</p> |
| 105 |
<p class="toc_element"> |
| 106 |
<code><a href="#patch">patch(name, body=None, x__xgafv=None)</a></code></p> |
| 107 |
<p class="firstline">Updates a RagCorpus.</p> |
| 108 |
<h3>Method Details</h3> |
| 109 |
<div class="method"> |
| 110 |
<code class="details" id="close">close()</code> |
| 111 |
<pre>Close httplib2 connections.</pre> |
| 112 |
</div> |
| 113 |
|
| 114 |
<div class="method"> |
| 115 |
<code class="details" id="create">create(parent, body=None, x__xgafv=None)</code> |
| 116 |
<pre>Creates a RagCorpus. |
| 117 |
|
| 118 |
Args: |
| 119 |
parent: string, Required. The resource name of the Location to create the RagCorpus in. Format: `projects/{project}/locations/{location}` (required) |
| 120 |
body: object, The request body. |
| 121 |
The object takes the form of: |
| 122 |
|
| 123 |
{ # A RagCorpus is a RagFile container and a project can have multiple RagCorpora. |
| 124 |
"corpusStatus": { # RagCorpus status. # Output only. RagCorpus state. |
| 125 |
"errorStatus": "A String", # Output only. Only when the `state` field is ERROR. |
| 126 |
"state": "A String", # Output only. RagCorpus life state. |
| 127 |
}, |
| 128 |
"createTime": "A String", # Output only. Timestamp when this RagCorpus was created. |
| 129 |
"description": "A String", # Optional. The description of the RagCorpus. |
| 130 |
"displayName": "A String", # Required. The display name of the RagCorpus. The name can be up to 128 characters long and can consist of any UTF-8 characters. |
| 131 |
"encryptionSpec": { # Represents a customer-managed encryption key specification that can be applied to a Vertex AI resource. # Optional. Immutable. The CMEK key name used to encrypt at-rest data related to this Corpus. Only applicable to RagManagedDb option for Vector DB. This field can only be set at corpus creation time, and cannot be updated or deleted. |
| 132 |
"kmsKeyName": "A String", # Required. Resource name of the Cloud KMS key used to protect the resource. The Cloud KMS key must be in the same region as the resource. It must have the format `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. |
| 133 |
}, |
| 134 |
"name": "A String", # Output only. The resource name of the RagCorpus. |
| 135 |
"satisfiesPzi": True or False, # Output only. Reserved for future use. |
| 136 |
"satisfiesPzs": True or False, # Output only. Reserved for future use. |
| 137 |
"updateTime": "A String", # Output only. Timestamp when this RagCorpus was last updated. |
| 138 |
"vectorDbConfig": { # Config for the Vector DB to use for RAG. # Optional. Immutable. The config for the Vector DBs. |
| 139 |
"apiAuth": { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # Authentication config for the chosen Vector DB. |
| 140 |
"apiKeyConfig": { # The API secret. # The API secret. |
| 141 |
"apiKeySecretVersion": "A String", # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version} |
| 142 |
"apiKeyString": "A String", # The API key string. Either this or `api_key_secret_version` must be set. |
| 143 |
}, |
| 144 |
}, |
| 145 |
"pinecone": { # The config for the Pinecone. # The config for the Pinecone. |
| 146 |
"indexName": "A String", # Pinecone index name. This value cannot be changed after it's set. |
| 147 |
}, |
| 148 |
"ragEmbeddingModelConfig": { # Config for the embedding model to use for RAG. # Optional. Immutable. The embedding model config of the Vector DB. |
| 149 |
"vertexPredictionEndpoint": { # Config representing a model hosted on Vertex Prediction Endpoint. # The Vertex AI Prediction Endpoint that either refers to a publisher model or an endpoint that is hosting a 1P fine-tuned text embedding model. Endpoints hosting non-1P fine-tuned text embedding models are currently not supported. This is used for dense vector search. |
| 150 |
"endpoint": "A String", # Required. The endpoint resource name. Format: `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` or `projects/{project}/locations/{location}/endpoints/{endpoint}` |
| 151 |
"model": "A String", # Output only. The resource name of the model that is deployed on the endpoint. Present only when the endpoint is not a publisher model. Pattern: `projects/{project}/locations/{location}/models/{model}` |
| 152 |
"modelVersionId": "A String", # Output only. Version ID of the model that is deployed on the endpoint. Present only when the endpoint is not a publisher model. |
| 153 |
}, |
| 154 |
}, |
| 155 |
"ragManagedDb": { # The config for the default RAG-managed Vector DB. # The config for the RAG-managed Vector DB. |
| 156 |
"ann": { # 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. # 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. |
| 157 |
"leafCount": 42, # Number of leaf nodes in the tree-based structure. Each leaf node contains groups of closely related vectors along with their corresponding centroid. Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus). Default value is 500. |
| 158 |
"treeDepth": 42, # The depth of the tree-based structure. Only depth values of 2 and 3 are supported. Recommended value is 2 if you have if you have O(10K) files in the RagCorpus and set this to 3 if more than that. Default value is 2. |
| 159 |
}, |
| 160 |
"knn": { # Config for KNN search. # Performs a KNN search on RagCorpus. Default choice if not specified. |
| 161 |
}, |
| 162 |
}, |
| 163 |
"vertexVectorSearch": { # The config for the Vertex Vector Search. # The config for the Vertex Vector Search. |
| 164 |
"index": "A String", # The resource name of the Index. Format: `projects/{project}/locations/{location}/indexes/{index}` |
| 165 |
"indexEndpoint": "A String", # The resource name of the Index Endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` |
| 166 |
}, |
| 167 |
}, |
| 168 |
"vertexAiSearchConfig": { # Config for the Vertex AI Search. # Optional. Immutable. The config for the Vertex AI Search. |
| 169 |
"servingConfig": "A String", # Vertex AI Search Serving Config resource full name. For example, `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}` or `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}`. |
| 170 |
}, |
| 171 |
} |
| 172 |
|
| 173 |
x__xgafv: string, V1 error format. |
| 174 |
Allowed values |
| 175 |
1 - v1 error format |
| 176 |
2 - v2 error format |
| 177 |
|
| 178 |
Returns: |
| 179 |
An object of the form: |
| 180 |
|
| 181 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 182 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 183 |
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. |
| 184 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 185 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 186 |
{ |
| 187 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 188 |
}, |
| 189 |
], |
| 190 |
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 191 |
}, |
| 192 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 193 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 194 |
}, |
| 195 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 196 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 197 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 198 |
}, |
| 199 |
}</pre> |
| 200 |
</div> |
| 201 |
|
| 202 |
<div class="method"> |
| 203 |
<code class="details" id="delete">delete(name, force=None, x__xgafv=None)</code> |
| 204 |
<pre>Deletes a RagCorpus. |
| 205 |
|
| 206 |
Args: |
| 207 |
name: string, Required. The name of the RagCorpus resource to be deleted. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` (required) |
| 208 |
force: boolean, Optional. If set to true, any RagFiles in this RagCorpus will also be deleted. Otherwise, the request will only work if the RagCorpus has no RagFiles. |
| 209 |
x__xgafv: string, V1 error format. |
| 210 |
Allowed values |
| 211 |
1 - v1 error format |
| 212 |
2 - v2 error format |
| 213 |
|
| 214 |
Returns: |
| 215 |
An object of the form: |
| 216 |
|
| 217 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 218 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 219 |
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. |
| 220 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 221 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 222 |
{ |
| 223 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 224 |
}, |
| 225 |
], |
| 226 |
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 227 |
}, |
| 228 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 229 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 230 |
}, |
| 231 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 232 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 233 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 234 |
}, |
| 235 |
}</pre> |
| 236 |
</div> |
| 237 |
|
| 238 |
<div class="method"> |
| 239 |
<code class="details" id="get">get(name, x__xgafv=None)</code> |
| 240 |
<pre>Gets a RagCorpus. |
| 241 |
|
| 242 |
Args: |
| 243 |
name: string, Required. The name of the RagCorpus resource. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` (required) |
| 244 |
x__xgafv: string, V1 error format. |
| 245 |
Allowed values |
| 246 |
1 - v1 error format |
| 247 |
2 - v2 error format |
| 248 |
|
| 249 |
Returns: |
| 250 |
An object of the form: |
| 251 |
|
| 252 |
{ # A RagCorpus is a RagFile container and a project can have multiple RagCorpora. |
| 253 |
"corpusStatus": { # RagCorpus status. # Output only. RagCorpus state. |
| 254 |
"errorStatus": "A String", # Output only. Only when the `state` field is ERROR. |
| 255 |
"state": "A String", # Output only. RagCorpus life state. |
| 256 |
}, |
| 257 |
"createTime": "A String", # Output only. Timestamp when this RagCorpus was created. |
| 258 |
"description": "A String", # Optional. The description of the RagCorpus. |
| 259 |
"displayName": "A String", # Required. The display name of the RagCorpus. The name can be up to 128 characters long and can consist of any UTF-8 characters. |
| 260 |
"encryptionSpec": { # Represents a customer-managed encryption key specification that can be applied to a Vertex AI resource. # Optional. Immutable. The CMEK key name used to encrypt at-rest data related to this Corpus. Only applicable to RagManagedDb option for Vector DB. This field can only be set at corpus creation time, and cannot be updated or deleted. |
| 261 |
"kmsKeyName": "A String", # Required. Resource name of the Cloud KMS key used to protect the resource. The Cloud KMS key must be in the same region as the resource. It must have the format `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. |
| 262 |
}, |
| 263 |
"name": "A String", # Output only. The resource name of the RagCorpus. |
| 264 |
"satisfiesPzi": True or False, # Output only. Reserved for future use. |
| 265 |
"satisfiesPzs": True or False, # Output only. Reserved for future use. |
| 266 |
"updateTime": "A String", # Output only. Timestamp when this RagCorpus was last updated. |
| 267 |
"vectorDbConfig": { # Config for the Vector DB to use for RAG. # Optional. Immutable. The config for the Vector DBs. |
| 268 |
"apiAuth": { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # Authentication config for the chosen Vector DB. |
| 269 |
"apiKeyConfig": { # The API secret. # The API secret. |
| 270 |
"apiKeySecretVersion": "A String", # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version} |
| 271 |
"apiKeyString": "A String", # The API key string. Either this or `api_key_secret_version` must be set. |
| 272 |
}, |
| 273 |
}, |
| 274 |
"pinecone": { # The config for the Pinecone. # The config for the Pinecone. |
| 275 |
"indexName": "A String", # Pinecone index name. This value cannot be changed after it's set. |
| 276 |
}, |
| 277 |
"ragEmbeddingModelConfig": { # Config for the embedding model to use for RAG. # Optional. Immutable. The embedding model config of the Vector DB. |
| 278 |
"vertexPredictionEndpoint": { # Config representing a model hosted on Vertex Prediction Endpoint. # The Vertex AI Prediction Endpoint that either refers to a publisher model or an endpoint that is hosting a 1P fine-tuned text embedding model. Endpoints hosting non-1P fine-tuned text embedding models are currently not supported. This is used for dense vector search. |
| 279 |
"endpoint": "A String", # Required. The endpoint resource name. Format: `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` or `projects/{project}/locations/{location}/endpoints/{endpoint}` |
| 280 |
"model": "A String", # Output only. The resource name of the model that is deployed on the endpoint. Present only when the endpoint is not a publisher model. Pattern: `projects/{project}/locations/{location}/models/{model}` |
| 281 |
"modelVersionId": "A String", # Output only. Version ID of the model that is deployed on the endpoint. Present only when the endpoint is not a publisher model. |
| 282 |
}, |
| 283 |
}, |
| 284 |
"ragManagedDb": { # The config for the default RAG-managed Vector DB. # The config for the RAG-managed Vector DB. |
| 285 |
"ann": { # 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. # 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. |
| 286 |
"leafCount": 42, # Number of leaf nodes in the tree-based structure. Each leaf node contains groups of closely related vectors along with their corresponding centroid. Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus). Default value is 500. |
| 287 |
"treeDepth": 42, # The depth of the tree-based structure. Only depth values of 2 and 3 are supported. Recommended value is 2 if you have if you have O(10K) files in the RagCorpus and set this to 3 if more than that. Default value is 2. |
| 288 |
}, |
| 289 |
"knn": { # Config for KNN search. # Performs a KNN search on RagCorpus. Default choice if not specified. |
| 290 |
}, |
| 291 |
}, |
| 292 |
"vertexVectorSearch": { # The config for the Vertex Vector Search. # The config for the Vertex Vector Search. |
| 293 |
"index": "A String", # The resource name of the Index. Format: `projects/{project}/locations/{location}/indexes/{index}` |
| 294 |
"indexEndpoint": "A String", # The resource name of the Index Endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` |
| 295 |
}, |
| 296 |
}, |
| 297 |
"vertexAiSearchConfig": { # Config for the Vertex AI Search. # Optional. Immutable. The config for the Vertex AI Search. |
| 298 |
"servingConfig": "A String", # Vertex AI Search Serving Config resource full name. For example, `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}` or `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}`. |
| 299 |
}, |
| 300 |
}</pre> |
| 301 |
</div> |
| 302 |
|
| 303 |
<div class="method"> |
| 304 |
<code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code> |
| 305 |
<pre>Lists RagCorpora in a Location. |
| 306 |
|
| 307 |
Args: |
| 308 |
parent: string, Required. The resource name of the Location from which to list the RagCorpora. Format: `projects/{project}/locations/{location}` (required) |
| 309 |
pageSize: integer, Optional. The standard list page size. The maximum value is 100. If not specified, a default value of 100 will be used. |
| 310 |
pageToken: string, Optional. The standard list page token. Typically obtained via ListRagCorporaResponse.next_page_token of the previous VertexRagDataService.ListRagCorpora call. |
| 311 |
x__xgafv: string, V1 error format. |
| 312 |
Allowed values |
| 313 |
1 - v1 error format |
| 314 |
2 - v2 error format |
| 315 |
|
| 316 |
Returns: |
| 317 |
An object of the form: |
| 318 |
|
| 319 |
{ # Response message for VertexRagDataService.ListRagCorpora. |
| 320 |
"nextPageToken": "A String", # A token to retrieve the next page of results. Pass to ListRagCorporaRequest.page_token to obtain that page. |
| 321 |
"ragCorpora": [ # List of RagCorpora in the requested page. |
| 322 |
{ # A RagCorpus is a RagFile container and a project can have multiple RagCorpora. |
| 323 |
"corpusStatus": { # RagCorpus status. # Output only. RagCorpus state. |
| 324 |
"errorStatus": "A String", # Output only. Only when the `state` field is ERROR. |
| 325 |
"state": "A String", # Output only. RagCorpus life state. |
| 326 |
}, |
| 327 |
"createTime": "A String", # Output only. Timestamp when this RagCorpus was created. |
| 328 |
"description": "A String", # Optional. The description of the RagCorpus. |
| 329 |
"displayName": "A String", # Required. The display name of the RagCorpus. The name can be up to 128 characters long and can consist of any UTF-8 characters. |
| 330 |
"encryptionSpec": { # Represents a customer-managed encryption key specification that can be applied to a Vertex AI resource. # Optional. Immutable. The CMEK key name used to encrypt at-rest data related to this Corpus. Only applicable to RagManagedDb option for Vector DB. This field can only be set at corpus creation time, and cannot be updated or deleted. |
| 331 |
"kmsKeyName": "A String", # Required. Resource name of the Cloud KMS key used to protect the resource. The Cloud KMS key must be in the same region as the resource. It must have the format `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. |
| 332 |
}, |
| 333 |
"name": "A String", # Output only. The resource name of the RagCorpus. |
| 334 |
"satisfiesPzi": True or False, # Output only. Reserved for future use. |
| 335 |
"satisfiesPzs": True or False, # Output only. Reserved for future use. |
| 336 |
"updateTime": "A String", # Output only. Timestamp when this RagCorpus was last updated. |
| 337 |
"vectorDbConfig": { # Config for the Vector DB to use for RAG. # Optional. Immutable. The config for the Vector DBs. |
| 338 |
"apiAuth": { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # Authentication config for the chosen Vector DB. |
| 339 |
"apiKeyConfig": { # The API secret. # The API secret. |
| 340 |
"apiKeySecretVersion": "A String", # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version} |
| 341 |
"apiKeyString": "A String", # The API key string. Either this or `api_key_secret_version` must be set. |
| 342 |
}, |
| 343 |
}, |
| 344 |
"pinecone": { # The config for the Pinecone. # The config for the Pinecone. |
| 345 |
"indexName": "A String", # Pinecone index name. This value cannot be changed after it's set. |
| 346 |
}, |
| 347 |
"ragEmbeddingModelConfig": { # Config for the embedding model to use for RAG. # Optional. Immutable. The embedding model config of the Vector DB. |
| 348 |
"vertexPredictionEndpoint": { # Config representing a model hosted on Vertex Prediction Endpoint. # The Vertex AI Prediction Endpoint that either refers to a publisher model or an endpoint that is hosting a 1P fine-tuned text embedding model. Endpoints hosting non-1P fine-tuned text embedding models are currently not supported. This is used for dense vector search. |
| 349 |
"endpoint": "A String", # Required. The endpoint resource name. Format: `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` or `projects/{project}/locations/{location}/endpoints/{endpoint}` |
| 350 |
"model": "A String", # Output only. The resource name of the model that is deployed on the endpoint. Present only when the endpoint is not a publisher model. Pattern: `projects/{project}/locations/{location}/models/{model}` |
| 351 |
"modelVersionId": "A String", # Output only. Version ID of the model that is deployed on the endpoint. Present only when the endpoint is not a publisher model. |
| 352 |
}, |
| 353 |
}, |
| 354 |
"ragManagedDb": { # The config for the default RAG-managed Vector DB. # The config for the RAG-managed Vector DB. |
| 355 |
"ann": { # 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. # 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. |
| 356 |
"leafCount": 42, # Number of leaf nodes in the tree-based structure. Each leaf node contains groups of closely related vectors along with their corresponding centroid. Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus). Default value is 500. |
| 357 |
"treeDepth": 42, # The depth of the tree-based structure. Only depth values of 2 and 3 are supported. Recommended value is 2 if you have if you have O(10K) files in the RagCorpus and set this to 3 if more than that. Default value is 2. |
| 358 |
}, |
| 359 |
"knn": { # Config for KNN search. # Performs a KNN search on RagCorpus. Default choice if not specified. |
| 360 |
}, |
| 361 |
}, |
| 362 |
"vertexVectorSearch": { # The config for the Vertex Vector Search. # The config for the Vertex Vector Search. |
| 363 |
"index": "A String", # The resource name of the Index. Format: `projects/{project}/locations/{location}/indexes/{index}` |
| 364 |
"indexEndpoint": "A String", # The resource name of the Index Endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` |
| 365 |
}, |
| 366 |
}, |
| 367 |
"vertexAiSearchConfig": { # Config for the Vertex AI Search. # Optional. Immutable. The config for the Vertex AI Search. |
| 368 |
"servingConfig": "A String", # Vertex AI Search Serving Config resource full name. For example, `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}` or `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}`. |
| 369 |
}, |
| 370 |
}, |
| 371 |
], |
| 372 |
}</pre> |
| 373 |
</div> |
| 374 |
|
| 375 |
<div class="method"> |
| 376 |
<code class="details" id="list_next">list_next()</code> |
| 377 |
<pre>Retrieves the next page of results. |
| 378 |
|
| 379 |
Args: |
| 380 |
previous_request: The request for the previous page. (required) |
| 381 |
previous_response: The response from the request for the previous page. (required) |
| 382 |
|
| 383 |
Returns: |
| 384 |
A request object that you can call 'execute()' on to request the next |
| 385 |
page. Returns None if there are no more items in the collection. |
| 386 |
</pre> |
| 387 |
</div> |
| 388 |
|
| 389 |
<div class="method"> |
| 390 |
<code class="details" id="patch">patch(name, body=None, x__xgafv=None)</code> |
| 391 |
<pre>Updates a RagCorpus. |
| 392 |
|
| 393 |
Args: |
| 394 |
name: string, Output only. The resource name of the RagCorpus. (required) |
| 395 |
body: object, The request body. |
| 396 |
The object takes the form of: |
| 397 |
|
| 398 |
{ # A RagCorpus is a RagFile container and a project can have multiple RagCorpora. |
| 399 |
"corpusStatus": { # RagCorpus status. # Output only. RagCorpus state. |
| 400 |
"errorStatus": "A String", # Output only. Only when the `state` field is ERROR. |
| 401 |
"state": "A String", # Output only. RagCorpus life state. |
| 402 |
}, |
| 403 |
"createTime": "A String", # Output only. Timestamp when this RagCorpus was created. |
| 404 |
"description": "A String", # Optional. The description of the RagCorpus. |
| 405 |
"displayName": "A String", # Required. The display name of the RagCorpus. The name can be up to 128 characters long and can consist of any UTF-8 characters. |
| 406 |
"encryptionSpec": { # Represents a customer-managed encryption key specification that can be applied to a Vertex AI resource. # Optional. Immutable. The CMEK key name used to encrypt at-rest data related to this Corpus. Only applicable to RagManagedDb option for Vector DB. This field can only be set at corpus creation time, and cannot be updated or deleted. |
| 407 |
"kmsKeyName": "A String", # Required. Resource name of the Cloud KMS key used to protect the resource. The Cloud KMS key must be in the same region as the resource. It must have the format `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. |
| 408 |
}, |
| 409 |
"name": "A String", # Output only. The resource name of the RagCorpus. |
| 410 |
"satisfiesPzi": True or False, # Output only. Reserved for future use. |
| 411 |
"satisfiesPzs": True or False, # Output only. Reserved for future use. |
| 412 |
"updateTime": "A String", # Output only. Timestamp when this RagCorpus was last updated. |
| 413 |
"vectorDbConfig": { # Config for the Vector DB to use for RAG. # Optional. Immutable. The config for the Vector DBs. |
| 414 |
"apiAuth": { # The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. # Authentication config for the chosen Vector DB. |
| 415 |
"apiKeyConfig": { # The API secret. # The API secret. |
| 416 |
"apiKeySecretVersion": "A String", # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version} |
| 417 |
"apiKeyString": "A String", # The API key string. Either this or `api_key_secret_version` must be set. |
| 418 |
}, |
| 419 |
}, |
| 420 |
"pinecone": { # The config for the Pinecone. # The config for the Pinecone. |
| 421 |
"indexName": "A String", # Pinecone index name. This value cannot be changed after it's set. |
| 422 |
}, |
| 423 |
"ragEmbeddingModelConfig": { # Config for the embedding model to use for RAG. # Optional. Immutable. The embedding model config of the Vector DB. |
| 424 |
"vertexPredictionEndpoint": { # Config representing a model hosted on Vertex Prediction Endpoint. # The Vertex AI Prediction Endpoint that either refers to a publisher model or an endpoint that is hosting a 1P fine-tuned text embedding model. Endpoints hosting non-1P fine-tuned text embedding models are currently not supported. This is used for dense vector search. |
| 425 |
"endpoint": "A String", # Required. The endpoint resource name. Format: `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` or `projects/{project}/locations/{location}/endpoints/{endpoint}` |
| 426 |
"model": "A String", # Output only. The resource name of the model that is deployed on the endpoint. Present only when the endpoint is not a publisher model. Pattern: `projects/{project}/locations/{location}/models/{model}` |
| 427 |
"modelVersionId": "A String", # Output only. Version ID of the model that is deployed on the endpoint. Present only when the endpoint is not a publisher model. |
| 428 |
}, |
| 429 |
}, |
| 430 |
"ragManagedDb": { # The config for the default RAG-managed Vector DB. # The config for the RAG-managed Vector DB. |
| 431 |
"ann": { # 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. # 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. |
| 432 |
"leafCount": 42, # Number of leaf nodes in the tree-based structure. Each leaf node contains groups of closely related vectors along with their corresponding centroid. Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus). Default value is 500. |
| 433 |
"treeDepth": 42, # The depth of the tree-based structure. Only depth values of 2 and 3 are supported. Recommended value is 2 if you have if you have O(10K) files in the RagCorpus and set this to 3 if more than that. Default value is 2. |
| 434 |
}, |
| 435 |
"knn": { # Config for KNN search. # Performs a KNN search on RagCorpus. Default choice if not specified. |
| 436 |
}, |
| 437 |
}, |
| 438 |
"vertexVectorSearch": { # The config for the Vertex Vector Search. # The config for the Vertex Vector Search. |
| 439 |
"index": "A String", # The resource name of the Index. Format: `projects/{project}/locations/{location}/indexes/{index}` |
| 440 |
"indexEndpoint": "A String", # The resource name of the Index Endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` |
| 441 |
}, |
| 442 |
}, |
| 443 |
"vertexAiSearchConfig": { # Config for the Vertex AI Search. # Optional. Immutable. The config for the Vertex AI Search. |
| 444 |
"servingConfig": "A String", # Vertex AI Search Serving Config resource full name. For example, `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}` or `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}`. |
| 445 |
}, |
| 446 |
} |
| 447 |
|
| 448 |
x__xgafv: string, V1 error format. |
| 449 |
Allowed values |
| 450 |
1 - v1 error format |
| 451 |
2 - v2 error format |
| 452 |
|
| 453 |
Returns: |
| 454 |
An object of the form: |
| 455 |
|
| 456 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 457 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 458 |
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. |
| 459 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 460 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 461 |
{ |
| 462 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 463 |
}, |
| 464 |
], |
| 465 |
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 466 |
}, |
| 467 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 468 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 469 |
}, |
| 470 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 471 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 472 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 473 |
}, |
| 474 |
}</pre> |
| 475 |
</div> |
| 476 |
|
| 477 |
</body></html> |