google-cloud-discovery_engine-v1beta 0.7.2 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +235 -4
  4. data/lib/google/cloud/discovery_engine/v1beta/completion_service/operations.rb +801 -0
  5. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +221 -4
  6. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/operations.rb +1077 -0
  7. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/service_stub.rb +136 -0
  8. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest.rb +1 -0
  9. data/lib/google/cloud/discovery_engine/v1beta/completion_service.rb +1 -0
  10. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +20 -3
  11. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/paths.rb +91 -0
  12. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +20 -3
  13. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/service_stub.rb +45 -0
  14. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/client.rb +925 -0
  15. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/credentials.rb +47 -0
  16. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/operations.rb +801 -0
  17. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/paths.rb +97 -0
  18. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/client.rb +864 -0
  19. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/operations.rb +1077 -0
  20. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/service_stub.rb +403 -0
  21. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest.rb +54 -0
  22. data/lib/google/cloud/discovery_engine/v1beta/data_store_service.rb +57 -0
  23. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +14 -0
  24. data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +887 -0
  25. data/lib/google/cloud/discovery_engine/v1beta/engine_service/credentials.rb +47 -0
  26. data/lib/google/cloud/discovery_engine/v1beta/engine_service/operations.rb +801 -0
  27. data/lib/google/cloud/discovery_engine/v1beta/engine_service/paths.rb +73 -0
  28. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/client.rb +826 -0
  29. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/operations.rb +1077 -0
  30. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/service_stub.rb +366 -0
  31. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest.rb +54 -0
  32. data/lib/google/cloud/discovery_engine/v1beta/engine_service.rb +57 -0
  33. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +22 -3
  34. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/paths.rb +19 -0
  35. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/client.rb +22 -3
  36. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/service_stub.rb +8 -0
  37. data/lib/google/cloud/discovery_engine/v1beta/rest.rb +4 -0
  38. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +14 -0
  39. data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +48 -10
  40. data/lib/google/cloud/discovery_engine/v1beta/search_service/paths.rb +19 -0
  41. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +48 -10
  42. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/service_stub.rb +8 -0
  43. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/client.rb +646 -0
  44. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/credentials.rb +47 -0
  45. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/paths.rb +146 -0
  46. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/client.rb +599 -0
  47. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/service_stub.rb +291 -0
  48. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest.rb +52 -0
  49. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service.rb +55 -0
  50. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/client.rb +1635 -0
  51. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/credentials.rb +47 -0
  52. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/operations.rb +801 -0
  53. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/paths.rb +127 -0
  54. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/client.rb +1525 -0
  55. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/operations.rb +1077 -0
  56. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/service_stub.rb +860 -0
  57. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest.rb +53 -0
  58. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service.rb +56 -0
  59. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +14 -0
  60. data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
  61. data/lib/google/cloud/discovery_engine/v1beta.rb +4 -0
  62. data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +6 -1
  63. data/lib/google/cloud/discoveryengine/v1beta/completion_pb.rb +45 -0
  64. data/lib/google/cloud/discoveryengine/v1beta/completion_service_pb.rb +4 -1
  65. data/lib/google/cloud/discoveryengine/v1beta/completion_service_services_pb.rb +8 -0
  66. data/lib/google/cloud/discoveryengine/v1beta/conversation_pb.rb +1 -1
  67. data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +1 -1
  68. data/lib/google/cloud/discoveryengine/v1beta/data_store_pb.rb +49 -0
  69. data/lib/google/cloud/discoveryengine/v1beta/data_store_service_pb.rb +62 -0
  70. data/lib/google/cloud/discoveryengine/v1beta/data_store_service_services_pb.rb +61 -0
  71. data/lib/google/cloud/discoveryengine/v1beta/document_pb.rb +1 -1
  72. data/lib/google/cloud/discoveryengine/v1beta/document_service_pb.rb +1 -1
  73. data/lib/google/cloud/discoveryengine/v1beta/engine_pb.rb +53 -0
  74. data/lib/google/cloud/discoveryengine/v1beta/engine_service_pb.rb +62 -0
  75. data/lib/google/cloud/discoveryengine/v1beta/engine_service_services_pb.rb +55 -0
  76. data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +7 -1
  77. data/lib/google/cloud/discoveryengine/v1beta/purge_config_pb.rb +6 -1
  78. data/lib/google/cloud/discoveryengine/v1beta/recommendation_service_pb.rb +1 -1
  79. data/lib/google/cloud/discoveryengine/v1beta/schema_pb.rb +1 -1
  80. data/lib/google/cloud/discoveryengine/v1beta/schema_service_pb.rb +1 -1
  81. data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +8 -1
  82. data/lib/google/cloud/discoveryengine/v1beta/serving_config_pb.rb +53 -0
  83. data/lib/google/cloud/discoveryengine/v1beta/serving_config_service_pb.rb +54 -0
  84. data/lib/google/cloud/discoveryengine/v1beta/serving_config_service_services_pb.rb +53 -0
  85. data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_pb.rb +54 -0
  86. data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_service_pb.rb +82 -0
  87. data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_service_services_pb.rb +74 -0
  88. data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +1 -1
  89. data/lib/google/cloud/discoveryengine/v1beta/user_event_service_pb.rb +1 -1
  90. data/proto_docs/google/cloud/discoveryengine/v1beta/common.rb +60 -0
  91. data/proto_docs/google/cloud/discoveryengine/v1beta/completion.rb +53 -0
  92. data/proto_docs/google/cloud/discoveryengine/v1beta/completion_service.rb +10 -4
  93. data/proto_docs/google/cloud/discoveryengine/v1beta/conversation.rb +2 -0
  94. data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +19 -1
  95. data/proto_docs/google/cloud/discoveryengine/v1beta/data_store.rb +88 -0
  96. data/proto_docs/google/cloud/discoveryengine/v1beta/data_store_service.rb +216 -0
  97. data/proto_docs/google/cloud/discoveryengine/v1beta/document.rb +1 -1
  98. data/proto_docs/google/cloud/discoveryengine/v1beta/engine.rb +219 -0
  99. data/proto_docs/google/cloud/discoveryengine/v1beta/engine_service.rb +179 -0
  100. data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +66 -0
  101. data/proto_docs/google/cloud/discoveryengine/v1beta/purge_config.rb +41 -0
  102. data/proto_docs/google/cloud/discoveryengine/v1beta/recommendation_service.rb +22 -3
  103. data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +166 -15
  104. data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config.rb +247 -0
  105. data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config_service.rb +85 -0
  106. data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine.rb +160 -0
  107. data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine_service.rb +528 -0
  108. data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +4 -3
  109. metadata +62 -116
