@google-cloud/discoveryengine 1.9.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 +19 -0
- package/README.md +32 -0
- package/build/protos/google/cloud/discoveryengine/v1/answer.proto +13 -0
- package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +119 -0
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +0 -5
- package/build/protos/google/cloud/discoveryengine/v1/completion.proto +31 -0
- package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +38 -0
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +35 -0
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +37 -2
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +108 -0
- package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +38 -0
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +200 -4
- package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +3 -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 +31310 -20211
- package/build/protos/protos.js +86710 -60571
- package/build/protos/protos.json +7720 -5011
- package/build/src/v1/completion_service_client.d.ts +220 -0
- package/build/src/v1/completion_service_client.js +260 -0
- package/build/src/v1/completion_service_client_config.json +10 -0
- package/build/src/v1/control_service_client.d.ts +129 -1
- package/build/src/v1/control_service_client.js +176 -0
- package/build/src/v1/conversational_search_service_client.d.ts +147 -1
- package/build/src/v1/conversational_search_service_client.js +176 -0
- package/build/src/v1/data_store_service_client.d.ts +129 -1
- package/build/src/v1/data_store_service_client.js +176 -0
- package/build/src/v1/document_service_client.d.ts +131 -1
- package/build/src/v1/document_service_client.js +176 -0
- package/build/src/v1/engine_service_client.d.ts +129 -1
- package/build/src/v1/engine_service_client.js +176 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +129 -0
- package/build/src/v1/grounded_generation_service_client.js +176 -0
- package/build/src/v1/project_service_client.d.ts +129 -0
- package/build/src/v1/project_service_client.js +176 -0
- package/build/src/v1/rank_service_client.d.ts +129 -0
- package/build/src/v1/rank_service_client.js +176 -0
- package/build/src/v1/recommendation_service_client.d.ts +129 -0
- package/build/src/v1/recommendation_service_client.js +176 -0
- package/build/src/v1/schema_service_client.d.ts +129 -1
- package/build/src/v1/schema_service_client.js +176 -0
- package/build/src/v1/search_service_client.d.ts +252 -1
- package/build/src/v1/search_service_client.js +258 -0
- package/build/src/v1/site_search_engine_service_client.d.ts +129 -1
- package/build/src/v1/site_search_engine_service_client.js +176 -0
- package/build/src/v1/user_event_service_client.d.ts +129 -0
- package/build/src/v1/user_event_service_client.js +176 -0
- 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 -1
- 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 -1
- package/build/src/v1alpha/control_service_client.js +157 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +108 -1
- package/build/src/v1alpha/conversational_search_service_client.js +157 -0
- package/build/src/v1alpha/data_store_service_client.d.ts +108 -1
- package/build/src/v1alpha/data_store_service_client.js +157 -0
- package/build/src/v1alpha/document_service_client.d.ts +108 -1
- package/build/src/v1alpha/document_service_client.js +157 -0
- package/build/src/v1alpha/engine_service_client.d.ts +108 -1
- 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 -1
- package/build/src/v1alpha/schema_service_client.js +157 -0
- package/build/src/v1alpha/search_service_client.d.ts +108 -1
- 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 -1
- package/build/src/v1alpha/serving_config_service_client.js +157 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +108 -1
- 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 -1
- package/build/src/v1beta/control_service_client.js +333 -0
- package/build/src/v1beta/conversational_search_service_client.d.ts +237 -1
- package/build/src/v1beta/conversational_search_service_client.js +333 -0
- package/build/src/v1beta/data_store_service_client.d.ts +237 -1
- package/build/src/v1beta/data_store_service_client.js +339 -0
- package/build/src/v1beta/document_service_client.d.ts +237 -1
- package/build/src/v1beta/document_service_client.js +339 -0
- package/build/src/v1beta/engine_service_client.d.ts +237 -1
- 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 -1
- package/build/src/v1beta/schema_service_client.js +339 -0
- package/build/src/v1beta/search_service_client.d.ts +267 -13
- 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 -1
- package/build/src/v1beta/serving_config_service_client.js +333 -0
- package/build/src/v1beta/site_search_engine_service_client.d.ts +237 -1
- 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
@@ -20,6 +20,7 @@ import "google/api/annotations.proto";
|
|
20
20
|
import "google/api/client.proto";
|
21
21
|
import "google/api/field_behavior.proto";
|
22
22
|
import "google/api/resource.proto";
|
23
|
+
import "google/cloud/discoveryengine/v1beta/chunk.proto";
|
23
24
|
import "google/cloud/discoveryengine/v1beta/common.proto";
|
24
25
|
import "google/cloud/discoveryengine/v1beta/document.proto";
|
25
26
|
import "google/protobuf/struct.proto";
|
@@ -70,8 +71,8 @@ message SearchRequest {
|
|
70
71
|
}
|
71
72
|
|
72
73
|
// A struct to define data stores to filter on in a search call and
|
73
|
-
// configurations for those data stores.
|
74
|
-
//
|
74
|
+
// configurations for those data stores. Otherwise, an `INVALID_ARGUMENT`
|
75
|
+
// error is returned.
|
75
76
|
message DataStoreSpec {
|
76
77
|
// Required. Full resource name of
|
77
78
|
// [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as
|
@@ -150,6 +151,9 @@ message SearchRequest {
|
|
150
151
|
// Maximum facet values that are returned for this facet. If
|
151
152
|
// unspecified, defaults to 20. The maximum allowed value is 300. Values
|
152
153
|
// above 300 are coerced to 300.
|
154
|
+
// For aggregation in healthcare search, when the [FacetKey.key] is
|
155
|
+
// "healthcare_aggregation_key", the limit will be overridden to
|
156
|
+
// 10,000 internally, regardless of the value set here.
|
153
157
|
//
|
154
158
|
// If this field is negative, an `INVALID_ARGUMENT` is returned.
|
155
159
|
int32 limit = 2;
|
@@ -445,8 +449,9 @@ message SearchRequest {
|
|
445
449
|
//
|
446
450
|
// At most 10 results for documents mode, or 50 for chunks mode, can be
|
447
451
|
// used to generate a summary. The chunks mode is used when
|
448
|
-
// [SearchRequest.ContentSearchSpec.search_result_mode][]
|
449
|
-
//
|
452
|
+
// [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
|
453
|
+
// is set to
|
454
|
+
// [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
|
450
455
|
int32 summary_result_count = 1;
|
451
456
|
|
452
457
|
// Specifies whether to include citations in the summary. The default
|
@@ -569,6 +574,37 @@ message SearchRequest {
|
|
569
574
|
int32 num_next_segments = 5;
|
570
575
|
}
|
571
576
|
|
577
|
+
// Specifies the chunk spec to be returned from the search response.
|
578
|
+
// Only available if the
|
579
|
+
// [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
|
580
|
+
// is set to
|
581
|
+
// [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
|
582
|
+
message ChunkSpec {
|
583
|
+
// The number of previous chunks to be returned of the current chunk. The
|
584
|
+
// maximum allowed value is 3.
|
585
|
+
// If not specified, no previous chunks will be returned.
|
586
|
+
int32 num_previous_chunks = 1;
|
587
|
+
|
588
|
+
// The number of next chunks to be returned of the current chunk. The
|
589
|
+
// maximum allowed value is 3.
|
590
|
+
// If not specified, no next chunks will be returned.
|
591
|
+
int32 num_next_chunks = 2;
|
592
|
+
}
|
593
|
+
|
594
|
+
// Specifies the search result mode. If unspecified, the
|
595
|
+
// search result mode defaults to `DOCUMENTS`.
|
596
|
+
enum SearchResultMode {
|
597
|
+
// Default value.
|
598
|
+
SEARCH_RESULT_MODE_UNSPECIFIED = 0;
|
599
|
+
|
600
|
+
// Returns documents in the search result.
|
601
|
+
DOCUMENTS = 1;
|
602
|
+
|
603
|
+
// Returns chunks in the search result. Only available if the
|
604
|
+
// [DataStore.DocumentProcessingConfig.chunking_config][] is specified.
|
605
|
+
CHUNKS = 2;
|
606
|
+
}
|
607
|
+
|
572
608
|
// If `snippetSpec` is not specified, snippets are not included in the
|
573
609
|
// search response.
|
574
610
|
SnippetSpec snippet_spec = 1;
|
@@ -580,6 +616,17 @@ message SearchRequest {
|
|
580
616
|
// If there is no extractive_content_spec provided, there will be no
|
581
617
|
// extractive answer in the search response.
|
582
618
|
ExtractiveContentSpec extractive_content_spec = 3;
|
619
|
+
|
620
|
+
// Specifies the search result mode. If unspecified, the
|
621
|
+
// search result mode defaults to `DOCUMENTS`.
|
622
|
+
SearchResultMode search_result_mode = 4;
|
623
|
+
|
624
|
+
// Specifies the chunk spec to be returned from the search response.
|
625
|
+
// Only available if the
|
626
|
+
// [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
|
627
|
+
// is set to
|
628
|
+
// [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
|
629
|
+
ChunkSpec chunk_spec = 5;
|
583
630
|
}
|
584
631
|
|
585
632
|
// The specification that uses customized query embedding vector to do
|
@@ -782,20 +829,26 @@ message SearchRequest {
|
|
782
829
|
// documents. This overrides
|
783
830
|
// [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression].
|
784
831
|
// The ranking expression is a single function or multiple functions that are
|
785
|
-
//
|
832
|
+
// joined by "+".
|
833
|
+
//
|
786
834
|
// * ranking_expression = function, { " + ", function };
|
835
|
+
//
|
787
836
|
// Supported functions:
|
837
|
+
//
|
788
838
|
// * double * relevance_score
|
789
839
|
// * double * dotProduct(embedding_field_path)
|
840
|
+
//
|
790
841
|
// Function variables:
|
791
|
-
//
|
842
|
+
//
|
843
|
+
// * `relevance_score`: pre-defined keywords, used for measure relevance
|
792
844
|
// between query and document.
|
793
|
-
// `embedding_field_path`: the document embedding field
|
845
|
+
// * `embedding_field_path`: the document embedding field
|
794
846
|
// used with query embedding vector.
|
795
|
-
// `dotProduct`: embedding function between embedding_field_path and query
|
847
|
+
// * `dotProduct`: embedding function between embedding_field_path and query
|
796
848
|
// embedding vector.
|
797
849
|
//
|
798
850
|
// Example ranking expression:
|
851
|
+
//
|
799
852
|
// If document has an embedding field doc_embedding, the ranking expression
|
800
853
|
// could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
|
801
854
|
string ranking_expression = 26;
|
@@ -838,6 +891,12 @@ message SearchResponse {
|
|
838
891
|
// marked as `retrievable` are populated.
|
839
892
|
Document document = 2;
|
840
893
|
|
894
|
+
// The chunk data in the search response if the
|
895
|
+
// [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
|
896
|
+
// is set to
|
897
|
+
// [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
|
898
|
+
Chunk chunk = 18;
|
899
|
+
|
841
900
|
// Google provided available scores.
|
842
901
|
map<string, DoubleList> model_scores = 4;
|
843
902
|
}
|
@@ -171,21 +171,27 @@ message ServingConfig {
|
|
171
171
|
//
|
172
172
|
// The ranking expression is a single function or multiple functions that are
|
173
173
|
// joined by "+".
|
174
|
+
//
|
174
175
|
// * ranking_expression = function, { " + ", function };
|
176
|
+
//
|
175
177
|
// Supported functions:
|
178
|
+
//
|
176
179
|
// * double * relevance_score
|
177
180
|
// * double * dotProduct(embedding_field_path)
|
181
|
+
//
|
178
182
|
// Function variables:
|
179
|
-
//
|
180
|
-
//
|
181
|
-
//
|
183
|
+
//
|
184
|
+
// * `relevance_score`: pre-defined keywords, used for measure relevance
|
185
|
+
// between query and document.
|
186
|
+
// * `embedding_field_path`: the document embedding field
|
182
187
|
// used with query embedding vector.
|
183
|
-
// dotProduct
|
188
|
+
// * `dotProduct`: embedding function between embedding_field_path and query
|
184
189
|
// embedding vector.
|
185
190
|
//
|
186
191
|
// Example ranking expression:
|
192
|
+
//
|
187
193
|
// If document has an embedding field doc_embedding, the ranking expression
|
188
|
-
// could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)
|
194
|
+
// could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
|
189
195
|
string ranking_expression = 21;
|
190
196
|
|
191
197
|
// Output only. ServingConfig created timestamp.
|