Debian Codegraph @

docs/dyn/aiplatform_v1.projects.locations.ragCorpora.html

raw
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 &quot;corpusStatus&quot;: { # RagCorpus status. # Output only. RagCorpus state.
125 &quot;errorStatus&quot;: &quot;A String&quot;, # Output only. Only when the `state` field is ERROR.
126 &quot;state&quot;: &quot;A String&quot;, # Output only. RagCorpus life state.
127 },
128 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this RagCorpus was created.
129 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the RagCorpus.
130 &quot;displayName&quot;: &quot;A String&quot;, # 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 &quot;encryptionSpec&quot;: { # 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 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the RagCorpus.
135 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
136 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
137 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this RagCorpus was last updated.
138 &quot;vectorDbConfig&quot;: { # Config for the Vector DB to use for RAG. # Optional. Immutable. The config for the Vector DBs.
139 &quot;apiAuth&quot;: { # 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 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
141 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
142 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
143 },
144 },
145 &quot;pinecone&quot;: { # The config for the Pinecone. # The config for the Pinecone.
146 &quot;indexName&quot;: &quot;A String&quot;, # Pinecone index name. This value cannot be changed after it&#x27;s set.
147 },
148 &quot;ragEmbeddingModelConfig&quot;: { # Config for the embedding model to use for RAG. # Optional. Immutable. The embedding model config of the Vector DB.
149 &quot;vertexPredictionEndpoint&quot;: { # 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 &quot;endpoint&quot;: &quot;A String&quot;, # Required. The endpoint resource name. Format: `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` or `projects/{project}/locations/{location}/endpoints/{endpoint}`
151 &quot;model&quot;: &quot;A String&quot;, # 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 &quot;modelVersionId&quot;: &quot;A String&quot;, # 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 &quot;ragManagedDb&quot;: { # The config for the default RAG-managed Vector DB. # The config for the RAG-managed Vector DB.
156 &quot;ann&quot;: { # 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 (&gt; 10K) in your RagCorpus and want to reduce the search latency.
157 &quot;leafCount&quot;: 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 &quot;treeDepth&quot;: 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 &quot;knn&quot;: { # Config for KNN search. # Performs a KNN search on RagCorpus. Default choice if not specified.
161 },
162 },
163 &quot;vertexVectorSearch&quot;: { # The config for the Vertex Vector Search. # The config for the Vertex Vector Search.
164 &quot;index&quot;: &quot;A String&quot;, # The resource name of the Index. Format: `projects/{project}/locations/{location}/indexes/{index}`
165 &quot;indexEndpoint&quot;: &quot;A String&quot;, # The resource name of the Index Endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
166 },
167 },
168 &quot;vertexAiSearchConfig&quot;: { # Config for the Vertex AI Search. # Optional. Immutable. The config for the Vertex AI Search.
169 &quot;servingConfig&quot;: &quot;A String&quot;, # 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 &quot;done&quot;: 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 &quot;error&quot;: { # 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 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
185 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
186 {
187 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
188 },
189 ],
190 &quot;message&quot;: &quot;A String&quot;, # 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 &quot;metadata&quot;: { # 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 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
194 },
195 &quot;name&quot;: &quot;A String&quot;, # 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 &quot;response&quot;: { # 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 &quot;a_key&quot;: &quot;&quot;, # 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 &quot;done&quot;: 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 &quot;error&quot;: { # 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 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
221 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
222 {
223 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
224 },
225 ],
226 &quot;message&quot;: &quot;A String&quot;, # 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 &quot;metadata&quot;: { # 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 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
230 },
231 &quot;name&quot;: &quot;A String&quot;, # 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 &quot;response&quot;: { # 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 &quot;a_key&quot;: &quot;&quot;, # 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 &quot;corpusStatus&quot;: { # RagCorpus status. # Output only. RagCorpus state.
254 &quot;errorStatus&quot;: &quot;A String&quot;, # Output only. Only when the `state` field is ERROR.
255 &quot;state&quot;: &quot;A String&quot;, # Output only. RagCorpus life state.
256 },
257 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this RagCorpus was created.
258 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the RagCorpus.
259 &quot;displayName&quot;: &quot;A String&quot;, # 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 &quot;encryptionSpec&quot;: { # 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 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the RagCorpus.
264 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
265 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
266 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this RagCorpus was last updated.
267 &quot;vectorDbConfig&quot;: { # Config for the Vector DB to use for RAG. # Optional. Immutable. The config for the Vector DBs.
268 &quot;apiAuth&quot;: { # 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 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
270 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
271 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
272 },
273 },
274 &quot;pinecone&quot;: { # The config for the Pinecone. # The config for the Pinecone.
275 &quot;indexName&quot;: &quot;A String&quot;, # Pinecone index name. This value cannot be changed after it&#x27;s set.
276 },
277 &quot;ragEmbeddingModelConfig&quot;: { # Config for the embedding model to use for RAG. # Optional. Immutable. The embedding model config of the Vector DB.
278 &quot;vertexPredictionEndpoint&quot;: { # 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 &quot;endpoint&quot;: &quot;A String&quot;, # Required. The endpoint resource name. Format: `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` or `projects/{project}/locations/{location}/endpoints/{endpoint}`
280 &quot;model&quot;: &quot;A String&quot;, # 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 &quot;modelVersionId&quot;: &quot;A String&quot;, # 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 &quot;ragManagedDb&quot;: { # The config for the default RAG-managed Vector DB. # The config for the RAG-managed Vector DB.
285 &quot;ann&quot;: { # 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 (&gt; 10K) in your RagCorpus and want to reduce the search latency.
286 &quot;leafCount&quot;: 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 &quot;treeDepth&quot;: 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 &quot;knn&quot;: { # Config for KNN search. # Performs a KNN search on RagCorpus. Default choice if not specified.
290 },
291 },
292 &quot;vertexVectorSearch&quot;: { # The config for the Vertex Vector Search. # The config for the Vertex Vector Search.
293 &quot;index&quot;: &quot;A String&quot;, # The resource name of the Index. Format: `projects/{project}/locations/{location}/indexes/{index}`
294 &quot;indexEndpoint&quot;: &quot;A String&quot;, # The resource name of the Index Endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
295 },
296 },
297 &quot;vertexAiSearchConfig&quot;: { # Config for the Vertex AI Search. # Optional. Immutable. The config for the Vertex AI Search.
298 &quot;servingConfig&quot;: &quot;A String&quot;, # 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 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve the next page of results. Pass to ListRagCorporaRequest.page_token to obtain that page.
321 &quot;ragCorpora&quot;: [ # List of RagCorpora in the requested page.
322 { # A RagCorpus is a RagFile container and a project can have multiple RagCorpora.
323 &quot;corpusStatus&quot;: { # RagCorpus status. # Output only. RagCorpus state.
324 &quot;errorStatus&quot;: &quot;A String&quot;, # Output only. Only when the `state` field is ERROR.
325 &quot;state&quot;: &quot;A String&quot;, # Output only. RagCorpus life state.
326 },
327 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this RagCorpus was created.
328 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the RagCorpus.
329 &quot;displayName&quot;: &quot;A String&quot;, # 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 &quot;encryptionSpec&quot;: { # 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 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the RagCorpus.
334 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
335 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
336 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this RagCorpus was last updated.
337 &quot;vectorDbConfig&quot;: { # Config for the Vector DB to use for RAG. # Optional. Immutable. The config for the Vector DBs.
338 &quot;apiAuth&quot;: { # 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 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
340 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
341 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
342 },
343 },
344 &quot;pinecone&quot;: { # The config for the Pinecone. # The config for the Pinecone.
345 &quot;indexName&quot;: &quot;A String&quot;, # Pinecone index name. This value cannot be changed after it&#x27;s set.
346 },
347 &quot;ragEmbeddingModelConfig&quot;: { # Config for the embedding model to use for RAG. # Optional. Immutable. The embedding model config of the Vector DB.
348 &quot;vertexPredictionEndpoint&quot;: { # 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 &quot;endpoint&quot;: &quot;A String&quot;, # Required. The endpoint resource name. Format: `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` or `projects/{project}/locations/{location}/endpoints/{endpoint}`
350 &quot;model&quot;: &quot;A String&quot;, # 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 &quot;modelVersionId&quot;: &quot;A String&quot;, # 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 &quot;ragManagedDb&quot;: { # The config for the default RAG-managed Vector DB. # The config for the RAG-managed Vector DB.
355 &quot;ann&quot;: { # 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 (&gt; 10K) in your RagCorpus and want to reduce the search latency.
356 &quot;leafCount&quot;: 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 &quot;treeDepth&quot;: 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 &quot;knn&quot;: { # Config for KNN search. # Performs a KNN search on RagCorpus. Default choice if not specified.
360 },
361 },
362 &quot;vertexVectorSearch&quot;: { # The config for the Vertex Vector Search. # The config for the Vertex Vector Search.
363 &quot;index&quot;: &quot;A String&quot;, # The resource name of the Index. Format: `projects/{project}/locations/{location}/indexes/{index}`
364 &quot;indexEndpoint&quot;: &quot;A String&quot;, # The resource name of the Index Endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
365 },
366 },
367 &quot;vertexAiSearchConfig&quot;: { # Config for the Vertex AI Search. # Optional. Immutable. The config for the Vertex AI Search.
368 &quot;servingConfig&quot;: &quot;A String&quot;, # 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 &#x27;execute()&#x27; 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 &quot;corpusStatus&quot;: { # RagCorpus status. # Output only. RagCorpus state.
400 &quot;errorStatus&quot;: &quot;A String&quot;, # Output only. Only when the `state` field is ERROR.
401 &quot;state&quot;: &quot;A String&quot;, # Output only. RagCorpus life state.
402 },
403 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this RagCorpus was created.
404 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the RagCorpus.
405 &quot;displayName&quot;: &quot;A String&quot;, # 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 &quot;encryptionSpec&quot;: { # 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 &quot;kmsKeyName&quot;: &quot;A String&quot;, # 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 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the RagCorpus.
410 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
411 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
412 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this RagCorpus was last updated.
413 &quot;vectorDbConfig&quot;: { # Config for the Vector DB to use for RAG. # Optional. Immutable. The config for the Vector DBs.
414 &quot;apiAuth&quot;: { # 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 &quot;apiKeyConfig&quot;: { # The API secret. # The API secret.
416 &quot;apiKeySecretVersion&quot;: &quot;A String&quot;, # Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
417 &quot;apiKeyString&quot;: &quot;A String&quot;, # The API key string. Either this or `api_key_secret_version` must be set.
418 },
419 },
420 &quot;pinecone&quot;: { # The config for the Pinecone. # The config for the Pinecone.
421 &quot;indexName&quot;: &quot;A String&quot;, # Pinecone index name. This value cannot be changed after it&#x27;s set.
422 },
423 &quot;ragEmbeddingModelConfig&quot;: { # Config for the embedding model to use for RAG. # Optional. Immutable. The embedding model config of the Vector DB.
424 &quot;vertexPredictionEndpoint&quot;: { # 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 &quot;endpoint&quot;: &quot;A String&quot;, # Required. The endpoint resource name. Format: `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` or `projects/{project}/locations/{location}/endpoints/{endpoint}`
426 &quot;model&quot;: &quot;A String&quot;, # 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 &quot;modelVersionId&quot;: &quot;A String&quot;, # 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 &quot;ragManagedDb&quot;: { # The config for the default RAG-managed Vector DB. # The config for the RAG-managed Vector DB.
431 &quot;ann&quot;: { # 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 (&gt; 10K) in your RagCorpus and want to reduce the search latency.
432 &quot;leafCount&quot;: 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 &quot;treeDepth&quot;: 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 &quot;knn&quot;: { # Config for KNN search. # Performs a KNN search on RagCorpus. Default choice if not specified.
436 },
437 },
438 &quot;vertexVectorSearch&quot;: { # The config for the Vertex Vector Search. # The config for the Vertex Vector Search.
439 &quot;index&quot;: &quot;A String&quot;, # The resource name of the Index. Format: `projects/{project}/locations/{location}/indexes/{index}`
440 &quot;indexEndpoint&quot;: &quot;A String&quot;, # The resource name of the Index Endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
441 },
442 },
443 &quot;vertexAiSearchConfig&quot;: { # Config for the Vertex AI Search. # Optional. Immutable. The config for the Vertex AI Search.
444 &quot;servingConfig&quot;: &quot;A String&quot;, # 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 &quot;done&quot;: 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 &quot;error&quot;: { # 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 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
460 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
461 {
462 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
463 },
464 ],
465 &quot;message&quot;: &quot;A String&quot;, # 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 &quot;metadata&quot;: { # 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 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
469 },
470 &quot;name&quot;: &quot;A String&quot;, # 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 &quot;response&quot;: { # 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 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
473 },
474 }</pre>
475 </div>
476
477 </body></html>