@@ -338,6 +338,72 @@ module Google
338
338
  include ::Google::Protobuf::MessageExts
339
339
  extend ::Google::Protobuf::MessageExts::ClassMethods
340
340
  end
341
+
342
+ # Request message for
343
+ # {::Google::Cloud::DiscoveryEngine::V1beta::CompletionService::Client#import_suggestion_deny_list_entries CompletionService.ImportSuggestionDenyListEntries}
344
+ # method.
345
+ # @!attribute [rw] inline_source
346
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::ImportSuggestionDenyListEntriesRequest::InlineSource]
347
+ # The Inline source for the input content for suggestion deny list entries.
348
+ # @!attribute [rw] gcs_source
349
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::GcsSource]
350
+ # Cloud Storage location for the input content.
351
+ #
352
+ # Only 1 file can be specified that contains all entries to import.
353
+ # Supported values `gcs_source.schema` for autocomplete suggestion deny
354
+ # list entry imports:
355
+ #
356
+ # * `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry]
357
+ # per line.
358
+ # @!attribute [rw] parent
359
+ # @return [::String]
360
+ # Required. The parent data store resource name for which to import denylist
361
+ # entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
362
+ class ImportSuggestionDenyListEntriesRequest
363
+ include ::Google::Protobuf::MessageExts
364
+ extend ::Google::Protobuf::MessageExts::ClassMethods
365
+
366
+ # The inline source for SuggestionDenyListEntry.
367
+ # @!attribute [rw] entries
368
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::SuggestionDenyListEntry>]
369
+ # Required. A list of all denylist entries to import. Max of 1000 items.
370
+ class InlineSource
371
+ include ::Google::Protobuf::MessageExts
372
+ extend ::Google::Protobuf::MessageExts::ClassMethods
373
+ end
374
+ end
375
+
376
+ # Response message for
377
+ # {::Google::Cloud::DiscoveryEngine::V1beta::CompletionService::Client#import_suggestion_deny_list_entries CompletionService.ImportSuggestionDenyListEntries}
378
+ # method.
379
+ # @!attribute [rw] error_samples
380
+ # @return [::Array<::Google::Rpc::Status>]
381
+ # A sample of errors encountered while processing the request.
382
+ # @!attribute [rw] imported_entries_count
383
+ # @return [::Integer]
384
+ # Count of deny list entries successfully imported.
385
+ # @!attribute [rw] failed_entries_count
386
+ # @return [::Integer]
387
+ # Count of deny list entries that failed to be imported.
388
+ class ImportSuggestionDenyListEntriesResponse
389
+ include ::Google::Protobuf::MessageExts
390
+ extend ::Google::Protobuf::MessageExts::ClassMethods
391
+ end
392
+
393
+ # Metadata related to the progress of the ImportSuggestionDenyListEntries
394
+ # operation. This is returned by the google.longrunning.Operation.metadata
395
+ # field.
396
+ # @!attribute [rw] create_time
397
+ # @return [::Google::Protobuf::Timestamp]
398
+ # Operation create time.
399
+ # @!attribute [rw] update_time
400
+ # @return [::Google::Protobuf::Timestamp]
401
+ # Operation last update time. If the operation is done, this is also the
402
+ # finish time.
403
+ class ImportSuggestionDenyListEntriesMetadata
404
+ include ::Google::Protobuf::MessageExts
405
+ extend ::Google::Protobuf::MessageExts::ClassMethods
406
+ end
341
407
  end
