Skip to content

Commit a406db6

Browse files
feat(firebaseml): update the api
#### firebaseml:v2beta The following keys were added: - schemas.RagResource (Total Keys: 5) - schemas.VertexRagStore.properties.ragResources (Total Keys: 2)
1 parent dff33af commit a406db6

File tree

4 files changed

+47
-6
lines changed

4 files changed

+47
-6
lines changed

docs/dyn/firebaseml_v2beta.projects.locations.publishers.models.html

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,17 @@ <h3>Method Details</h3>
330330
&quot;datastore&quot;: &quot;A String&quot;, # Required. Fully-qualified Vertex AI Search&#x27;s datastore resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
331331
},
332332
&quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
333-
&quot;ragCorpora&quot;: [ # Required. Vertex RAG Store corpus resource name: `projects/{project}/locations/{location}/ragCorpora/{ragCorpus}` Currently only one corpus is allowed. In the future we may open up multiple corpora support. However, they should be from the same project and location.
333+
&quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
334334
&quot;A String&quot;,
335335
],
336+
&quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
337+
{ # The definition of the Rag resource.
338+
&quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
339+
&quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
340+
&quot;A String&quot;,
341+
],
342+
},
343+
],
336344
&quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
337345
&quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
338346
},
@@ -623,9 +631,17 @@ <h3>Method Details</h3>
623631
&quot;datastore&quot;: &quot;A String&quot;, # Required. Fully-qualified Vertex AI Search&#x27;s datastore resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
624632
},
625633
&quot;vertexRagStore&quot;: { # Retrieve from Vertex RAG Store for grounding. # Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
626-
&quot;ragCorpora&quot;: [ # Required. Vertex RAG Store corpus resource name: `projects/{project}/locations/{location}/ragCorpora/{ragCorpus}` Currently only one corpus is allowed. In the future we may open up multiple corpora support. However, they should be from the same project and location.
634+
&quot;ragCorpora&quot;: [ # Optional. Deprecated. Please use rag_resources instead.
627635
&quot;A String&quot;,
628636
],
637+
&quot;ragResources&quot;: [ # Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
638+
{ # The definition of the Rag resource.
639+
&quot;ragCorpus&quot;: &quot;A String&quot;, # Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
640+
&quot;ragFileIds&quot;: [ # Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.
641+
&quot;A String&quot;,
642+
],
643+
},
644+
],
629645
&quot;similarityTopK&quot;: 42, # Optional. Number of top k results to return from the selected corpora.
630646
&quot;vectorDistanceThreshold&quot;: 3.14, # Optional. Only return results with vector distance smaller than the threshold.
631647
},

googleapiclient/discovery_cache/documents/firebaseml.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
}
205205
}
206206
},
207-
"revision": "20240419",
207+
"revision": "20240426",
208208
"rootUrl": "https://firebaseml.googleapis.com/",
209209
"schemas": {
210210
"CancelOperationRequest": {

googleapiclient/discovery_cache/documents/firebaseml.v1beta2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@
318318
}
319319
}
320320
},
321-
"revision": "20240419",
321+
"revision": "20240426",
322322
"rootUrl": "https://firebaseml.googleapis.com/",
323323
"schemas": {
324324
"DownloadModelResponse": {

googleapiclient/discovery_cache/documents/firebaseml.v2beta.json

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206
}
207207
}
208208
},
209-
"revision": "20240419",
209+
"revision": "20240426",
210210
"rootUrl": "https://firebaseml.googleapis.com/",
211211
"schemas": {
212212
"Blob": {
@@ -771,6 +771,24 @@
771771
},
772772
"type": "object"
773773
},
774+
"RagResource": {
775+
"description": "The definition of the Rag resource.",
776+
"id": "RagResource",
777+
"properties": {
778+
"ragCorpus": {
779+
"description": "Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`",
780+
"type": "string"
781+
},
782+
"ragFileIds": {
783+
"description": "Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.",
784+
"items": {
785+
"type": "string"
786+
},
787+
"type": "array"
788+
}
789+
},
790+
"type": "object"
791+
},
774792
"Retrieval": {
775793
"description": "Defines a retrieval tool that model can call to access external knowledge.",
776794
"id": "Retrieval",
@@ -1132,12 +1150,19 @@
11321150
"id": "VertexRagStore",
11331151
"properties": {
11341152
"ragCorpora": {
1135-
"description": "Required. Vertex RAG Store corpus resource name: `projects/{project}/locations/{location}/ragCorpora/{ragCorpus}` Currently only one corpus is allowed. In the future we may open up multiple corpora support. However, they should be from the same project and location.",
1153+
"description": "Optional. Deprecated. Please use rag_resources instead.",
11361154
"items": {
11371155
"type": "string"
11381156
},
11391157
"type": "array"
11401158
},
1159+
"ragResources": {
1160+
"description": "Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.",
1161+
"items": {
1162+
"$ref": "RagResource"
1163+
},
1164+
"type": "array"
1165+
},
11411166
"similarityTopK": {
11421167
"description": "Optional. Number of top k results to return from the selected corpora.",
11431168
"format": "int32",

0 commit comments

Comments
 (0)