@google-cloud/discoveryengine 1.10.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +30 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/evaluation.proto +232 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/evaluation_service.proto +252 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +83 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query.proto +86 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_service.proto +264 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_set.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto +258 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/chunk.proto +119 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +0 -5
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +10 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +37 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/evaluation.proto +231 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/evaluation_service.proto +252 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +83 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/sample_query.proto +86 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_service.proto +264 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_set.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_set_service.proto +256 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +67 -8
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +11 -5
- package/build/protos/protos.d.ts +28997 -20222
- package/build/protos/protos.js +74749 -54453
- package/build/protos/protos.json +6933 -4764
- package/build/src/v1alpha/acl_config_service_client.d.ts +108 -0
- package/build/src/v1alpha/acl_config_service_client.js +157 -0
- package/build/src/v1alpha/chunk_service_client.d.ts +108 -0
- package/build/src/v1alpha/chunk_service_client.js +157 -0
- package/build/src/v1alpha/completion_service_client.d.ts +108 -0
- package/build/src/v1alpha/completion_service_client.js +157 -0
- package/build/src/v1alpha/control_service_client.d.ts +108 -0
- package/build/src/v1alpha/control_service_client.js +157 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +108 -0
- package/build/src/v1alpha/conversational_search_service_client.js +157 -0
- package/build/src/v1alpha/data_store_service_client.d.ts +108 -0
- package/build/src/v1alpha/data_store_service_client.js +157 -0
- package/build/src/v1alpha/document_service_client.d.ts +108 -0
- package/build/src/v1alpha/document_service_client.js +157 -0
- package/build/src/v1alpha/engine_service_client.d.ts +108 -0
- package/build/src/v1alpha/engine_service_client.js +157 -0
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +108 -0
- package/build/src/v1alpha/estimate_billing_service_client.js +157 -0
- package/build/src/v1alpha/evaluation_service_client.d.ts +2349 -0
- package/build/src/v1alpha/evaluation_service_client.js +3288 -0
- package/build/src/v1alpha/evaluation_service_client_config.json +58 -0
- package/build/src/v1alpha/grounded_generation_service_client.d.ts +108 -0
- package/build/src/v1alpha/grounded_generation_service_client.js +157 -0
- package/build/src/v1alpha/index.d.ts +3 -0
- package/build/src/v1alpha/index.js +7 -1
- package/build/src/v1alpha/project_service_client.d.ts +108 -0
- package/build/src/v1alpha/project_service_client.js +157 -0
- package/build/src/v1alpha/rank_service_client.d.ts +108 -0
- package/build/src/v1alpha/rank_service_client.js +157 -0
- package/build/src/v1alpha/recommendation_service_client.d.ts +108 -0
- package/build/src/v1alpha/recommendation_service_client.js +157 -0
- package/build/src/v1alpha/sample_query_service_client.d.ts +2317 -0
- package/build/src/v1alpha/sample_query_service_client.js +3186 -0
- package/build/src/v1alpha/sample_query_service_client_config.json +68 -0
- package/build/src/v1alpha/sample_query_set_service_client.d.ts +2176 -0
- package/build/src/v1alpha/sample_query_set_service_client.js +2931 -0
- package/build/src/v1alpha/sample_query_set_service_client_config.json +63 -0
- package/build/src/v1alpha/schema_service_client.d.ts +108 -0
- package/build/src/v1alpha/schema_service_client.js +157 -0
- package/build/src/v1alpha/search_service_client.d.ts +108 -0
- package/build/src/v1alpha/search_service_client.js +157 -0
- package/build/src/v1alpha/search_tuning_service_client.d.ts +108 -0
- package/build/src/v1alpha/search_tuning_service_client.js +157 -0
- package/build/src/v1alpha/serving_config_service_client.d.ts +108 -0
- package/build/src/v1alpha/serving_config_service_client.js +157 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +108 -0
- package/build/src/v1alpha/site_search_engine_service_client.js +157 -0
- package/build/src/v1alpha/user_event_service_client.d.ts +108 -0
- package/build/src/v1alpha/user_event_service_client.js +157 -0
- package/build/src/v1beta/completion_service_client.d.ts +237 -0
- package/build/src/v1beta/completion_service_client.js +339 -0
- package/build/src/v1beta/control_service_client.d.ts +237 -0
- package/build/src/v1beta/control_service_client.js +333 -0
- package/build/src/v1beta/conversational_search_service_client.d.ts +237 -0
- package/build/src/v1beta/conversational_search_service_client.js +333 -0
- package/build/src/v1beta/data_store_service_client.d.ts +237 -0
- package/build/src/v1beta/data_store_service_client.js +339 -0
- package/build/src/v1beta/document_service_client.d.ts +237 -0
- package/build/src/v1beta/document_service_client.js +339 -0
- package/build/src/v1beta/engine_service_client.d.ts +237 -0
- package/build/src/v1beta/engine_service_client.js +339 -0
- package/build/src/v1beta/evaluation_service_client.d.ts +2325 -0
- package/build/src/v1beta/evaluation_service_client.js +3252 -0
- package/build/src/v1beta/evaluation_service_client_config.json +58 -0
- package/build/src/v1beta/grounded_generation_service_client.d.ts +237 -0
- package/build/src/v1beta/grounded_generation_service_client.js +333 -0
- package/build/src/v1beta/index.d.ts +3 -0
- package/build/src/v1beta/index.js +7 -1
- package/build/src/v1beta/project_service_client.d.ts +237 -0
- package/build/src/v1beta/project_service_client.js +339 -0
- package/build/src/v1beta/rank_service_client.d.ts +237 -0
- package/build/src/v1beta/rank_service_client.js +333 -0
- package/build/src/v1beta/recommendation_service_client.d.ts +237 -0
- package/build/src/v1beta/recommendation_service_client.js +333 -0
- package/build/src/v1beta/sample_query_service_client.d.ts +2293 -0
- package/build/src/v1beta/sample_query_service_client.js +3150 -0
- package/build/src/v1beta/sample_query_service_client_config.json +68 -0
- package/build/src/v1beta/sample_query_set_service_client.d.ts +2150 -0
- package/build/src/v1beta/sample_query_set_service_client.js +2895 -0
- package/build/src/v1beta/sample_query_set_service_client_config.json +63 -0
- package/build/src/v1beta/schema_service_client.d.ts +237 -0
- package/build/src/v1beta/schema_service_client.js +339 -0
- package/build/src/v1beta/search_service_client.d.ts +267 -12
- package/build/src/v1beta/search_service_client.js +353 -8
- package/build/src/v1beta/search_tuning_service_client.d.ts +237 -0
- package/build/src/v1beta/search_tuning_service_client.js +339 -0
- package/build/src/v1beta/serving_config_service_client.d.ts +237 -0
- package/build/src/v1beta/serving_config_service_client.js +333 -0
- package/build/src/v1beta/site_search_engine_service_client.d.ts +237 -0
- package/build/src/v1beta/site_search_engine_service_client.js +339 -0
- package/build/src/v1beta/user_event_service_client.d.ts +237 -0
- package/build/src/v1beta/user_event_service_client.js +339 -0
- package/package.json +1 -1
@@ -0,0 +1,258 @@
|
|
1
|
+
// Copyright 2024 Google LLC
|
2
|
+
//
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
// you may not use this file except in compliance with the License.
|
5
|
+
// You may obtain a copy of the License at
|
6
|
+
//
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
//
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
// See the License for the specific language governing permissions and
|
13
|
+
// limitations under the License.
|
14
|
+
|
15
|
+
syntax = "proto3";
|
16
|
+
|
17
|
+
package google.cloud.discoveryengine.v1alpha;
|
18
|
+
|
19
|
+
import "google/api/annotations.proto";
|
20
|
+
import "google/api/client.proto";
|
21
|
+
import "google/api/field_behavior.proto";
|
22
|
+
import "google/api/resource.proto";
|
23
|
+
import "google/cloud/discoveryengine/v1alpha/sample_query_set.proto";
|
24
|
+
import "google/protobuf/empty.proto";
|
25
|
+
import "google/protobuf/field_mask.proto";
|
26
|
+
|
27
|
+
option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha";
|
28
|
+
option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb";
|
29
|
+
option java_multiple_files = true;
|
30
|
+
option java_outer_classname = "SampleQuerySetServiceProto";
|
31
|
+
option java_package = "com.google.cloud.discoveryengine.v1alpha";
|
32
|
+
option objc_class_prefix = "DISCOVERYENGINE";
|
33
|
+
option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha";
|
34
|
+
option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha";
|
35
|
+
|
36
|
+
// Service for managing
|
37
|
+
// [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s,
|
38
|
+
service SampleQuerySetService {
|
39
|
+
option (google.api.default_host) = "discoveryengine.googleapis.com";
|
40
|
+
option (google.api.oauth_scopes) =
|
41
|
+
"https://www.googleapis.com/auth/cloud-platform";
|
42
|
+
|
43
|
+
// Gets a
|
44
|
+
// [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
|
45
|
+
rpc GetSampleQuerySet(GetSampleQuerySetRequest) returns (SampleQuerySet) {
|
46
|
+
option (google.api.http) = {
|
47
|
+
get: "/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*}"
|
48
|
+
};
|
49
|
+
option (google.api.method_signature) = "name";
|
50
|
+
}
|
51
|
+
|
52
|
+
// Gets a list of
|
53
|
+
// [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
|
54
|
+
rpc ListSampleQuerySets(ListSampleQuerySetsRequest)
|
55
|
+
returns (ListSampleQuerySetsResponse) {
|
56
|
+
option (google.api.http) = {
|
57
|
+
get: "/v1alpha/{parent=projects/*/locations/*}/sampleQuerySets"
|
58
|
+
};
|
59
|
+
option (google.api.method_signature) = "parent";
|
60
|
+
}
|
61
|
+
|
62
|
+
// Creates a
|
63
|
+
// [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]
|
64
|
+
rpc CreateSampleQuerySet(CreateSampleQuerySetRequest)
|
65
|
+
returns (SampleQuerySet) {
|
66
|
+
option (google.api.http) = {
|
67
|
+
post: "/v1alpha/{parent=projects/*/locations/*}/sampleQuerySets"
|
68
|
+
body: "sample_query_set"
|
69
|
+
};
|
70
|
+
option (google.api.method_signature) =
|
71
|
+
"parent,sample_query_set,sample_query_set_id";
|
72
|
+
}
|
73
|
+
|
74
|
+
// Updates a
|
75
|
+
// [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
|
76
|
+
rpc UpdateSampleQuerySet(UpdateSampleQuerySetRequest)
|
77
|
+
returns (SampleQuerySet) {
|
78
|
+
option (google.api.http) = {
|
79
|
+
patch: "/v1alpha/{sample_query_set.name=projects/*/locations/*/sampleQuerySets/*}"
|
80
|
+
body: "sample_query_set"
|
81
|
+
};
|
82
|
+
option (google.api.method_signature) = "sample_query_set,update_mask";
|
83
|
+
}
|
84
|
+
|
85
|
+
// Deletes a
|
86
|
+
// [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].
|
87
|
+
rpc DeleteSampleQuerySet(DeleteSampleQuerySetRequest)
|
88
|
+
returns (google.protobuf.Empty) {
|
89
|
+
option (google.api.http) = {
|
90
|
+
delete: "/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*}"
|
91
|
+
};
|
92
|
+
option (google.api.method_signature) = "name";
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
// Request message for
|
97
|
+
// [SampleQuerySetService.GetSampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.GetSampleQuerySet]
|
98
|
+
// method.
|
99
|
+
message GetSampleQuerySetRequest {
|
100
|
+
// Required. Full resource name of
|
101
|
+
// [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such
|
102
|
+
// as
|
103
|
+
// `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
|
104
|
+
//
|
105
|
+
// If the caller does not have permission to access the
|
106
|
+
// [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
|
107
|
+
// regardless of whether or not it exists, a PERMISSION_DENIED error is
|
108
|
+
// returned.
|
109
|
+
//
|
110
|
+
// If the requested
|
111
|
+
// [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] does
|
112
|
+
// not exist, a NOT_FOUND error is returned.
|
113
|
+
string name = 1 [
|
114
|
+
(google.api.field_behavior) = REQUIRED,
|
115
|
+
(google.api.resource_reference) = {
|
116
|
+
type: "discoveryengine.googleapis.com/SampleQuerySet"
|
117
|
+
}
|
118
|
+
];
|
119
|
+
}
|
120
|
+
|
121
|
+
// Request message for
|
122
|
+
// [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
|
123
|
+
// method.
|
124
|
+
message ListSampleQuerySetsRequest {
|
125
|
+
// Required. The parent location resource name, such as
|
126
|
+
// `projects/{project}/locations/{location}`.
|
127
|
+
//
|
128
|
+
// If the caller does not have permission to list
|
129
|
+
// [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s
|
130
|
+
// under this location, regardless of whether or not this location exists, a
|
131
|
+
// `PERMISSION_DENIED` error is returned.
|
132
|
+
string parent = 1 [
|
133
|
+
(google.api.field_behavior) = REQUIRED,
|
134
|
+
(google.api.resource_reference) = {
|
135
|
+
type: "discoveryengine.googleapis.com/Location"
|
136
|
+
}
|
137
|
+
];
|
138
|
+
|
139
|
+
// Maximum number of
|
140
|
+
// [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s to
|
141
|
+
// return. If unspecified, defaults to 100. The maximum allowed value is 1000.
|
142
|
+
// Values above 1000 will be coerced to 1000.
|
143
|
+
//
|
144
|
+
// If this field is negative, an `INVALID_ARGUMENT` error is returned.
|
145
|
+
int32 page_size = 2;
|
146
|
+
|
147
|
+
// A page token
|
148
|
+
// [ListSampleQuerySetsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse.next_page_token],
|
149
|
+
// received from a previous
|
150
|
+
// [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
|
151
|
+
// call. Provide this to retrieve the subsequent page.
|
152
|
+
//
|
153
|
+
// When paginating, all other parameters provided to
|
154
|
+
// [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
|
155
|
+
// must match the call that provided the page token. Otherwise, an
|
156
|
+
// `INVALID_ARGUMENT` error is returned.
|
157
|
+
string page_token = 3;
|
158
|
+
}
|
159
|
+
|
160
|
+
// Response message for
|
161
|
+
// [SampleQuerySetService.ListSampleQuerySets][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets]
|
162
|
+
// method.
|
163
|
+
message ListSampleQuerySetsResponse {
|
164
|
+
// The [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.
|
165
|
+
repeated SampleQuerySet sample_query_sets = 1;
|
166
|
+
|
167
|
+
// A token that can be sent as
|
168
|
+
// [ListSampleQuerySetsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsRequest.page_token]
|
169
|
+
// to retrieve the next page. If this field is omitted, there are no
|
170
|
+
// subsequent pages.
|
171
|
+
string next_page_token = 2;
|
172
|
+
}
|
173
|
+
|
174
|
+
// Request message for
|
175
|
+
// [SampleQuerySetService.CreateSampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.CreateSampleQuerySet]
|
176
|
+
// method.
|
177
|
+
message CreateSampleQuerySetRequest {
|
178
|
+
// Required. The parent resource name, such as
|
179
|
+
// `projects/{project}/locations/{location}`.
|
180
|
+
string parent = 1 [
|
181
|
+
(google.api.field_behavior) = REQUIRED,
|
182
|
+
(google.api.resource_reference) = {
|
183
|
+
type: "discoveryengine.googleapis.com/Location"
|
184
|
+
}
|
185
|
+
];
|
186
|
+
|
187
|
+
// Required. The
|
188
|
+
// [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
|
189
|
+
// create.
|
190
|
+
SampleQuerySet sample_query_set = 2 [(google.api.field_behavior) = REQUIRED];
|
191
|
+
|
192
|
+
// Required. The ID to use for the
|
193
|
+
// [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
|
194
|
+
// which will become the final component of the
|
195
|
+
// [SampleQuerySet.name][google.cloud.discoveryengine.v1alpha.SampleQuerySet.name].
|
196
|
+
//
|
197
|
+
// If the caller does not have permission to create the
|
198
|
+
// [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
|
199
|
+
// regardless of whether or not it exists, a `PERMISSION_DENIED` error is
|
200
|
+
// returned.
|
201
|
+
//
|
202
|
+
// This field must be unique among all
|
203
|
+
// [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s with
|
204
|
+
// the same
|
205
|
+
// [parent][google.cloud.discoveryengine.v1alpha.CreateSampleQuerySetRequest.parent].
|
206
|
+
// Otherwise, an `ALREADY_EXISTS` error is returned.
|
207
|
+
//
|
208
|
+
// This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
|
209
|
+
// standard with a length limit of 63 characters. Otherwise, an
|
210
|
+
// `INVALID_ARGUMENT` error is returned.
|
211
|
+
string sample_query_set_id = 3 [(google.api.field_behavior) = REQUIRED];
|
212
|
+
}
|
213
|
+
|
214
|
+
// Request message for
|
215
|
+
// [SampleQuerySetService.UpdateSampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.UpdateSampleQuerySet]
|
216
|
+
// method.
|
217
|
+
message UpdateSampleQuerySetRequest {
|
218
|
+
// Required. The sample query set to update.
|
219
|
+
//
|
220
|
+
// If the caller does not have permission to update the
|
221
|
+
// [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
|
222
|
+
// regardless of whether or not it exists, a `PERMISSION_DENIED` error is
|
223
|
+
// returned.
|
224
|
+
//
|
225
|
+
// If the
|
226
|
+
// [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
|
227
|
+
// update does not exist a `NOT_FOUND` error is returned.
|
228
|
+
SampleQuerySet sample_query_set = 1 [(google.api.field_behavior) = REQUIRED];
|
229
|
+
|
230
|
+
// Indicates which fields in the provided imported 'sample query set' to
|
231
|
+
// update. If not set, will by default update all fields.
|
232
|
+
google.protobuf.FieldMask update_mask = 2;
|
233
|
+
}
|
234
|
+
|
235
|
+
// Request message for
|
236
|
+
// [SampleQuerySetService.DeleteSampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySetService.DeleteSampleQuerySet]
|
237
|
+
// method.
|
238
|
+
message DeleteSampleQuerySetRequest {
|
239
|
+
// Required. Full resource name of
|
240
|
+
// [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet], such
|
241
|
+
// as
|
242
|
+
// `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}`.
|
243
|
+
//
|
244
|
+
// If the caller does not have permission to delete the
|
245
|
+
// [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet],
|
246
|
+
// regardless of whether or not it exists, a `PERMISSION_DENIED` error is
|
247
|
+
// returned.
|
248
|
+
//
|
249
|
+
// If the
|
250
|
+
// [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet] to
|
251
|
+
// delete does not exist, a `NOT_FOUND` error is returned.
|
252
|
+
string name = 1 [
|
253
|
+
(google.api.field_behavior) = REQUIRED,
|
254
|
+
(google.api.resource_reference) = {
|
255
|
+
type: "discoveryengine.googleapis.com/SampleQuerySet"
|
256
|
+
}
|
257
|
+
];
|
258
|
+
}
|
@@ -0,0 +1,119 @@
|
|
1
|
+
// Copyright 2024 Google LLC
|
2
|
+
//
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
// you may not use this file except in compliance with the License.
|
5
|
+
// You may obtain a copy of the License at
|
6
|
+
//
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
//
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
// See the License for the specific language governing permissions and
|
13
|
+
// limitations under the License.
|
14
|
+
|
15
|
+
syntax = "proto3";
|
16
|
+
|
17
|
+
package google.cloud.discoveryengine.v1beta;
|
18
|
+
|
19
|
+
import "google/api/field_behavior.proto";
|
20
|
+
import "google/api/resource.proto";
|
21
|
+
import "google/protobuf/struct.proto";
|
22
|
+
|
23
|
+
option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta";
|
24
|
+
option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb";
|
25
|
+
option java_multiple_files = true;
|
26
|
+
option java_outer_classname = "ChunkProto";
|
27
|
+
option java_package = "com.google.cloud.discoveryengine.v1beta";
|
28
|
+
option objc_class_prefix = "DISCOVERYENGINE";
|
29
|
+
option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta";
|
30
|
+
option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta";
|
31
|
+
|
32
|
+
// Chunk captures all raw metadata information of items to be recommended or
|
33
|
+
// searched in the chunk mode.
|
34
|
+
message Chunk {
|
35
|
+
option (google.api.resource) = {
|
36
|
+
type: "discoveryengine.googleapis.com/Chunk"
|
37
|
+
pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}"
|
38
|
+
pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}"
|
39
|
+
};
|
40
|
+
|
41
|
+
// Document metadata contains the information of the document of the current
|
42
|
+
// chunk.
|
43
|
+
message DocumentMetadata {
|
44
|
+
// Uri of the document.
|
45
|
+
string uri = 1;
|
46
|
+
|
47
|
+
// Title of the document.
|
48
|
+
string title = 2;
|
49
|
+
|
50
|
+
// Data representation.
|
51
|
+
// The structured JSON data for the document. It should conform to the
|
52
|
+
// registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
|
53
|
+
// `INVALID_ARGUMENT` error is thrown.
|
54
|
+
google.protobuf.Struct struct_data = 3;
|
55
|
+
}
|
56
|
+
|
57
|
+
// Page span of the chunk.
|
58
|
+
message PageSpan {
|
59
|
+
// The start page of the chunk.
|
60
|
+
int32 page_start = 1;
|
61
|
+
|
62
|
+
// The end page of the chunk.
|
63
|
+
int32 page_end = 2;
|
64
|
+
}
|
65
|
+
|
66
|
+
// Metadata of the current chunk. This field is only populated on
|
67
|
+
// [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
|
68
|
+
// API.
|
69
|
+
message ChunkMetadata {
|
70
|
+
// The previous chunks of the current chunk. The number is controlled by
|
71
|
+
// [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
|
72
|
+
// This field is only populated on
|
73
|
+
// [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
|
74
|
+
// API.
|
75
|
+
repeated Chunk previous_chunks = 1;
|
76
|
+
|
77
|
+
// The next chunks of the current chunk. The number is controlled by
|
78
|
+
// [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
|
79
|
+
// This field is only populated on
|
80
|
+
// [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
|
81
|
+
// API.
|
82
|
+
repeated Chunk next_chunks = 2;
|
83
|
+
}
|
84
|
+
|
85
|
+
// The full resource name of the chunk.
|
86
|
+
// Format:
|
87
|
+
// `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
|
88
|
+
//
|
89
|
+
// This field must be a UTF-8 encoded string with a length limit of 1024
|
90
|
+
// characters.
|
91
|
+
string name = 1;
|
92
|
+
|
93
|
+
// Unique chunk ID of the current chunk.
|
94
|
+
string id = 2;
|
95
|
+
|
96
|
+
// Content is a string from a document (parsed content).
|
97
|
+
string content = 3;
|
98
|
+
|
99
|
+
// Output only. Represents the relevance score based on similarity.
|
100
|
+
// Higher score indicates higher chunk relevance.
|
101
|
+
// The score is in range [-1.0, 1.0].
|
102
|
+
// Only populated on [SearchService.SearchResponse][].
|
103
|
+
optional double relevance_score = 8
|
104
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
105
|
+
|
106
|
+
// Metadata of the document from the current chunk.
|
107
|
+
DocumentMetadata document_metadata = 5;
|
108
|
+
|
109
|
+
// Output only. This field is OUTPUT_ONLY.
|
110
|
+
// It contains derived data that are not in the original input document.
|
111
|
+
google.protobuf.Struct derived_struct_data = 4
|
112
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
113
|
+
|
114
|
+
// Page span of the chunk.
|
115
|
+
PageSpan page_span = 6;
|
116
|
+
|
117
|
+
// Output only. Metadata of the current chunk.
|
118
|
+
ChunkMetadata chunk_metadata = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
|
119
|
+
}
|
@@ -51,11 +51,6 @@ option (google.api.resource_definition) = {
|
|
51
51
|
type: "healthcare.googleapis.com/FhirStore"
|
52
52
|
pattern: "projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}"
|
53
53
|
};
|
54
|
-
option (google.api.resource_definition) = {
|
55
|
-
type: "discoveryengine.googleapis.com/Chunk"
|
56
|
-
pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}"
|
57
|
-
pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}"
|
58
|
-
};
|
59
54
|
|
60
55
|
// The industry vertical associated with the
|
61
56
|
// [DataStore][google.cloud.discoveryengine.v1beta.DataStore].
|
package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto
CHANGED
@@ -587,6 +587,12 @@ message AnswerQueryRequest {
|
|
587
587
|
// If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
|
588
588
|
string order_by = 4;
|
589
589
|
|
590
|
+
// Specifies the search result mode. If unspecified, the
|
591
|
+
// search result mode defaults to `DOCUMENTS`.
|
592
|
+
// See [parse and chunk
|
593
|
+
// documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
|
594
|
+
SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5;
|
595
|
+
|
590
596
|
// Specs defining dataStores to filter on in a search call and
|
591
597
|
// configurations for those dataStores. This is only considered for
|
592
598
|
// engines with multiple dataStores use case. For single dataStore within
|
@@ -793,8 +799,10 @@ message AnswerQueryRequest {
|
|
793
799
|
// method.
|
794
800
|
message AnswerQueryResponse {
|
795
801
|
// Answer resource object.
|
796
|
-
// If
|
797
|
-
//
|
802
|
+
// If
|
803
|
+
// [AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps]
|
804
|
+
// is greater than 1, use
|
805
|
+
// [Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
|
798
806
|
// answer information using
|
799
807
|
// [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer]
|
800
808
|
// API.
|
@@ -54,7 +54,7 @@ message Document {
|
|
54
54
|
|
55
55
|
// The URI of the content. Only Cloud Storage URIs (e.g.
|
56
56
|
// `gs://bucket-name/path/to/file`) are supported. The maximum file size
|
57
|
-
// is 2.5 MB for text-based formats,
|
57
|
+
// is 2.5 MB for text-based formats, 200 MB for other formats.
|
58
58
|
string uri = 3;
|
59
59
|
}
|
60
60
|
|
@@ -41,6 +41,30 @@ message DocumentProcessingConfig {
|
|
41
41
|
pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig"
|
42
42
|
};
|
43
43
|
|
44
|
+
// Configuration for chunking config.
|
45
|
+
message ChunkingConfig {
|
46
|
+
// Configuration for the layout based chunking.
|
47
|
+
message LayoutBasedChunkingConfig {
|
48
|
+
// The token size limit for each chunk.
|
49
|
+
//
|
50
|
+
// Supported values: 100-500 (inclusive).
|
51
|
+
// Default value: 500.
|
52
|
+
int32 chunk_size = 1;
|
53
|
+
|
54
|
+
// Whether to include appending different levels of headings to chunks
|
55
|
+
// from the middle of the document to prevent context loss.
|
56
|
+
//
|
57
|
+
// Default value: False.
|
58
|
+
bool include_ancestor_headings = 2;
|
59
|
+
}
|
60
|
+
|
61
|
+
// Additional configs that defines the behavior of the chunking.
|
62
|
+
oneof chunk_mode {
|
63
|
+
// Configuration for the layout based chunking.
|
64
|
+
LayoutBasedChunkingConfig layout_based_chunking_config = 1;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
44
68
|
// Related configurations applied to a specific type of document parser.
|
45
69
|
message ParsingConfig {
|
46
70
|
// The digital parsing configurations for documents.
|
@@ -57,6 +81,9 @@ message DocumentProcessingConfig {
|
|
57
81
|
bool use_native_text = 2;
|
58
82
|
}
|
59
83
|
|
84
|
+
// The layout parsing configurations for documents.
|
85
|
+
message LayoutParsingConfig {}
|
86
|
+
|
60
87
|
// Configs for document processing types.
|
61
88
|
oneof type_dedicated_config {
|
62
89
|
// Configurations applied to digital parser.
|
@@ -65,6 +92,9 @@ message DocumentProcessingConfig {
|
|
65
92
|
// Configurations applied to OCR parser. Currently it only applies to
|
66
93
|
// PDFs.
|
67
94
|
OcrParsingConfig ocr_parsing_config = 2;
|
95
|
+
|
96
|
+
// Configurations applied to layout parser.
|
97
|
+
LayoutParsingConfig layout_parsing_config = 3;
|
68
98
|
}
|
69
99
|
}
|
70
100
|
|
@@ -73,6 +103,9 @@ message DocumentProcessingConfig {
|
|
73
103
|
// `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
|
74
104
|
string name = 1;
|
75
105
|
|
106
|
+
// Whether chunking mode is enabled.
|
107
|
+
ChunkingConfig chunking_config = 3;
|
108
|
+
|
76
109
|
// Configurations for default Document parser.
|
77
110
|
// If not specified, we will configure it as default DigitalParsingConfig, and
|
78
111
|
// the default parsing config will be applied to all file types for Document
|
@@ -85,8 +118,10 @@ message DocumentProcessingConfig {
|
|
85
118
|
// * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
|
86
119
|
// parsing or layout parsing is supported.
|
87
120
|
// * `html`: Override parsing config for HTML files, only digital parsing and
|
88
|
-
//
|
121
|
+
// layout parsing are supported.
|
89
122
|
// * `docx`: Override parsing config for DOCX files, only digital parsing and
|
90
|
-
//
|
123
|
+
// layout parsing are supported.
|
124
|
+
// * `pptx`: Override parsing config for PPTX files, only digital parsing and
|
125
|
+
// layout parsing are supported.
|
91
126
|
map<string, ParsingConfig> parsing_config_overrides = 5;
|
92
127
|
}
|