342
408
  end
343
409
  end
@@ -78,6 +78,47 @@ module Google
78
78
  include ::Google::Protobuf::MessageExts
79
79
  extend ::Google::Protobuf::MessageExts::ClassMethods
80
80
  end
81
+
82
+ # Request message for
83
+ # {::Google::Cloud::DiscoveryEngine::V1beta::CompletionService::Client#purge_suggestion_deny_list_entries CompletionService.PurgeSuggestionDenyListEntries}
84
+ # method.
85
+ # @!attribute [rw] parent
86
+ # @return [::String]
87
+ # Required. The parent data store resource name for which to import denylist
88
+ # entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
89
+ class PurgeSuggestionDenyListEntriesRequest
90
+ include ::Google::Protobuf::MessageExts
91
+ extend ::Google::Protobuf::MessageExts::ClassMethods
92
+ end
93
+
94
+ # Response message for
95
+ # {::Google::Cloud::DiscoveryEngine::V1beta::CompletionService::Client#purge_suggestion_deny_list_entries CompletionService.PurgeSuggestionDenyListEntries}
96
+ # method.
97
+ # @!attribute [rw] purge_count
98
+ # @return [::Integer]
99
+ # Number of suggestion deny list entries purged.
100
+ # @!attribute [rw] error_samples
101
+ # @return [::Array<::Google::Rpc::Status>]
102
+ # A sample of errors encountered while processing the request.
103
+ class PurgeSuggestionDenyListEntriesResponse
104
+ include ::Google::Protobuf::MessageExts
105
+ extend ::Google::Protobuf::MessageExts::ClassMethods
106
+ end
107
+
108
+ # Metadata related to the progress of the PurgeSuggestionDenyListEntries
109
+ # operation. This is returned by the google.longrunning.Operation.metadata
110
+ # field.
111
+ # @!attribute [rw] create_time
112
+ # @return [::Google::Protobuf::Timestamp]
113
+ # Operation create time.
114
+ # @!attribute [rw] update_time
115
+ # @return [::Google::Protobuf::Timestamp]
116
+ # Operation last update time. If the operation is done, this is also the
117
+ # finish time.
118
+ class PurgeSuggestionDenyListEntriesMetadata
119
+ include ::Google::Protobuf::MessageExts
120
+ extend ::Google::Protobuf::MessageExts::ClassMethods
121
+ end
81
122
  end
