Skip to content

Commit a3ca33f

Browse files
Google APIscopybara-github
authored andcommitted
feat: add VertexAISearch.max_results, filter, data_store_specs options
PiperOrigin-RevId: 760782195
1 parent 3ef440a commit a3ca33f

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

google/cloud/aiplatform/v1/tool.proto

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,21 @@ message VertexRagStore {
265265
// datastore and engine are mutually exclusive.
266266
// See https://cloud.google.com/products/agent-builder
267267
message VertexAISearch {
268+
// Define data stores within engine to filter on in a search call and
269+
// configurations for those data stores. For more information, see
270+
// https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec
271+
message DataStoreSpec {
272+
// Full resource name of DataStore, such as
273+
// Format:
274+
// `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
275+
string data_store = 1;
276+
277+
// Optional. Filter specification to filter documents in the data store
278+
// specified by data_store field. For more information on filtering, see
279+
// [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
280+
string filter = 2 [(google.api.field_behavior) = OPTIONAL];
281+
}
282+
268283
// Optional. Fully-qualified Vertex AI Search data store resource ID.
269284
// Format:
270285
// `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
@@ -274,6 +289,20 @@ message VertexAISearch {
274289
// Format:
275290
// `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
276291
string engine = 2 [(google.api.field_behavior) = OPTIONAL];
292+
293+
// Optional. Number of search results to return per query.
294+
// The default value is 10.
295+
// The maximumm allowed value is 10.
296+
int32 max_results = 3 [(google.api.field_behavior) = OPTIONAL];
297+
298+
// Optional. Filter strings to be passed to the search API.
299+
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
300+
301+
// Specifications that define the specific DataStores to be searched, along
302+
// with configurations for those data stores. This is only considered for
303+
// Engines with multiple data stores.
304+
// It should only be set if engine is used.
305+
repeated DataStoreSpec data_store_specs = 5;
277306
}
278307

279308
// Tool to retrieve public web data for grounding, powered by Google.

0 commit comments

Comments
 (0)