Skip to content

Commit 5cf8d9e

Browse files
gcf-owl-bot[bot]d-googsofisl
authored
feat: [discoveryengine] support natural language understanding in search (#5596)
* feat: support natural language understanding in search feat: support search as you type feature feat: allow set relevance threshold on search feat: support import and purge autocomplete data feat: populate more metadata in answer services feat: allow providing language info in data stores feat: add requirement service feat: support import data from AlloyDB feat: support add metadata for website uris docs: keep the API doc up-to-date with recent changes PiperOrigin-RevId: 658428107 Source-Link: googleapis/googleapis@98e5657 Source-Link: googleapis/googleapis-gen@a579c69 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpc2NvdmVyeWVuZ2luZS8uT3dsQm90LnlhbWwiLCJoIjoiYTU3OWM2OTA4YWNkNjcwMWQ3ZjliYzY0YTVmMTc2YjIxNWJiYmZhYyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Update package.json --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Daniel Bankhead <[email protected]> Co-authored-by: sofisl <[email protected]>
1 parent ea50493 commit 5cf8d9e

54 files changed

Lines changed: 43483 additions & 27009 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/google-cloud-discoveryengine/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
195195
| Chunk_service.get_chunk | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/chunk_service.get_chunk.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/chunk_service.get_chunk.js,packages/google-cloud-discoveryengine/samples/README.md) |
196196
| Chunk_service.list_chunks | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/chunk_service.list_chunks.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/chunk_service.list_chunks.js,packages/google-cloud-discoveryengine/samples/README.md) |
197197
| Completion_service.complete_query | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/completion_service.complete_query.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/completion_service.complete_query.js,packages/google-cloud-discoveryengine/samples/README.md) |
198+
| Completion_service.import_completion_suggestions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/completion_service.import_completion_suggestions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/completion_service.import_completion_suggestions.js,packages/google-cloud-discoveryengine/samples/README.md) |
198199
| Completion_service.import_suggestion_deny_list_entries | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/completion_service.import_suggestion_deny_list_entries.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/completion_service.import_suggestion_deny_list_entries.js,packages/google-cloud-discoveryengine/samples/README.md) |
200+
| Completion_service.purge_completion_suggestions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/completion_service.purge_completion_suggestions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/completion_service.purge_completion_suggestions.js,packages/google-cloud-discoveryengine/samples/README.md) |
199201
| Completion_service.purge_suggestion_deny_list_entries | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/completion_service.purge_suggestion_deny_list_entries.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/completion_service.purge_suggestion_deny_list_entries.js,packages/google-cloud-discoveryengine/samples/README.md) |
200202
| Control_service.create_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/control_service.create_control.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/control_service.create_control.js,packages/google-cloud-discoveryengine/samples/README.md) |
201203
| Control_service.delete_control | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/control_service.delete_control.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/control_service.delete_control.js,packages/google-cloud-discoveryengine/samples/README.md) |
@@ -280,8 +282,10 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
280282
| Site_search_engine_service.fetch_domain_verification_status | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/site_search_engine_service.fetch_domain_verification_status.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/site_search_engine_service.fetch_domain_verification_status.js,packages/google-cloud-discoveryengine/samples/README.md) |
281283
| Site_search_engine_service.get_site_search_engine | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/site_search_engine_service.get_site_search_engine.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/site_search_engine_service.get_site_search_engine.js,packages/google-cloud-discoveryengine/samples/README.md) |
282284
| Site_search_engine_service.get_target_site | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/site_search_engine_service.get_target_site.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/site_search_engine_service.get_target_site.js,packages/google-cloud-discoveryengine/samples/README.md) |
285+
| Site_search_engine_service.get_uri_pattern_document_data | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/site_search_engine_service.get_uri_pattern_document_data.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/site_search_engine_service.get_uri_pattern_document_data.js,packages/google-cloud-discoveryengine/samples/README.md) |
283286
| Site_search_engine_service.list_target_sites | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/site_search_engine_service.list_target_sites.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/site_search_engine_service.list_target_sites.js,packages/google-cloud-discoveryengine/samples/README.md) |
284287
| Site_search_engine_service.recrawl_uris | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/site_search_engine_service.recrawl_uris.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/site_search_engine_service.recrawl_uris.js,packages/google-cloud-discoveryengine/samples/README.md) |
288+
| Site_search_engine_service.set_uri_pattern_document_data | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/site_search_engine_service.set_uri_pattern_document_data.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/site_search_engine_service.set_uri_pattern_document_data.js,packages/google-cloud-discoveryengine/samples/README.md) |
285289
| Site_search_engine_service.update_target_site | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/site_search_engine_service.update_target_site.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/site_search_engine_service.update_target_site.js,packages/google-cloud-discoveryengine/samples/README.md) |
286290
| User_event_service.collect_user_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/user_event_service.collect_user_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/user_event_service.collect_user_event.js,packages/google-cloud-discoveryengine/samples/README.md) |
287291
| User_event_service.import_user_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/user_event_service.import_user_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-discoveryengine/samples/generated/v1alpha/user_event_service.import_user_events.js,packages/google-cloud-discoveryengine/samples/README.md) |