82
123
  end
83
124
  end
@@ -24,11 +24,19 @@ module Google
24
24
  # Request message for Recommend method.
25
25
  # @!attribute [rw] serving_config
26
26
  # @return [::String]
27
- # Required. Full resource name of the format:
27
+ # Required. Full resource name of a
28
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ServingConfig ServingConfig}:
29
+ # `projects/*/locations/global/collections/*/engines/*/servingConfigs/*`, or
28
30
  # `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
29
31
  #
30
- # Before you can request recommendations from your model, you must create at
31
- # least one serving config for it.
32
+ # One default serving config is created along with your recommendation engine
33
+ # creation. The engine ID will be used as the ID of the default serving
34
+ # config. For example, for Engine
35
+ # `projects/*/locations/global/collections/*/engines/my-engine`, you can use
36
+ # `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs/my-engine`
37
+ # for your
38
+ # {::Google::Cloud::DiscoveryEngine::V1beta::RecommendationService::Client#recommend RecommendationService.Recommend}
39
+ # requests.
32
40
  # @!attribute [rw] user_event
33
41
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::UserEvent]
34
42
  # Required. Context about the user, what they are looking at and what action
@@ -65,6 +73,14 @@ module Google
65
73
  # * `(filter_tags: ANY("Red", "Blue") OR filter_tags: ANY("Hot", "Cold"))`
66
74
  # * `(filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags: ANY("Green"))`
67
75
  #
76
+ # If `attributeFilteringSyntax` is set to true under the `params` field, then
77
+ # attribute-based expressions are expected instead of the above described
78
+ # tag-based syntax. Examples:
79
+ #
80
+ # * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie"))
81
+ # * (available: true) AND
82
+ # (launguage: ANY("en", "es")) OR (categories: ANY("Movie"))
83
+ #
68
84
  # If your filter blocks all results, the API will return generic
69
85
  # (unfiltered) popular Documents. If you only want results strictly matching
70
86
  # the filters, set `strictFiltering` to True in
@@ -106,6 +122,9 @@ module Google
106
122
  # * `auto-diversity`
107
123
  # This gives request-level control and adjusts recommendation results
108
124
  # based on Document category.
125
+ # * `attributeFilteringSyntax`: Boolean. False by default. If set to true,
126
+ # the `filter` field is interpreted according to the new,
127
+ # attribute-based syntax.
109
128
  # @!attribute [rw] user_labels
110
129
  # @return [::Google::Protobuf::Map{::String => ::String}]
111
130
  # The user labels applied to a resource must meet the following requirements:
@@ -27,6 +27,8 @@ module Google
27
27
  # @!attribute [rw] serving_config
28
28
  # @return [::String]
29
29
  # Required. The resource name of the Search serving config, such as
30
+ # `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
31
+ # or
30
32
  # `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
31
33
  # This field is used to identify the serving configuration name, set
32
34
  # of models used to make the search.
@@ -77,12 +79,37 @@ module Google
77
79
  # expression is case-sensitive.
78
80
  #
79
81
  # If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
