google-apis-discoveryengine_v1beta 0.58.0 → 0.60.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/discoveryengine_v1beta/classes.rb +471 -57
- data/lib/google/apis/discoveryengine_v1beta/gem_version.rb +2 -2
- data/lib/google/apis/discoveryengine_v1beta/representations.rb +171 -0
- data/lib/google/apis/discoveryengine_v1beta/service.rb +243 -0
- metadata +3 -3
@@ -867,6 +867,11 @@ module Google
|
|
867
867
|
# @return [String]
|
868
868
|
attr_accessor :name
|
869
869
|
|
870
|
+
# Output only. Whether the NotebookLM Corpus is ready to be used.
|
871
|
+
# Corresponds to the JSON property `notebooklmState`
|
872
|
+
# @return [String]
|
873
|
+
attr_accessor :notebooklm_state
|
874
|
+
|
870
875
|
# Optional. Single-regional CMEKs that are required for some VAIS features.
|
871
876
|
# Corresponds to the JSON property `singleRegionKeys`
|
872
877
|
# @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1SingleRegionKey>]
|
@@ -888,6 +893,7 @@ module Google
|
|
888
893
|
@kms_key_version = args[:kms_key_version] if args.key?(:kms_key_version)
|
889
894
|
@last_rotation_timestamp_micros = args[:last_rotation_timestamp_micros] if args.key?(:last_rotation_timestamp_micros)
|
890
895
|
@name = args[:name] if args.key?(:name)
|
896
|
+
@notebooklm_state = args[:notebooklm_state] if args.key?(:notebooklm_state)
|
891
897
|
@single_region_keys = args[:single_region_keys] if args.key?(:single_region_keys)
|
892
898
|
@state = args[:state] if args.key?(:state)
|
893
899
|
end
|
@@ -1446,6 +1452,17 @@ module Google
|
|
1446
1452
|
class GoogleCloudDiscoveryengineV1DataStore
|
1447
1453
|
include Google::Apis::Core::Hashable
|
1448
1454
|
|
1455
|
+
# Immutable. Whether data in the DataStore has ACL information. If set to `true`,
|
1456
|
+
# the source data must have ACL. ACL will be ingested when data is ingested by
|
1457
|
+
# DocumentService.ImportDocuments methods. When ACL is enabled for the DataStore,
|
1458
|
+
# Document can't be accessed by calling DocumentService.GetDocument or
|
1459
|
+
# DocumentService.ListDocuments. Currently ACL is only supported in `GENERIC`
|
1460
|
+
# industry vertical with non-`PUBLIC_WEBSITE` content config.
|
1461
|
+
# Corresponds to the JSON property `aclEnabled`
|
1462
|
+
# @return [Boolean]
|
1463
|
+
attr_accessor :acl_enabled
|
1464
|
+
alias_method :acl_enabled?, :acl_enabled
|
1465
|
+
|
1449
1466
|
# Configuration data for advance site search.
|
1450
1467
|
# Corresponds to the JSON property `advancedSiteSearchConfig`
|
1451
1468
|
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1AdvancedSiteSearchConfig]
|
@@ -1560,6 +1577,7 @@ module Google
|
|
1560
1577
|
|
1561
1578
|
# Update properties of this object
|
1562
1579
|
def update!(**args)
|
1580
|
+
@acl_enabled = args[:acl_enabled] if args.key?(:acl_enabled)
|
1563
1581
|
@advanced_site_search_config = args[:advanced_site_search_config] if args.key?(:advanced_site_search_config)
|
1564
1582
|
@billing_estimation = args[:billing_estimation] if args.key?(:billing_estimation)
|
1565
1583
|
@cmek_config = args[:cmek_config] if args.key?(:cmek_config)
|
@@ -2028,12 +2046,28 @@ module Google
|
|
2028
2046
|
class GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigLayoutParsingConfig
|
2029
2047
|
include Google::Apis::Core::Hashable
|
2030
2048
|
|
2049
|
+
# Optional. If true, the LLM based annotation is added to the image during
|
2050
|
+
# parsing.
|
2051
|
+
# Corresponds to the JSON property `enableImageAnnotation`
|
2052
|
+
# @return [Boolean]
|
2053
|
+
attr_accessor :enable_image_annotation
|
2054
|
+
alias_method :enable_image_annotation?, :enable_image_annotation
|
2055
|
+
|
2056
|
+
# Optional. If true, the LLM based annotation is added to the table during
|
2057
|
+
# parsing.
|
2058
|
+
# Corresponds to the JSON property `enableTableAnnotation`
|
2059
|
+
# @return [Boolean]
|
2060
|
+
attr_accessor :enable_table_annotation
|
2061
|
+
alias_method :enable_table_annotation?, :enable_table_annotation
|
2062
|
+
|
2031
2063
|
def initialize(**args)
|
2032
2064
|
update!(**args)
|
2033
2065
|
end
|
2034
2066
|
|
2035
2067
|
# Update properties of this object
|
2036
2068
|
def update!(**args)
|
2069
|
+
@enable_image_annotation = args[:enable_image_annotation] if args.key?(:enable_image_annotation)
|
2070
|
+
@enable_table_annotation = args[:enable_table_annotation] if args.key?(:enable_table_annotation)
|
2037
2071
|
end
|
2038
2072
|
end
|
2039
2073
|
|
@@ -4161,6 +4195,14 @@ module Google
|
|
4161
4195
|
attr_accessor :is_action_configured
|
4162
4196
|
alias_method :is_action_configured?, :is_action_configured
|
4163
4197
|
|
4198
|
+
# Optional. The Service Directory resource name (projects/*/locations/*/
|
4199
|
+
# namespaces/*/services/*) representing a VPC network endpoint used to connect
|
4200
|
+
# to the data source's `instance_uri`, defined in DataConnector.params. Required
|
4201
|
+
# when VPC Service Controls are enabled.
|
4202
|
+
# Corresponds to the JSON property `serviceName`
|
4203
|
+
# @return [String]
|
4204
|
+
attr_accessor :service_name
|
4205
|
+
|
4164
4206
|
def initialize(**args)
|
4165
4207
|
update!(**args)
|
4166
4208
|
end
|
@@ -4169,6 +4211,7 @@ module Google
|
|
4169
4211
|
def update!(**args)
|
4170
4212
|
@action_params = args[:action_params] if args.key?(:action_params)
|
4171
4213
|
@is_action_configured = args[:is_action_configured] if args.key?(:is_action_configured)
|
4214
|
+
@service_name = args[:service_name] if args.key?(:service_name)
|
4172
4215
|
end
|
4173
4216
|
end
|
4174
4217
|
|
@@ -4264,6 +4307,11 @@ module Google
|
|
4264
4307
|
# @return [String]
|
4265
4308
|
attr_accessor :answer_text
|
4266
4309
|
|
4310
|
+
# List of blob attachments in the answer.
|
4311
|
+
# Corresponds to the JSON property `blobAttachments`
|
4312
|
+
# @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAnswerBlobAttachment>]
|
4313
|
+
attr_accessor :blob_attachments
|
4314
|
+
|
4267
4315
|
# Citations.
|
4268
4316
|
# Corresponds to the JSON property `citations`
|
4269
4317
|
# @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAnswerCitation>]
|
@@ -4334,6 +4382,7 @@ module Google
|
|
4334
4382
|
def update!(**args)
|
4335
4383
|
@answer_skipped_reasons = args[:answer_skipped_reasons] if args.key?(:answer_skipped_reasons)
|
4336
4384
|
@answer_text = args[:answer_text] if args.key?(:answer_text)
|
4385
|
+
@blob_attachments = args[:blob_attachments] if args.key?(:blob_attachments)
|
4337
4386
|
@citations = args[:citations] if args.key?(:citations)
|
4338
4387
|
@complete_time = args[:complete_time] if args.key?(:complete_time)
|
4339
4388
|
@create_time = args[:create_time] if args.key?(:create_time)
|
@@ -4349,6 +4398,57 @@ module Google
|
|
4349
4398
|
end
|
4350
4399
|
end
|
4351
4400
|
|
4401
|
+
# Stores binarydata attached to text answer, e.g. image, video, audio, etc.
|
4402
|
+
class GoogleCloudDiscoveryengineV1alphaAnswerBlobAttachment
|
4403
|
+
include Google::Apis::Core::Hashable
|
4404
|
+
|
4405
|
+
# Output only. The attribution type of the blob.
|
4406
|
+
# Corresponds to the JSON property `attributionType`
|
4407
|
+
# @return [String]
|
4408
|
+
attr_accessor :attribution_type
|
4409
|
+
|
4410
|
+
# The media type and data of the blob.
|
4411
|
+
# Corresponds to the JSON property `data`
|
4412
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAnswerBlobAttachmentBlob]
|
4413
|
+
attr_accessor :data
|
4414
|
+
|
4415
|
+
def initialize(**args)
|
4416
|
+
update!(**args)
|
4417
|
+
end
|
4418
|
+
|
4419
|
+
# Update properties of this object
|
4420
|
+
def update!(**args)
|
4421
|
+
@attribution_type = args[:attribution_type] if args.key?(:attribution_type)
|
4422
|
+
@data = args[:data] if args.key?(:data)
|
4423
|
+
end
|
4424
|
+
end
|
4425
|
+
|
4426
|
+
# The media type and data of the blob.
|
4427
|
+
class GoogleCloudDiscoveryengineV1alphaAnswerBlobAttachmentBlob
|
4428
|
+
include Google::Apis::Core::Hashable
|
4429
|
+
|
4430
|
+
# Output only. Raw bytes.
|
4431
|
+
# Corresponds to the JSON property `data`
|
4432
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
4433
|
+
# @return [String]
|
4434
|
+
attr_accessor :data
|
4435
|
+
|
4436
|
+
# Output only. The media type (MIME type) of the generated or retrieved data.
|
4437
|
+
# Corresponds to the JSON property `mimeType`
|
4438
|
+
# @return [String]
|
4439
|
+
attr_accessor :mime_type
|
4440
|
+
|
4441
|
+
def initialize(**args)
|
4442
|
+
update!(**args)
|
4443
|
+
end
|
4444
|
+
|
4445
|
+
# Update properties of this object
|
4446
|
+
def update!(**args)
|
4447
|
+
@data = args[:data] if args.key?(:data)
|
4448
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
4449
|
+
end
|
4450
|
+
end
|
4451
|
+
|
4352
4452
|
# Citation info for a segment.
|
4353
4453
|
class GoogleCloudDiscoveryengineV1alphaAnswerCitation
|
4354
4454
|
include Google::Apis::Core::Hashable
|
@@ -4533,6 +4633,11 @@ module Google
|
|
4533
4633
|
class GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo
|
4534
4634
|
include Google::Apis::Core::Hashable
|
4535
4635
|
|
4636
|
+
# Output only. Stores indexes of blobattachments linked to this chunk.
|
4637
|
+
# Corresponds to the JSON property `blobAttachmentIndexes`
|
4638
|
+
# @return [Array<Fixnum>]
|
4639
|
+
attr_accessor :blob_attachment_indexes
|
4640
|
+
|
4536
4641
|
# Chunk resource name.
|
4537
4642
|
# Corresponds to the JSON property `chunk`
|
4538
4643
|
# @return [String]
|
@@ -4562,6 +4667,7 @@ module Google
|
|
4562
4667
|
|
4563
4668
|
# Update properties of this object
|
4564
4669
|
def update!(**args)
|
4670
|
+
@blob_attachment_indexes = args[:blob_attachment_indexes] if args.key?(:blob_attachment_indexes)
|
4565
4671
|
@chunk = args[:chunk] if args.key?(:chunk)
|
4566
4672
|
@content = args[:content] if args.key?(:content)
|
4567
4673
|
@document_metadata = args[:document_metadata] if args.key?(:document_metadata)
|
@@ -4698,6 +4804,11 @@ module Google
|
|
4698
4804
|
class GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent
|
4699
4805
|
include Google::Apis::Core::Hashable
|
4700
4806
|
|
4807
|
+
# Output only. Stores indexes of blobattachments linked to this chunk.
|
4808
|
+
# Corresponds to the JSON property `blobAttachmentIndexes`
|
4809
|
+
# @return [Array<Fixnum>]
|
4810
|
+
attr_accessor :blob_attachment_indexes
|
4811
|
+
|
4701
4812
|
# Chunk textual content.
|
4702
4813
|
# Corresponds to the JSON property `content`
|
4703
4814
|
# @return [String]
|
@@ -4722,6 +4833,7 @@ module Google
|
|
4722
4833
|
|
4723
4834
|
# Update properties of this object
|
4724
4835
|
def update!(**args)
|
4836
|
+
@blob_attachment_indexes = args[:blob_attachment_indexes] if args.key?(:blob_attachment_indexes)
|
4725
4837
|
@content = args[:content] if args.key?(:content)
|
4726
4838
|
@page_identifier = args[:page_identifier] if args.key?(:page_identifier)
|
4727
4839
|
@relevance_score = args[:relevance_score] if args.key?(:relevance_score)
|
@@ -5039,6 +5151,11 @@ module Google
|
|
5039
5151
|
# @return [String]
|
5040
5152
|
attr_accessor :name
|
5041
5153
|
|
5154
|
+
# Output only. Whether the NotebookLM Corpus is ready to be used.
|
5155
|
+
# Corresponds to the JSON property `notebooklmState`
|
5156
|
+
# @return [String]
|
5157
|
+
attr_accessor :notebooklm_state
|
5158
|
+
|
5042
5159
|
# Optional. Single-regional CMEKs that are required for some VAIS features.
|
5043
5160
|
# Corresponds to the JSON property `singleRegionKeys`
|
5044
5161
|
# @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSingleRegionKey>]
|
@@ -5060,6 +5177,7 @@ module Google
|
|
5060
5177
|
@kms_key_version = args[:kms_key_version] if args.key?(:kms_key_version)
|
5061
5178
|
@last_rotation_timestamp_micros = args[:last_rotation_timestamp_micros] if args.key?(:last_rotation_timestamp_micros)
|
5062
5179
|
@name = args[:name] if args.key?(:name)
|
5180
|
+
@notebooklm_state = args[:notebooklm_state] if args.key?(:notebooklm_state)
|
5063
5181
|
@single_region_keys = args[:single_region_keys] if args.key?(:single_region_keys)
|
5064
5182
|
@state = args[:state] if args.key?(:state)
|
5065
5183
|
end
|
@@ -6969,12 +7087,28 @@ module Google
|
|
6969
7087
|
class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig
|
6970
7088
|
include Google::Apis::Core::Hashable
|
6971
7089
|
|
7090
|
+
# Optional. If true, the LLM based annotation is added to the image during
|
7091
|
+
# parsing.
|
7092
|
+
# Corresponds to the JSON property `enableImageAnnotation`
|
7093
|
+
# @return [Boolean]
|
7094
|
+
attr_accessor :enable_image_annotation
|
7095
|
+
alias_method :enable_image_annotation?, :enable_image_annotation
|
7096
|
+
|
7097
|
+
# Optional. If true, the LLM based annotation is added to the table during
|
7098
|
+
# parsing.
|
7099
|
+
# Corresponds to the JSON property `enableTableAnnotation`
|
7100
|
+
# @return [Boolean]
|
7101
|
+
attr_accessor :enable_table_annotation
|
7102
|
+
alias_method :enable_table_annotation?, :enable_table_annotation
|
7103
|
+
|
6972
7104
|
def initialize(**args)
|
6973
7105
|
update!(**args)
|
6974
7106
|
end
|
6975
7107
|
|
6976
7108
|
# Update properties of this object
|
6977
7109
|
def update!(**args)
|
7110
|
+
@enable_image_annotation = args[:enable_image_annotation] if args.key?(:enable_image_annotation)
|
7111
|
+
@enable_table_annotation = args[:enable_table_annotation] if args.key?(:enable_table_annotation)
|
6978
7112
|
end
|
6979
7113
|
end
|
6980
7114
|
|
@@ -9458,10 +9592,10 @@ module Google
|
|
9458
9592
|
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec]
|
9459
9593
|
attr_accessor :custom_fine_tuning_spec
|
9460
9594
|
|
9461
|
-
# Specifications that define the specific
|
9462
|
-
#
|
9463
|
-
#
|
9464
|
-
#
|
9595
|
+
# Specifications that define the specific DataStores to be searched, along with
|
9596
|
+
# configurations for those data stores. This is only considered for Engines with
|
9597
|
+
# multiple data stores. For engines with a single data store, the specs directly
|
9598
|
+
# under SearchRequest should be used.
|
9465
9599
|
# Corresponds to the JSON property `dataStoreSpecs`
|
9466
9600
|
# @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec>]
|
9467
9601
|
attr_accessor :data_store_specs
|
@@ -9592,29 +9726,30 @@ module Google
|
|
9592
9726
|
# This overrides ServingConfig.ranking_expression. The syntax and supported
|
9593
9727
|
# features depend on the ranking_expression_backend value. If
|
9594
9728
|
# ranking_expression_backend is not provided, it defaults to BYOE. === BYOE ===
|
9595
|
-
# If
|
9596
|
-
# function or multiple functions that are joined by "+". *
|
9597
|
-
# function, ` " + ", function `; Supported functions: *
|
9598
|
-
# * double * dotProduct(embedding_field_path) Function
|
9599
|
-
# relevance_score`: pre-defined keywords, used for measure
|
9600
|
-
# query and document. * `embedding_field_path`: the document
|
9601
|
-
# used with query embedding vector. * `dotProduct`: embedding
|
9602
|
-
# embedding_field_path and query embedding vector. Example
|
9603
|
-
# If document has an embedding field doc_embedding, the
|
9604
|
-
# be `0.5 * relevance_score + 0.3 * dotProduct(
|
9605
|
-
# If
|
9606
|
-
#
|
9607
|
-
#
|
9608
|
-
#
|
9609
|
-
# is_nan(signal) -- returns 0 if signal
|
9610
|
-
#
|
9611
|
-
#
|
9612
|
-
#
|
9613
|
-
# 16) + 0.8 * rr(bm25_score, 32)
|
9614
|
-
#
|
9615
|
-
# adjustment *
|
9616
|
-
#
|
9617
|
-
# adjustment as a rank *
|
9729
|
+
# If ranking_expression_backend is not provided or set to `BYOE`, it should be a
|
9730
|
+
# single function or multiple functions that are joined by "+". *
|
9731
|
+
# ranking_expression = function, ` " + ", function `; Supported functions: *
|
9732
|
+
# double * relevance_score * double * dotProduct(embedding_field_path) Function
|
9733
|
+
# variables: * `relevance_score`: pre-defined keywords, used for measure
|
9734
|
+
# relevance between query and document. * `embedding_field_path`: the document
|
9735
|
+
# embedding field used with query embedding vector. * `dotProduct`: embedding
|
9736
|
+
# function between embedding_field_path and query embedding vector. Example
|
9737
|
+
# ranking expression: If document has an embedding field doc_embedding, the
|
9738
|
+
# ranking expression could be `0.5 * relevance_score + 0.3 * dotProduct(
|
9739
|
+
# doc_embedding)`. === CLEARBOX === If ranking_expression_backend is set to `
|
9740
|
+
# CLEARBOX`, the following expression types (and combinations of those chained
|
9741
|
+
# using + or * operators) are supported: * double * signal * log(signal) * exp(
|
9742
|
+
# signal) * rr(signal, double > 0) -- reciprocal rank transformation with second
|
9743
|
+
# argument being a denominator constant. * is_nan(signal) -- returns 0 if signal
|
9744
|
+
# is NaN, 1 otherwise. * fill_nan(signal1, signal2 | double) -- if signal1 is
|
9745
|
+
# NaN, returns signal2 | double, else returns signal1. Examples: * 0.2 *
|
9746
|
+
# gecko_score + 0.8 * log(bm25_score) * 0.2 * exp(fill_nan(gecko_score, 0)) + 0.
|
9747
|
+
# 3 * is_nan(bm25_score) * 0.2 * rr(gecko_score, 16) + 0.8 * rr(bm25_score, 32)
|
9748
|
+
# The following signals are supported: * gecko_score -- semantic similarity
|
9749
|
+
# adjustment * bm25_score -- keyword match adjustment * jetstream_score --
|
9750
|
+
# semantic relevance adjustment * pctr_rank -- predicted conversion rate
|
9751
|
+
# adjustment as a rank * freshness_rank -- freshness adjustment as a rank *
|
9752
|
+
# base_rank -- the default rank of the result
|
9618
9753
|
# Corresponds to the JSON property `rankingExpression`
|
9619
9754
|
# @return [String]
|
9620
9755
|
attr_accessor :ranking_expression
|
@@ -9781,7 +9916,7 @@ module Google
|
|
9781
9916
|
include Google::Apis::Core::Hashable
|
9782
9917
|
|
9783
9918
|
# Condition boost specifications. If a document matches multiple conditions in
|
9784
|
-
# the
|
9919
|
+
# the specifications, boost scores from these specifications are all applied and
|
9785
9920
|
# combined in a non-linear way. Maximum number of specifications is 20.
|
9786
9921
|
# Corresponds to the JSON property `conditionBoostSpecs`
|
9787
9922
|
# @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec>]
|
@@ -10180,6 +10315,12 @@ module Google
|
|
10180
10315
|
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec]
|
10181
10316
|
attr_accessor :model_spec
|
10182
10317
|
|
10318
|
+
# Multimodal specification: Will return an image from specified source. If
|
10319
|
+
# multiple sources are specified, the pick is a quality based decision.
|
10320
|
+
# Corresponds to the JSON property `multimodalSpec`
|
10321
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecMultiModalSpec]
|
10322
|
+
attr_accessor :multimodal_spec
|
10323
|
+
|
10183
10324
|
# The number of top results to generate the summary from. If the number of
|
10184
10325
|
# results returned is less than `summaryResultCount`, the summary is generated
|
10185
10326
|
# from all of the results. At most 10 results for documents mode, or 50 for
|
@@ -10213,6 +10354,7 @@ module Google
|
|
10213
10354
|
@language_code = args[:language_code] if args.key?(:language_code)
|
10214
10355
|
@model_prompt_spec = args[:model_prompt_spec] if args.key?(:model_prompt_spec)
|
10215
10356
|
@model_spec = args[:model_spec] if args.key?(:model_spec)
|
10357
|
+
@multimodal_spec = args[:multimodal_spec] if args.key?(:multimodal_spec)
|
10216
10358
|
@summary_result_count = args[:summary_result_count] if args.key?(:summary_result_count)
|
10217
10359
|
@use_semantic_chunks = args[:use_semantic_chunks] if args.key?(:use_semantic_chunks)
|
10218
10360
|
end
|
@@ -10264,6 +10406,26 @@ module Google
|
|
10264
10406
|
end
|
10265
10407
|
end
|
10266
10408
|
|
10409
|
+
# Multimodal specification: Will return an image from specified source. If
|
10410
|
+
# multiple sources are specified, the pick is a quality based decision.
|
10411
|
+
class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecMultiModalSpec
|
10412
|
+
include Google::Apis::Core::Hashable
|
10413
|
+
|
10414
|
+
# Optional. Source of image returned in the answer.
|
10415
|
+
# Corresponds to the JSON property `imageSource`
|
10416
|
+
# @return [String]
|
10417
|
+
attr_accessor :image_source
|
10418
|
+
|
10419
|
+
def initialize(**args)
|
10420
|
+
update!(**args)
|
10421
|
+
end
|
10422
|
+
|
10423
|
+
# Update properties of this object
|
10424
|
+
def update!(**args)
|
10425
|
+
@image_source = args[:image_source] if args.key?(:image_source)
|
10426
|
+
end
|
10427
|
+
end
|
10428
|
+
|
10267
10429
|
# A struct to define data stores to filter on in a search call and
|
10268
10430
|
# configurations for those data stores. Otherwise, an `INVALID_ARGUMENT` error
|
10269
10431
|
# is returned.
|
@@ -11378,6 +11540,11 @@ module Google
|
|
11378
11540
|
class GoogleCloudDiscoveryengineV1alphaUserInfo
|
11379
11541
|
include Google::Apis::Core::Hashable
|
11380
11542
|
|
11543
|
+
# Optional. IANA time zone, e.g. Europe/Budapest.
|
11544
|
+
# Corresponds to the JSON property `timeZone`
|
11545
|
+
# @return [String]
|
11546
|
+
attr_accessor :time_zone
|
11547
|
+
|
11381
11548
|
# User agent as included in the HTTP header. The field must be a UTF-8 encoded
|
11382
11549
|
# string with a length limit of 1,000 characters. Otherwise, an `
|
11383
11550
|
# INVALID_ARGUMENT` error is returned. This should not be set when using the
|
@@ -11403,6 +11570,7 @@ module Google
|
|
11403
11570
|
|
11404
11571
|
# Update properties of this object
|
11405
11572
|
def update!(**args)
|
11573
|
+
@time_zone = args[:time_zone] if args.key?(:time_zone)
|
11406
11574
|
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
11407
11575
|
@user_id = args[:user_id] if args.key?(:user_id)
|
11408
11576
|
end
|
@@ -11540,7 +11708,7 @@ module Google
|
|
11540
11708
|
include Google::Apis::Core::Hashable
|
11541
11709
|
|
11542
11710
|
# Condition boost specifications. If a suggestion matches multiple conditions in
|
11543
|
-
# the
|
11711
|
+
# the specifications, boost values from these specifications are all applied and
|
11544
11712
|
# combined in a non-linear way. Maximum number of specifications is 20. Note:
|
11545
11713
|
# Currently only support language condition boost.
|
11546
11714
|
# Corresponds to the JSON property `conditionBoostSpecs`
|
@@ -11948,6 +12116,11 @@ module Google
|
|
11948
12116
|
# @return [String]
|
11949
12117
|
attr_accessor :answer_text
|
11950
12118
|
|
12119
|
+
# List of blob attachments in the answer.
|
12120
|
+
# Corresponds to the JSON property `blobAttachments`
|
12121
|
+
# @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerBlobAttachment>]
|
12122
|
+
attr_accessor :blob_attachments
|
12123
|
+
|
11951
12124
|
# Citations.
|
11952
12125
|
# Corresponds to the JSON property `citations`
|
11953
12126
|
# @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerCitation>]
|
@@ -12018,6 +12191,7 @@ module Google
|
|
12018
12191
|
def update!(**args)
|
12019
12192
|
@answer_skipped_reasons = args[:answer_skipped_reasons] if args.key?(:answer_skipped_reasons)
|
12020
12193
|
@answer_text = args[:answer_text] if args.key?(:answer_text)
|
12194
|
+
@blob_attachments = args[:blob_attachments] if args.key?(:blob_attachments)
|
12021
12195
|
@citations = args[:citations] if args.key?(:citations)
|
12022
12196
|
@complete_time = args[:complete_time] if args.key?(:complete_time)
|
12023
12197
|
@create_time = args[:create_time] if args.key?(:create_time)
|
@@ -12033,6 +12207,57 @@ module Google
|
|
12033
12207
|
end
|
12034
12208
|
end
|
12035
12209
|
|
12210
|
+
# Stores binarydata attached to text answer, e.g. image, video, audio, etc.
|
12211
|
+
class GoogleCloudDiscoveryengineV1betaAnswerBlobAttachment
|
12212
|
+
include Google::Apis::Core::Hashable
|
12213
|
+
|
12214
|
+
# Output only. The attribution type of the blob.
|
12215
|
+
# Corresponds to the JSON property `attributionType`
|
12216
|
+
# @return [String]
|
12217
|
+
attr_accessor :attribution_type
|
12218
|
+
|
12219
|
+
# The media type and data of the blob.
|
12220
|
+
# Corresponds to the JSON property `data`
|
12221
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerBlobAttachmentBlob]
|
12222
|
+
attr_accessor :data
|
12223
|
+
|
12224
|
+
def initialize(**args)
|
12225
|
+
update!(**args)
|
12226
|
+
end
|
12227
|
+
|
12228
|
+
# Update properties of this object
|
12229
|
+
def update!(**args)
|
12230
|
+
@attribution_type = args[:attribution_type] if args.key?(:attribution_type)
|
12231
|
+
@data = args[:data] if args.key?(:data)
|
12232
|
+
end
|
12233
|
+
end
|
12234
|
+
|
12235
|
+
# The media type and data of the blob.
|
12236
|
+
class GoogleCloudDiscoveryengineV1betaAnswerBlobAttachmentBlob
|
12237
|
+
include Google::Apis::Core::Hashable
|
12238
|
+
|
12239
|
+
# Output only. Raw bytes.
|
12240
|
+
# Corresponds to the JSON property `data`
|
12241
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
12242
|
+
# @return [String]
|
12243
|
+
attr_accessor :data
|
12244
|
+
|
12245
|
+
# Output only. The media type (MIME type) of the generated or retrieved data.
|
12246
|
+
# Corresponds to the JSON property `mimeType`
|
12247
|
+
# @return [String]
|
12248
|
+
attr_accessor :mime_type
|
12249
|
+
|
12250
|
+
def initialize(**args)
|
12251
|
+
update!(**args)
|
12252
|
+
end
|
12253
|
+
|
12254
|
+
# Update properties of this object
|
12255
|
+
def update!(**args)
|
12256
|
+
@data = args[:data] if args.key?(:data)
|
12257
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
12258
|
+
end
|
12259
|
+
end
|
12260
|
+
|
12036
12261
|
# Citation info for a segment.
|
12037
12262
|
class GoogleCloudDiscoveryengineV1betaAnswerCitation
|
12038
12263
|
include Google::Apis::Core::Hashable
|
@@ -12317,6 +12542,12 @@ module Google
|
|
12317
12542
|
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecModelSpec]
|
12318
12543
|
attr_accessor :model_spec
|
12319
12544
|
|
12545
|
+
# Multimodal specification: Will return an image from specified source. If
|
12546
|
+
# multiple sources are specified, the pick is a quality based decision.
|
12547
|
+
# Corresponds to the JSON property `multimodalSpec`
|
12548
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecMultimodalSpec]
|
12549
|
+
attr_accessor :multimodal_spec
|
12550
|
+
|
12320
12551
|
# Answer generation prompt specification.
|
12321
12552
|
# Corresponds to the JSON property `promptSpec`
|
12322
12553
|
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecPromptSpec]
|
@@ -12335,6 +12566,7 @@ module Google
|
|
12335
12566
|
@ignore_non_answer_seeking_query = args[:ignore_non_answer_seeking_query] if args.key?(:ignore_non_answer_seeking_query)
|
12336
12567
|
@include_citations = args[:include_citations] if args.key?(:include_citations)
|
12337
12568
|
@model_spec = args[:model_spec] if args.key?(:model_spec)
|
12569
|
+
@multimodal_spec = args[:multimodal_spec] if args.key?(:multimodal_spec)
|
12338
12570
|
@prompt_spec = args[:prompt_spec] if args.key?(:prompt_spec)
|
12339
12571
|
end
|
12340
12572
|
end
|
@@ -12359,6 +12591,26 @@ module Google
|
|
12359
12591
|
end
|
12360
12592
|
end
|
12361
12593
|
|
12594
|
+
# Multimodal specification: Will return an image from specified source. If
|
12595
|
+
# multiple sources are specified, the pick is a quality based decision.
|
12596
|
+
class GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecMultimodalSpec
|
12597
|
+
include Google::Apis::Core::Hashable
|
12598
|
+
|
12599
|
+
# Optional. Source of image returned in the answer.
|
12600
|
+
# Corresponds to the JSON property `imageSource`
|
12601
|
+
# @return [String]
|
12602
|
+
attr_accessor :image_source
|
12603
|
+
|
12604
|
+
def initialize(**args)
|
12605
|
+
update!(**args)
|
12606
|
+
end
|
12607
|
+
|
12608
|
+
# Update properties of this object
|
12609
|
+
def update!(**args)
|
12610
|
+
@image_source = args[:image_source] if args.key?(:image_source)
|
12611
|
+
end
|
12612
|
+
end
|
12613
|
+
|
12362
12614
|
# Answer generation prompt specification.
|
12363
12615
|
class GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecPromptSpec
|
12364
12616
|
include Google::Apis::Core::Hashable
|
@@ -13115,6 +13367,11 @@ module Google
|
|
13115
13367
|
class GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfo
|
13116
13368
|
include Google::Apis::Core::Hashable
|
13117
13369
|
|
13370
|
+
# Output only. Stores indexes of blobattachments linked to this chunk.
|
13371
|
+
# Corresponds to the JSON property `blobAttachmentIndexes`
|
13372
|
+
# @return [Array<Fixnum>]
|
13373
|
+
attr_accessor :blob_attachment_indexes
|
13374
|
+
|
13118
13375
|
# Chunk resource name.
|
13119
13376
|
# Corresponds to the JSON property `chunk`
|
13120
13377
|
# @return [String]
|
@@ -13144,6 +13401,7 @@ module Google
|
|
13144
13401
|
|
13145
13402
|
# Update properties of this object
|
13146
13403
|
def update!(**args)
|
13404
|
+
@blob_attachment_indexes = args[:blob_attachment_indexes] if args.key?(:blob_attachment_indexes)
|
13147
13405
|
@chunk = args[:chunk] if args.key?(:chunk)
|
13148
13406
|
@content = args[:content] if args.key?(:content)
|
13149
13407
|
@document_metadata = args[:document_metadata] if args.key?(:document_metadata)
|
@@ -13280,6 +13538,11 @@ module Google
|
|
13280
13538
|
class GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfoChunkContent
|
13281
13539
|
include Google::Apis::Core::Hashable
|
13282
13540
|
|
13541
|
+
# Output only. Stores indexes of blobattachments linked to this chunk.
|
13542
|
+
# Corresponds to the JSON property `blobAttachmentIndexes`
|
13543
|
+
# @return [Array<Fixnum>]
|
13544
|
+
attr_accessor :blob_attachment_indexes
|
13545
|
+
|
13283
13546
|
# Chunk textual content.
|
13284
13547
|
# Corresponds to the JSON property `content`
|
13285
13548
|
# @return [String]
|
@@ -13304,6 +13567,7 @@ module Google
|
|
13304
13567
|
|
13305
13568
|
# Update properties of this object
|
13306
13569
|
def update!(**args)
|
13570
|
+
@blob_attachment_indexes = args[:blob_attachment_indexes] if args.key?(:blob_attachment_indexes)
|
13307
13571
|
@content = args[:content] if args.key?(:content)
|
13308
13572
|
@page_identifier = args[:page_identifier] if args.key?(:page_identifier)
|
13309
13573
|
@relevance_score = args[:relevance_score] if args.key?(:relevance_score)
|
@@ -14357,6 +14621,11 @@ module Google
|
|
14357
14621
|
# @return [String]
|
14358
14622
|
attr_accessor :name
|
14359
14623
|
|
14624
|
+
# Output only. Whether the NotebookLM Corpus is ready to be used.
|
14625
|
+
# Corresponds to the JSON property `notebooklmState`
|
14626
|
+
# @return [String]
|
14627
|
+
attr_accessor :notebooklm_state
|
14628
|
+
|
14360
14629
|
# Optional. Single-regional CMEKs that are required for some VAIS features.
|
14361
14630
|
# Corresponds to the JSON property `singleRegionKeys`
|
14362
14631
|
# @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSingleRegionKey>]
|
@@ -14378,6 +14647,7 @@ module Google
|
|
14378
14647
|
@kms_key_version = args[:kms_key_version] if args.key?(:kms_key_version)
|
14379
14648
|
@last_rotation_timestamp_micros = args[:last_rotation_timestamp_micros] if args.key?(:last_rotation_timestamp_micros)
|
14380
14649
|
@name = args[:name] if args.key?(:name)
|
14650
|
+
@notebooklm_state = args[:notebooklm_state] if args.key?(:notebooklm_state)
|
14381
14651
|
@single_region_keys = args[:single_region_keys] if args.key?(:single_region_keys)
|
14382
14652
|
@state = args[:state] if args.key?(:state)
|
14383
14653
|
end
|
@@ -15470,6 +15740,17 @@ module Google
|
|
15470
15740
|
class GoogleCloudDiscoveryengineV1betaDataStore
|
15471
15741
|
include Google::Apis::Core::Hashable
|
15472
15742
|
|
15743
|
+
# Immutable. Whether data in the DataStore has ACL information. If set to `true`,
|
15744
|
+
# the source data must have ACL. ACL will be ingested when data is ingested by
|
15745
|
+
# DocumentService.ImportDocuments methods. When ACL is enabled for the DataStore,
|
15746
|
+
# Document can't be accessed by calling DocumentService.GetDocument or
|
15747
|
+
# DocumentService.ListDocuments. Currently ACL is only supported in `GENERIC`
|
15748
|
+
# industry vertical with non-`PUBLIC_WEBSITE` content config.
|
15749
|
+
# Corresponds to the JSON property `aclEnabled`
|
15750
|
+
# @return [Boolean]
|
15751
|
+
attr_accessor :acl_enabled
|
15752
|
+
alias_method :acl_enabled?, :acl_enabled
|
15753
|
+
|
15473
15754
|
# Configuration data for advance site search.
|
15474
15755
|
# Corresponds to the JSON property `advancedSiteSearchConfig`
|
15475
15756
|
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAdvancedSiteSearchConfig]
|
@@ -15594,6 +15875,7 @@ module Google
|
|
15594
15875
|
|
15595
15876
|
# Update properties of this object
|
15596
15877
|
def update!(**args)
|
15878
|
+
@acl_enabled = args[:acl_enabled] if args.key?(:acl_enabled)
|
15597
15879
|
@advanced_site_search_config = args[:advanced_site_search_config] if args.key?(:advanced_site_search_config)
|
15598
15880
|
@billing_estimation = args[:billing_estimation] if args.key?(:billing_estimation)
|
15599
15881
|
@cmek_config = args[:cmek_config] if args.key?(:cmek_config)
|
@@ -16317,12 +16599,28 @@ module Google
|
|
16317
16599
|
class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigLayoutParsingConfig
|
16318
16600
|
include Google::Apis::Core::Hashable
|
16319
16601
|
|
16602
|
+
# Optional. If true, the LLM based annotation is added to the image during
|
16603
|
+
# parsing.
|
16604
|
+
# Corresponds to the JSON property `enableImageAnnotation`
|
16605
|
+
# @return [Boolean]
|
16606
|
+
attr_accessor :enable_image_annotation
|
16607
|
+
alias_method :enable_image_annotation?, :enable_image_annotation
|
16608
|
+
|
16609
|
+
# Optional. If true, the LLM based annotation is added to the table during
|
16610
|
+
# parsing.
|
16611
|
+
# Corresponds to the JSON property `enableTableAnnotation`
|
16612
|
+
# @return [Boolean]
|
16613
|
+
attr_accessor :enable_table_annotation
|
16614
|
+
alias_method :enable_table_annotation?, :enable_table_annotation
|
16615
|
+
|
16320
16616
|
def initialize(**args)
|
16321
16617
|
update!(**args)
|
16322
16618
|
end
|
16323
16619
|
|
16324
16620
|
# Update properties of this object
|
16325
16621
|
def update!(**args)
|
16622
|
+
@enable_image_annotation = args[:enable_image_annotation] if args.key?(:enable_image_annotation)
|
16623
|
+
@enable_table_annotation = args[:enable_table_annotation] if args.key?(:enable_table_annotation)
|
16326
16624
|
end
|
16327
16625
|
end
|
16328
16626
|
|
@@ -18098,6 +18396,25 @@ module Google
|
|
18098
18396
|
end
|
18099
18397
|
end
|
18100
18398
|
|
18399
|
+
# Response message for CmekConfigService.ListCmekConfigs method.
|
18400
|
+
class GoogleCloudDiscoveryengineV1betaListCmekConfigsResponse
|
18401
|
+
include Google::Apis::Core::Hashable
|
18402
|
+
|
18403
|
+
# All the customer's CmekConfigs.
|
18404
|
+
# Corresponds to the JSON property `cmekConfigs`
|
18405
|
+
# @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCmekConfig>]
|
18406
|
+
attr_accessor :cmek_configs
|
18407
|
+
|
18408
|
+
def initialize(**args)
|
18409
|
+
update!(**args)
|
18410
|
+
end
|
18411
|
+
|
18412
|
+
# Update properties of this object
|
18413
|
+
def update!(**args)
|
18414
|
+
@cmek_configs = args[:cmek_configs] if args.key?(:cmek_configs)
|
18415
|
+
end
|
18416
|
+
end
|
18417
|
+
|
18101
18418
|
# Response for ListControls method.
|
18102
18419
|
class GoogleCloudDiscoveryengineV1betaListControlsResponse
|
18103
18420
|
include Google::Apis::Core::Hashable
|
@@ -20275,10 +20592,10 @@ module Google
|
|
20275
20592
|
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec]
|
20276
20593
|
attr_accessor :content_search_spec
|
20277
20594
|
|
20278
|
-
# Specifications that define the specific
|
20279
|
-
#
|
20280
|
-
#
|
20281
|
-
#
|
20595
|
+
# Specifications that define the specific DataStores to be searched, along with
|
20596
|
+
# configurations for those data stores. This is only considered for Engines with
|
20597
|
+
# multiple data stores. For engines with a single data store, the specs directly
|
20598
|
+
# under SearchRequest should be used.
|
20282
20599
|
# Corresponds to the JSON property `dataStoreSpecs`
|
20283
20600
|
# @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec>]
|
20284
20601
|
attr_accessor :data_store_specs
|
@@ -20409,29 +20726,30 @@ module Google
|
|
20409
20726
|
# This overrides ServingConfig.ranking_expression. The syntax and supported
|
20410
20727
|
# features depend on the ranking_expression_backend value. If
|
20411
20728
|
# ranking_expression_backend is not provided, it defaults to BYOE. === BYOE ===
|
20412
|
-
# If
|
20413
|
-
# function or multiple functions that are joined by "+". *
|
20414
|
-
# function, ` " + ", function `; Supported functions: *
|
20415
|
-
# * double * dotProduct(embedding_field_path) Function
|
20416
|
-
# relevance_score`: pre-defined keywords, used for measure
|
20417
|
-
# query and document. * `embedding_field_path`: the document
|
20418
|
-
# used with query embedding vector. * `dotProduct`: embedding
|
20419
|
-
# embedding_field_path and query embedding vector. Example
|
20420
|
-
# If document has an embedding field doc_embedding, the
|
20421
|
-
# be `0.5 * relevance_score + 0.3 * dotProduct(
|
20422
|
-
# If
|
20423
|
-
#
|
20424
|
-
#
|
20425
|
-
#
|
20426
|
-
# is_nan(signal) -- returns 0 if signal
|
20427
|
-
#
|
20428
|
-
#
|
20429
|
-
#
|
20430
|
-
# 16) + 0.8 * rr(bm25_score, 32)
|
20431
|
-
#
|
20432
|
-
# adjustment *
|
20433
|
-
#
|
20434
|
-
# adjustment as a rank *
|
20729
|
+
# If ranking_expression_backend is not provided or set to `BYOE`, it should be a
|
20730
|
+
# single function or multiple functions that are joined by "+". *
|
20731
|
+
# ranking_expression = function, ` " + ", function `; Supported functions: *
|
20732
|
+
# double * relevance_score * double * dotProduct(embedding_field_path) Function
|
20733
|
+
# variables: * `relevance_score`: pre-defined keywords, used for measure
|
20734
|
+
# relevance between query and document. * `embedding_field_path`: the document
|
20735
|
+
# embedding field used with query embedding vector. * `dotProduct`: embedding
|
20736
|
+
# function between embedding_field_path and query embedding vector. Example
|
20737
|
+
# ranking expression: If document has an embedding field doc_embedding, the
|
20738
|
+
# ranking expression could be `0.5 * relevance_score + 0.3 * dotProduct(
|
20739
|
+
# doc_embedding)`. === CLEARBOX === If ranking_expression_backend is set to `
|
20740
|
+
# CLEARBOX`, the following expression types (and combinations of those chained
|
20741
|
+
# using + or * operators) are supported: * double * signal * log(signal) * exp(
|
20742
|
+
# signal) * rr(signal, double > 0) -- reciprocal rank transformation with second
|
20743
|
+
# argument being a denominator constant. * is_nan(signal) -- returns 0 if signal
|
20744
|
+
# is NaN, 1 otherwise. * fill_nan(signal1, signal2 | double) -- if signal1 is
|
20745
|
+
# NaN, returns signal2 | double, else returns signal1. Examples: * 0.2 *
|
20746
|
+
# gecko_score + 0.8 * log(bm25_score) * 0.2 * exp(fill_nan(gecko_score, 0)) + 0.
|
20747
|
+
# 3 * is_nan(bm25_score) * 0.2 * rr(gecko_score, 16) + 0.8 * rr(bm25_score, 32)
|
20748
|
+
# The following signals are supported: * gecko_score -- semantic similarity
|
20749
|
+
# adjustment * bm25_score -- keyword match adjustment * jetstream_score --
|
20750
|
+
# semantic relevance adjustment * pctr_rank -- predicted conversion rate
|
20751
|
+
# adjustment as a rank * freshness_rank -- freshness adjustment as a rank *
|
20752
|
+
# base_rank -- the default rank of the result
|
20435
20753
|
# Corresponds to the JSON property `rankingExpression`
|
20436
20754
|
# @return [String]
|
20437
20755
|
attr_accessor :ranking_expression
|
@@ -20597,7 +20915,7 @@ module Google
|
|
20597
20915
|
include Google::Apis::Core::Hashable
|
20598
20916
|
|
20599
20917
|
# Condition boost specifications. If a document matches multiple conditions in
|
20600
|
-
# the
|
20918
|
+
# the specifications, boost scores from these specifications are all applied and
|
20601
20919
|
# combined in a non-linear way. Maximum number of specifications is 20.
|
20602
20920
|
# Corresponds to the JSON property `conditionBoostSpecs`
|
20603
20921
|
# @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec>]
|
@@ -20996,6 +21314,12 @@ module Google
|
|
20996
21314
|
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelSpec]
|
20997
21315
|
attr_accessor :model_spec
|
20998
21316
|
|
21317
|
+
# Multimodal specification: Will return an image from specified source. If
|
21318
|
+
# multiple sources are specified, the pick is a quality based decision.
|
21319
|
+
# Corresponds to the JSON property `multimodalSpec`
|
21320
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecMultiModalSpec]
|
21321
|
+
attr_accessor :multimodal_spec
|
21322
|
+
|
20999
21323
|
# The number of top results to generate the summary from. If the number of
|
21000
21324
|
# results returned is less than `summaryResultCount`, the summary is generated
|
21001
21325
|
# from all of the results. At most 10 results for documents mode, or 50 for
|
@@ -21029,6 +21353,7 @@ module Google
|
|
21029
21353
|
@language_code = args[:language_code] if args.key?(:language_code)
|
21030
21354
|
@model_prompt_spec = args[:model_prompt_spec] if args.key?(:model_prompt_spec)
|
21031
21355
|
@model_spec = args[:model_spec] if args.key?(:model_spec)
|
21356
|
+
@multimodal_spec = args[:multimodal_spec] if args.key?(:multimodal_spec)
|
21032
21357
|
@summary_result_count = args[:summary_result_count] if args.key?(:summary_result_count)
|
21033
21358
|
@use_semantic_chunks = args[:use_semantic_chunks] if args.key?(:use_semantic_chunks)
|
21034
21359
|
end
|
@@ -21080,6 +21405,26 @@ module Google
|
|
21080
21405
|
end
|
21081
21406
|
end
|
21082
21407
|
|
21408
|
+
# Multimodal specification: Will return an image from specified source. If
|
21409
|
+
# multiple sources are specified, the pick is a quality based decision.
|
21410
|
+
class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecMultiModalSpec
|
21411
|
+
include Google::Apis::Core::Hashable
|
21412
|
+
|
21413
|
+
# Optional. Source of image returned in the answer.
|
21414
|
+
# Corresponds to the JSON property `imageSource`
|
21415
|
+
# @return [String]
|
21416
|
+
attr_accessor :image_source
|
21417
|
+
|
21418
|
+
def initialize(**args)
|
21419
|
+
update!(**args)
|
21420
|
+
end
|
21421
|
+
|
21422
|
+
# Update properties of this object
|
21423
|
+
def update!(**args)
|
21424
|
+
@image_source = args[:image_source] if args.key?(:image_source)
|
21425
|
+
end
|
21426
|
+
end
|
21427
|
+
|
21083
21428
|
# A struct to define data stores to filter on in a search call and
|
21084
21429
|
# configurations for those data stores. Otherwise, an `INVALID_ARGUMENT` error
|
21085
21430
|
# is returned.
|
@@ -22248,6 +22593,57 @@ module Google
|
|
22248
22593
|
end
|
22249
22594
|
end
|
22250
22595
|
|
22596
|
+
# Stores binarydata attached to text answer, e.g. image, video, audio, etc.
|
22597
|
+
class GoogleCloudDiscoveryengineV1betaSearchResponseSummaryBlobAttachment
|
22598
|
+
include Google::Apis::Core::Hashable
|
22599
|
+
|
22600
|
+
# Output only. The attribution type of the blob.
|
22601
|
+
# Corresponds to the JSON property `attributionType`
|
22602
|
+
# @return [String]
|
22603
|
+
attr_accessor :attribution_type
|
22604
|
+
|
22605
|
+
# Stores type and data of the blob.
|
22606
|
+
# Corresponds to the JSON property `data`
|
22607
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSummaryBlobAttachmentBlob]
|
22608
|
+
attr_accessor :data
|
22609
|
+
|
22610
|
+
def initialize(**args)
|
22611
|
+
update!(**args)
|
22612
|
+
end
|
22613
|
+
|
22614
|
+
# Update properties of this object
|
22615
|
+
def update!(**args)
|
22616
|
+
@attribution_type = args[:attribution_type] if args.key?(:attribution_type)
|
22617
|
+
@data = args[:data] if args.key?(:data)
|
22618
|
+
end
|
22619
|
+
end
|
22620
|
+
|
22621
|
+
# Stores type and data of the blob.
|
22622
|
+
class GoogleCloudDiscoveryengineV1betaSearchResponseSummaryBlobAttachmentBlob
|
22623
|
+
include Google::Apis::Core::Hashable
|
22624
|
+
|
22625
|
+
# Output only. Raw bytes.
|
22626
|
+
# Corresponds to the JSON property `data`
|
22627
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
22628
|
+
# @return [String]
|
22629
|
+
attr_accessor :data
|
22630
|
+
|
22631
|
+
# Output only. The media type (MIME type) of the generated data.
|
22632
|
+
# Corresponds to the JSON property `mimeType`
|
22633
|
+
# @return [String]
|
22634
|
+
attr_accessor :mime_type
|
22635
|
+
|
22636
|
+
def initialize(**args)
|
22637
|
+
update!(**args)
|
22638
|
+
end
|
22639
|
+
|
22640
|
+
# Update properties of this object
|
22641
|
+
def update!(**args)
|
22642
|
+
@data = args[:data] if args.key?(:data)
|
22643
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
22644
|
+
end
|
22645
|
+
end
|
22646
|
+
|
22251
22647
|
# Citation info for a segment.
|
22252
22648
|
class GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitation
|
22253
22649
|
include Google::Apis::Core::Hashable
|
@@ -22361,6 +22757,11 @@ module Google
|
|
22361
22757
|
class GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReferenceChunkContent
|
22362
22758
|
include Google::Apis::Core::Hashable
|
22363
22759
|
|
22760
|
+
# Output only. Stores indexes of blobattachments linked to this chunk.
|
22761
|
+
# Corresponds to the JSON property `blobAttachmentIndexes`
|
22762
|
+
# @return [Array<Fixnum>]
|
22763
|
+
attr_accessor :blob_attachment_indexes
|
22764
|
+
|
22364
22765
|
# Chunk textual content.
|
22365
22766
|
# Corresponds to the JSON property `content`
|
22366
22767
|
# @return [String]
|
@@ -22377,6 +22778,7 @@ module Google
|
|
22377
22778
|
|
22378
22779
|
# Update properties of this object
|
22379
22780
|
def update!(**args)
|
22781
|
+
@blob_attachment_indexes = args[:blob_attachment_indexes] if args.key?(:blob_attachment_indexes)
|
22380
22782
|
@content = args[:content] if args.key?(:content)
|
22381
22783
|
@page_identifier = args[:page_identifier] if args.key?(:page_identifier)
|
22382
22784
|
end
|
@@ -22413,6 +22815,11 @@ module Google
|
|
22413
22815
|
class GoogleCloudDiscoveryengineV1betaSearchResponseSummarySummaryWithMetadata
|
22414
22816
|
include Google::Apis::Core::Hashable
|
22415
22817
|
|
22818
|
+
# Output only. Store multimodal data for answer enhancement.
|
22819
|
+
# Corresponds to the JSON property `blobAttachments`
|
22820
|
+
# @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSummaryBlobAttachment>]
|
22821
|
+
attr_accessor :blob_attachments
|
22822
|
+
|
22416
22823
|
# Citation metadata.
|
22417
22824
|
# Corresponds to the JSON property `citationMetadata`
|
22418
22825
|
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationMetadata]
|
@@ -22434,6 +22841,7 @@ module Google
|
|
22434
22841
|
|
22435
22842
|
# Update properties of this object
|
22436
22843
|
def update!(**args)
|
22844
|
+
@blob_attachments = args[:blob_attachments] if args.key?(:blob_attachments)
|
22437
22845
|
@citation_metadata = args[:citation_metadata] if args.key?(:citation_metadata)
|
22438
22846
|
@references = args[:references] if args.key?(:references)
|
22439
22847
|
@summary = args[:summary] if args.key?(:summary)
|
@@ -23806,6 +24214,11 @@ module Google
|
|
23806
24214
|
class GoogleCloudDiscoveryengineV1betaUserInfo
|
23807
24215
|
include Google::Apis::Core::Hashable
|
23808
24216
|
|
24217
|
+
# Optional. IANA time zone, e.g. Europe/Budapest.
|
24218
|
+
# Corresponds to the JSON property `timeZone`
|
24219
|
+
# @return [String]
|
24220
|
+
attr_accessor :time_zone
|
24221
|
+
|
23809
24222
|
# User agent as included in the HTTP header. The field must be a UTF-8 encoded
|
23810
24223
|
# string with a length limit of 1,000 characters. Otherwise, an `
|
23811
24224
|
# INVALID_ARGUMENT` error is returned. This should not be set when using the
|
@@ -23831,6 +24244,7 @@ module Google
|
|
23831
24244
|
|
23832
24245
|
# Update properties of this object
|
23833
24246
|
def update!(**args)
|
24247
|
+
@time_zone = args[:time_zone] if args.key?(:time_zone)
|
23834
24248
|
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
23835
24249
|
@user_id = args[:user_id] if args.key?(:user_id)
|
23836
24250
|
end
|