packages/google-cloud-discoveryengine/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"postpack": "minifyProtoJson",
4444
"samples-test": "cd samples/ && npm link ../ && npm i && npm test",
4545
"system-test": "c8 mocha build/system-test",
46-
"test": "c8 mocha build/test"
46+
"test": "NODE_OPTIONS=--max-old-space-size=8192 c8 mocha build/test"
4747
},
4848
"dependencies": {
4949
"google-gax": "^4.0.3"
@@ -68,4 +68,4 @@
6868
"engines": {
6969
"node": ">=14.0.0"
7070
}
71-
}
71+
}

packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1alpha/answer.proto

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ message Answer {
6969

7070
// Page identifier.
7171
string page_identifier = 2;
72+
73+
// The relevance of the chunk for a given query. Values range from 0.0
74+
// (completely irrelevant) to 1.0 (completely relevant).
75+
// This value is for informational purpose only. It may change for
76+
// the same query and chunk at any time due to a model retraining or
77+
// change in implementation.
78+
optional float relevance_score = 3;
7279
}
7380

7481
// Document resource name.
@@ -121,20 +128,38 @@ message Answer {
121128
// Chunk textual content.
122129
string content = 2;
123130

124-
// Relevance score.
131+
// The relevance of the chunk for a given query. Values range from 0.0
132+
// (completely irrelevant) to 1.0 (completely relevant).
133+
// This value is for informational purpose only. It may change for
134+
// the same query and chunk at any time due to a model retraining or
135+
// change in implementation.
125136
optional float relevance_score = 3;
126137

127138
// Document metadata.
128139
DocumentMetadata document_metadata = 4;
129140
}
130141

142+
// Structured search information.
143+
message StructuredDocumentInfo {
144+
// Document resource name.
145+
string document = 1 [(google.api.resource_reference) = {
146+
type: "discoveryengine.googleapis.com/Document"
147+
}];
148+
149+
// Structured search data.
150+
google.protobuf.Struct struct_data = 2;
151+
}
152+
131153
// Search result content.
132154
oneof content {
133155
// Unstructured document information.
134156
UnstructuredDocumentInfo unstructured_document_info = 1;
135157

136158
// Chunk information.
137159
ChunkInfo chunk_info = 2;
160+
161+
// Structured document information.
162+
StructuredDocumentInfo structured_document_info = 3;
138163
}
139164
}
140165

@@ -168,7 +193,11 @@ message Answer {
168193
// Chunk textual content.
169194
string content = 2;
170195

171-
// Relevance score.
196+
// The relevance of the chunk for a given query. Values range from
197+
// 0.0 (completely irrelevant) to 1.0 (completely relevant).
198+
// This value is for informational purpose only. It may change for
199+
// the same query and chunk at any time due to a model retraining or
200+
// change in implementation.
172201
optional float relevance_score = 3;
173202
}
174203

@@ -188,6 +217,14 @@ message Answer {
188217
// If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
189218
// populate chunk info.
190219
repeated ChunkInfo chunk_info = 5;
220+
221+
// Data representation.
222+
// The structured JSON data for the document.
223+
// It's populated from the struct data from the Document
224+
// , or the Chunk in
225+
// search result
226+
// .
227+
google.protobuf.Struct struct_data = 6;
191228
}
192229

193230
// Search results observed by the search action, it can be snippets info
@@ -247,6 +284,9 @@ message Answer {
247284

248285
// Non-answer-seeking query classification type.
249286
NON_ANSWER_SEEKING_QUERY = 2;
287+
288+
// Jail-breaking query classification type.
289+
JAIL_BREAKING_QUERY = 3;
250290
}
251291