82
+ #
83
+ # Filtering in Vertex AI Search is done by mapping the LHS filter key to a
84
+ # key property defined in the Vertex AI Search backend -- this mapping is
85
+ # defined by the customer in their schema. For example a media customer might
86
+ # have a field 'name' in their schema. In this case the filter would look
87
+ # like this: filter --> name:'ANY("king kong")'
88
+ #
89
+ # For more information about filtering including syntax and filter
90
+ # operators, see
91
+ # [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
92
+ # @!attribute [rw] canonical_filter
93
+ # @return [::String]
94
+ # The default filter that is applied when a user performs a search without
95
+ # checking any filters on the search page.
96
+ #
97
+ # The filter applied to every search request when quality improvement such as
98
+ # query expansion is needed. In the case a query does not have a sufficient
99
+ # amount of results this filter will be used to determine whether or not to
100
+ # enable the query expansion flow. The original filter will still be used for
101
+ # the query expanded search.
102
+ # This field is strongly recommended to achieve high search quality.
103
+ #
104
+ # For more information about filter syntax, see
105
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest#filter SearchRequest.filter}.
80
106
  # @!attribute [rw] order_by
81
107
  # @return [::String]
82
108
  # The order in which documents are returned. Documents can be ordered by
83
109
  # a field in an {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}
84
110
  # object. Leave it unset if ordered by relevance. `order_by` expression is
85
- # case-sensitive.
111
+ # case-sensitive. For more information on ordering, see
112
+ # [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
86
113
  #
87
114
  # If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
88
115
  # @!attribute [rw] user_info
@@ -100,6 +127,8 @@ module Google
100
127
  # @!attribute [rw] boost_spec
101
128
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::BoostSpec]
102
129
  # Boost specification to boost certain documents.
130
+ # For more information on boosting, see
131
+ # [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
103
132
  # @!attribute [rw] params
104
133
  # @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}]
105
134
  # Additional search parameters.
@@ -108,9 +137,17 @@ module Google
108
137
  #
109
138
  # * `user_country_code`: string. Default empty. If set to non-empty, results
110
139
  # are restricted or boosted based on the location provided.
140
+ # Example:
141
+ # user_country_code: "au"
142
+ #
143
+ # For available codes see [Country
144
+ # Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
145
+ #
111
146
  # * `search_type`: double. Default empty. Enables non-webpage searching
112
- # depending on the value. The only valid non-default value is 1,
113
- # which enables image searching.
147
+ # depending on the value. The only valid non-default value is 1,
148
+ # which enables image searching.
149
+ # Example:
150
+ # search_type: 1
114
151
  # @!attribute [rw] query_expansion_spec
115
152
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::QueryExpansionSpec]
116
153
  # The query expansion specification that specifies the conditions under which
@@ -142,16 +179,18 @@ module Google
142
179
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::EmbeddingSpec]
143
180
  # Uses the provided embedding to do additional semantic document retrieval.
144
181
  # The retrieval is based on the dot product of
145
- # [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
146
- # embedding that is provided in
147
- # [SearchRequest.embedding_spec.embedding_vectors.field_path][].
182
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::EmbeddingSpec::EmbeddingVector#vector SearchRequest.EmbeddingSpec.EmbeddingVector.vector}
183
+ # and the document embedding that is provided in
184
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::EmbeddingSpec::EmbeddingVector#field_path SearchRequest.EmbeddingSpec.EmbeddingVector.field_path}.
148
185
  #
149
- # If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
150
- # provided, it will use [ServingConfig.embedding_config.field_paths][].
186
+ # If
187
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::EmbeddingSpec::EmbeddingVector#field_path SearchRequest.EmbeddingSpec.EmbeddingVector.field_path}
188
+ # is not provided, it will use [ServingConfig.EmbeddingConfig.field_path][].
151
189
  # @!attribute [rw] ranking_expression
152
190
  # @return [::String]
153
191
  # The ranking expression controls the customized ranking on retrieval
154
- # documents. This overrides [ServingConfig.ranking_expression][].
192
+ # documents. This overrides
193
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ServingConfig#ranking_expression ServingConfig.ranking_expression}.
155
194
  # The ranking expression is a single function or multiple functions that are
156
195
  # joint by "+".
157
196
  # * ranking_expression = function, { " + ", function };
@@ -546,13 +585,50 @@ module Google
546
585
  # navigational queries. If this field is set to `true`, we skip
547
586
  # generating summaries for non-summary seeking queries and return
548
587
  # fallback messages instead.
588
+ # @!attribute [rw] model_prompt_spec
589
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::SummarySpec::ModelPromptSpec]
590
+ # If specified, the spec will be used to modify the prompt provided to
591
+ # the LLM.
549
592
  # @!attribute [rw] language_code
550
593
  # @return [::String]
551
594
  # Language code for Summary. Use language tags defined by
552
- # [BCP47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt].
595
+ # [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
596
+ # Note: This is an experimental feature.
597
+ # @!attribute [rw] model_spec
598
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::SummarySpec::ModelSpec]
599
+ # If specified, the spec will be used to modify the model specification
600
+ # provided to the LLM.
553
601
  class SummarySpec
554
602
  include ::Google::Protobuf::MessageExts
555
603
  extend ::Google::Protobuf::MessageExts::ClassMethods
604
+
605
+ # Specification of the prompt to use with the model.
606
+ # @!attribute [rw] preamble
607
+ # @return [::String]
608
+ # Text at the beginning of the prompt that instructs the assistant.
609
+ # Examples are available in the user guide.
610
+ class ModelPromptSpec
611
+ include ::Google::Protobuf::MessageExts
612
+ extend ::Google::Protobuf::MessageExts::ClassMethods
613
+ end
614
+
615
+ # Specification of the model.
616
+ # @!attribute [rw] version
617
+ # @return [::String]
618
+ # The model version used to generate the summary.
619
+ #
620
+ # Supported values are:
621
+ #
622
+ # * `stable`: string. Default value when no value is specified. Uses a
623
+ # generally available, fine-tuned version of the text-bison@001
624
+ # model.
625
+ # * `preview`: string. (Public preview) Uses a fine-tuned version of
626
+ # the text-bison@002 model. This model works only for summaries in
627
+ # English.
628
+ class ModelSpec
629
+ include ::Google::Protobuf::MessageExts
630
+ extend ::Google::Protobuf::MessageExts::ClassMethods
631
+ end
556
632
  end
557
633
 
558
634
  # A specification for configuring the extractive content in a search
@@ -570,18 +646,18 @@ module Google
570
646
  # `max_extractive_answer_count`, return all of the answers. Otherwise,
571
647
  # return the `max_extractive_answer_count`.
572
648
  #
573
- # At most one answer is returned for each
649
+ # At most five answers are returned for each
574
650
  # {::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::SearchResult SearchResult}.
575
651
  # @!attribute [rw] max_extractive_segment_count
576
652
  # @return [::Integer]
577
653
  # The max number of extractive segments returned in each search result.
578
654
  # Only applied if the
579
- # [DataStore][google.cloud.discoveryengine.v1beta.DataStore] is set to
580
- # [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.CONTENT_REQUIRED]
655
+ # {::Google::Cloud::DiscoveryEngine::V1beta::DataStore DataStore} is set to
656
+ # {::Google::Cloud::DiscoveryEngine::V1beta::DataStore::ContentConfig::CONTENT_REQUIRED DataStore.ContentConfig.CONTENT_REQUIRED}
581
657
  # or
582
- # [DataStore.solution_types][google.cloud.discoveryengine.v1beta.DataStore.solution_types]
658
+ # {::Google::Cloud::DiscoveryEngine::V1beta::DataStore#solution_types DataStore.solution_types}
583
659
  # is
584
- # [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
660
+ # {::Google::Cloud::DiscoveryEngine::V1beta::SolutionType::SOLUTION_TYPE_CHAT SOLUTION_TYPE_CHAT}.
585
661
  #
586
662
  # An extractive segment is a text segment extracted from the original
587
663
  # document that is relevant to the search query, and, in general, more