252292
// Query classification type.
@@ -296,6 +336,19 @@ message Answer {
296336
// Google skips the answer if there is a potential policy violation
297337
// detected. This includes content that may be violent or toxic.
298338
POTENTIAL_POLICY_VIOLATION = 4;
339+
340+
// The no relevant content case.
341+
//
342+
// Google skips the answer if there is no relevant content in the
343+
// retrieved search results.
344+
NO_RELEVANT_CONTENT = 5;
345+
346+
// The jail-breaking query ignored case.
347+
//
348+
// For example, "Reply in the tone of a competing company's CEO".
349+
// Google skips the answer if the query is classified as a jail-breaking
350+
// query.
351+
JAIL_BREAKING_QUERY_IGNORED = 6;
299352
}
300353

301354
// Immutable. Fully qualified name

packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1alpha/chunk.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ message Chunk {
9696
// Content is a string from a document (parsed content).
9797
string content = 3;
9898

99-
// The relevance score based on similarity.
99+
// Output only. Represents the relevance score based on similarity.
100100
// Higher score indicates higher chunk relevance.
101101
// The score is in range [-1.0, 1.0].
102102
// Only populated on [SearchService.SearchResponse][].

packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1alpha/completion.proto

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,34 @@ message SuggestionDenyListEntry {
5050
// exact phrase, or block any suggestions containing this phrase.
5151
MatchOperator match_operator = 2 [(google.api.field_behavior) = REQUIRED];
5252
}
53+
54+
// Autocomplete suggestions that are imported from Customer.
55+
message CompletionSuggestion {
56+
// Ranking metrics of this suggestion.
57+
oneof ranking_info {
58+
// Global score of this suggestion. Control how this suggestion would be
59+
// scored / ranked.
60+
double global_score = 2;
61+
62+
// Frequency of this suggestion. Will be used to rank suggestions when score
63+
// is not available.
64+
int64 frequency = 3;
65+
}
66+
67+
// Required. The suggestion text.
68+
string suggestion = 1 [(google.api.field_behavior) = REQUIRED];
69+
70+
// BCP-47 language code of this suggestion.
71+
string language_code = 4;
72+
73+
// If two suggestions have the same groupId, they will not be
74+
// returned together. Instead the one ranked higher will be returned. This can
75+
// be used to deduplicate semantically identical suggestions.
76+
string group_id = 5;
77+
78+
// The score of this suggestion within its group.
79+
double group_score = 6;
80+
81+
// Alternative matching phrases for this suggestion.
82+
repeated string alternative_phrases = 7;
83+
}

packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,44 @@ service CompletionService {
8686
metadata_type: "google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata"
8787
};
8888
}
89+
90+
// Imports
91+
// [CompletionSuggestion][google.cloud.discoveryengine.v1alpha.CompletionSuggestion]s
92+
// for a DataStore.
93+
rpc ImportCompletionSuggestions(ImportCompletionSuggestionsRequest)
94+
returns (google.longrunning.Operation) {
95+
option (google.api.http) = {
96+
post: "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/completionSuggestions:import"
97+
body: "*"
98+
additional_bindings {
99+
post: "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/completionSuggestions:import"
100+
body: "*"
101+
}
102+
};
103+
option (google.longrunning.operation_info) = {
104+
response_type: "google.cloud.discoveryengine.v1alpha.ImportCompletionSuggestionsResponse"
105+
metadata_type: "google.cloud.discoveryengine.v1alpha.ImportCompletionSuggestionsMetadata"
106+
};
107+
}
108+
109+
// Permanently deletes all
110+
// [CompletionSuggestion][google.cloud.discoveryengine.v1alpha.CompletionSuggestion]s
111+
// for a DataStore.
112+
rpc PurgeCompletionSuggestions(PurgeCompletionSuggestionsRequest)
113+
returns (google.longrunning.Operation) {
114+
option (google.api.http) = {
115+
post: "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/completionSuggestions:purge"
116+
body: "*"
117+
additional_bindings {
118+
post: "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/completionSuggestions:purge"
119+
body: "*"
120+
}
121+
};
122+
option (google.longrunning.operation_info) = {
123+
response_type: "google.cloud.discoveryengine.v1alpha.PurgeCompletionSuggestionsResponse"
124+
metadata_type: "google.cloud.discoveryengine.v1alpha.PurgeCompletionSuggestionsMetadata"
125+
};
126+
}
89127
}
90128

91129
// Request message for

0 commit comments

Comments
 (0)