@@ -595,6 +671,9 @@ module Google
595
671
  # @return [::Boolean]
596
672
  # Specifies whether to return the confidence score from the extractive
597
673
  # segments in each search result. The default value is `false`.
674
+ #
675
+ # Note: this is a priavte preview feature and only works for allowlisted
676
+ # users, please reach out to Cloud Support team if you want to use it.
598
677
  # @!attribute [rw] num_previous_segments
599
678
  # @return [::Integer]
600
679
  # Specifies whether to also include the adjacent from each selected
@@ -809,6 +888,9 @@ module Google
809
888
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::Summary::SafetyAttributes]
810
889
  # A collection of Safety Attribute categories and their associated
811
890
  # confidence scores.
891
+ # @!attribute [rw] summary_with_metadata
892
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::Summary::SummaryWithMetadata]
893
+ # Summary with metadata information.
812
894
  class Summary
813
895
  include ::Google::Protobuf::MessageExts
814
896
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -827,6 +909,75 @@ module Google
827
909
  extend ::Google::Protobuf::MessageExts::ClassMethods
828
910
  end
829
911
 
912
+ # Citation metadata.
913
+ # @!attribute [rw] citations
914
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::Summary::Citation>]
915
+ # Citations for segments.
916
+ class CitationMetadata
917
+ include ::Google::Protobuf::MessageExts
918
+ extend ::Google::Protobuf::MessageExts::ClassMethods
919
+ end
920
+
921
+ # Citation info for a segment.
922
+ # @!attribute [rw] start_index
923
+ # @return [::Integer]
924
+ # Index indicates the start of the segment, measured in bytes/unicode.
925
+ # @!attribute [rw] end_index
926
+ # @return [::Integer]
927
+ # End of the attributed segment, exclusive.
928
+ # @!attribute [rw] sources
929
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::Summary::CitationSource>]
930
+ # Citation sources for the attributed segment.
931
+ class Citation
932
+ include ::Google::Protobuf::MessageExts
933
+ extend ::Google::Protobuf::MessageExts::ClassMethods
934
+ end
935
+
936
+ # Citation source.
937
+ # @!attribute [rw] reference_index
938
+ # @return [::Integer]
939
+ # Document reference index from SummaryWithMetadata.references.
940
+ # It is 0-indexed and the value will be zero if the reference_index is
941
+ # not set explicitly.
942
+ class CitationSource
943
+ include ::Google::Protobuf::MessageExts
944
+ extend ::Google::Protobuf::MessageExts::ClassMethods
945
+ end
946
+
947
+ # Document reference.
948
+ # @!attribute [rw] title
949
+ # @return [::String]
950
+ # Title of the document.
951
+ # @!attribute [rw] document
952
+ # @return [::String]
953
+ # Required.
954
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Document#name Document.name} of
955
+ # the document. Full resource name of the referenced document, in the
956
+ # format
957
+ # `projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`.
958
+ # @!attribute [rw] uri
959
+ # @return [::String]
960
+ # Cloud Storage or HTTP uri for the document.
961
+ class Reference
962
+ include ::Google::Protobuf::MessageExts
963
+ extend ::Google::Protobuf::MessageExts::ClassMethods
964
+ end
965
+
966
+ # Summary with metadata information.
967
+ # @!attribute [rw] summary
968
+ # @return [::String]
969
+ # Summary text with no citation information.
970
+ # @!attribute [rw] citation_metadata
971
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::Summary::CitationMetadata]
972
+ # Citation metadata for given summary.
973
+ # @!attribute [rw] references
974
+ # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::Summary::Reference>]
975
+ # Document References.
976
+ class SummaryWithMetadata
977
+ include ::Google::Protobuf::MessageExts
978
+ extend ::Google::Protobuf::MessageExts::ClassMethods
979
+ end
980
+
830
981
  # An Enum for summary-skipped reasons.
831
982
  module SummarySkippedReason
832
983
  # Default value. The summary skipped reason is not specified.