Skip to content

Commit a00913d

Browse files
feat(discoveryengine): update the API
#### discoveryengine:v1alpha The following keys were added: - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequest.properties.relevanceFilterSpec.$ref - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequest.properties.relevanceFilterSpec.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec.id - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec.properties.keywordSearchThreshold.$ref - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec.properties.keywordSearchThreshold.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec.properties.semanticSearchThreshold.$ref - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec.properties.semanticSearchThreshold.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec.type - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.id - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.enum - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.enumDescriptions - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.type - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.semanticRelevanceThreshold.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.semanticRelevanceThreshold.format - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.semanticRelevanceThreshold.type - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.type - schemas.GoogleCloudDiscoveryengineV1betaSearchRequest.properties.relevanceFilterSpec.$ref - schemas.GoogleCloudDiscoveryengineV1betaSearchRequest.properties.relevanceFilterSpec.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec.id - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec.properties.keywordSearchThreshold.$ref - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec.properties.keywordSearchThreshold.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec.properties.semanticSearchThreshold.$ref - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec.properties.semanticSearchThreshold.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec.type - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.id - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.enum - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.enumDescriptions - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.type - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.semanticRelevanceThreshold.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.semanticRelevanceThreshold.format - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.semanticRelevanceThreshold.type - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.type The following keys were changed: - resources.projects.resources.locations.resources.collections.methods.updateDataConnector.parameters.updateMask.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequest.properties.relevanceThreshold.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequest.properties.relevanceThreshold.description #### discoveryengine:v1beta The following keys were added: - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequest.properties.relevanceFilterSpec.$ref - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequest.properties.relevanceFilterSpec.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec.id - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec.properties.keywordSearchThreshold.$ref - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec.properties.keywordSearchThreshold.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec.properties.semanticSearchThreshold.$ref - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec.properties.semanticSearchThreshold.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec.type - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.id - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.enum - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.enumDescriptions - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.type - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.semanticRelevanceThreshold.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.semanticRelevanceThreshold.format - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.semanticRelevanceThreshold.type - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.type - schemas.GoogleCloudDiscoveryengineV1betaSearchRequest.properties.relevanceFilterSpec.$ref - schemas.GoogleCloudDiscoveryengineV1betaSearchRequest.properties.relevanceFilterSpec.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec.id - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec.properties.keywordSearchThreshold.$ref - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec.properties.keywordSearchThreshold.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec.properties.semanticSearchThreshold.$ref - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec.properties.semanticSearchThreshold.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec.type - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.id - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.enum - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.enumDescriptions - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.type - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.semanticRelevanceThreshold.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.semanticRelevanceThreshold.format - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.semanticRelevanceThreshold.type - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.type The following keys were changed: - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequest.properties.relevanceThreshold.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequest.properties.relevanceThreshold.description #### discoveryengine:v1 The following keys were added: - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequest.properties.relevanceFilterSpec.$ref - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequest.properties.relevanceFilterSpec.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec.id - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec.properties.keywordSearchThreshold.$ref - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec.properties.keywordSearchThreshold.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec.properties.semanticSearchThreshold.$ref - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec.properties.semanticSearchThreshold.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec.type - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.id - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.enum - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.enumDescriptions - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.type - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.semanticRelevanceThreshold.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.semanticRelevanceThreshold.format - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.semanticRelevanceThreshold.type - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.type - schemas.GoogleCloudDiscoveryengineV1betaSearchRequest.properties.relevanceFilterSpec.$ref - schemas.GoogleCloudDiscoveryengineV1betaSearchRequest.properties.relevanceFilterSpec.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec.id - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec.properties.keywordSearchThreshold.$ref - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec.properties.keywordSearchThreshold.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec.properties.semanticSearchThreshold.$ref - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec.properties.semanticSearchThreshold.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec.type - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.id - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.enum - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.enumDescriptions - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.relevanceThreshold.type - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.semanticRelevanceThreshold.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.semanticRelevanceThreshold.format - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.properties.semanticRelevanceThreshold.type - schemas.GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.type The following keys were changed: - resources.projects.resources.locations.resources.collections.methods.updateDataConnector.parameters.updateMask.description - schemas.GoogleCloudDiscoveryengineV1SearchRequest.properties.relevanceThreshold.description - schemas.GoogleCloudDiscoveryengineV1alphaSearchRequest.properties.relevanceThreshold.description - schemas.GoogleCloudDiscoveryengineV1betaSearchRequest.properties.relevanceThreshold.description
1 parent 9bca3fe commit a00913d

File tree

6 files changed

+509
-23
lines changed

6 files changed

+509
-23
lines changed

discovery/discoveryengine-v1.json

Lines changed: 103 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@
551551
"type": "string"
552552
},
553553
"updateMask": {
554-
"description": "Indicates which fields in the provided DataConnector to update. Supported field paths include: - refresh_interval - params - auto_run_disabled - action_config - action_config.action_params - action_config.service_name - destination_configs - blocking_reasons - sync_mode - incremental_sync_disabled - incremental_refresh_interval Note: Support for these fields may vary depending on the connector type. For example, not all connectors support `destination_configs`. If an unsupported or unknown field path is provided, the request will return an INVALID_ARGUMENT error.",
554+
"description": "Indicates which fields in the provided DataConnector to update. Supported field paths include: - `refresh_interval` - `params` - `auto_run_disabled` - `action_config` - `action_config.action_params` - `action_config.service_name` - `destination_configs` - `blocking_reasons` - `sync_mode` - `incremental_sync_disabled` - `incremental_refresh_interval` - `data_protection_policy` Note: Support for these fields may vary depending on the connector type. For example, not all connectors support `destination_configs`. If an unsupported or unknown field path is provided, the request will return an INVALID_ARGUMENT error.",
555555
"format": "google-fieldmask",
556556
"location": "query",
557557
"type": "string"
@@ -8801,7 +8801,7 @@
88018801
}
88028802
}
88038803
},
8804-
"revision": "20251216",
8804+
"revision": "20251221",
88058805
"rootUrl": "https://discoveryengine.googleapis.com/",
88068806
"schemas": {
88078807
"GoogleApiDistribution": {
@@ -16925,7 +16925,7 @@
1692516925
"description": "Optional. The specification for returning the relevance score."
1692616926
},
1692716927
"relevanceThreshold": {
16928-
"description": "The relevance threshold of the search results. Default to Google defined threshold, leveraging a balance of precision and recall to deliver both highly accurate results and comprehensive coverage of relevant information. This feature is not supported for healthcare search.",
16928+
"description": "The global relevance threshold of the search results. Defaults to Google defined threshold, leveraging a balance of precision and recall to deliver both highly accurate results and comprehensive coverage of relevant information. If more granular relevance filtering is required, use the `relevance_filter_spec` instead. This feature is not supported for healthcare search.",
1692916929
"enum": [
1693016930
"RELEVANCE_THRESHOLD_UNSPECIFIED",
1693116931
"LOWEST",
@@ -25340,12 +25340,16 @@
2534025340
"description": "The Unicode country/region code (CLDR) of a location, such as \"US\" and \"419\". For more information, see [Standard fields](https://cloud.google.com/apis/design/standard_fields). If set, then results will be boosted based on the region_code provided.",
2534125341
"type": "string"
2534225342
},
25343+
"relevanceFilterSpec": {
25344+
"$ref": "GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec",
25345+
"description": "Optional. The granular relevance filtering specification. If not specified, the global `relevance_threshold` will be used for all sub-searches. If specified, this overrides the global `relevance_threshold` to use thresholds on a per sub-search basis. This feature is currently supported only for custom and site search."
25346+
},
2534325347
"relevanceScoreSpec": {
2534425348
"$ref": "GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec",
2534525349
"description": "Optional. The specification for returning the relevance score."
2534625350
},
2534725351
"relevanceThreshold": {
25348-
"description": "The relevance threshold of the search results. Default to Google defined threshold, leveraging a balance of precision and recall to deliver both highly accurate results and comprehensive coverage of relevant information. This feature is not supported for healthcare search.",
25352+
"description": "The global relevance threshold of the search results. Defaults to Google defined threshold, leveraging a balance of precision and recall to deliver both highly accurate results and comprehensive coverage of relevant information. If more granular relevance filtering is required, use the `relevance_filter_spec` instead. This feature is not supported for healthcare search.",
2534925353
"enum": [
2535025354
"RELEVANCE_THRESHOLD_UNSPECIFIED",
2535125355
"LOWEST",
@@ -25997,6 +26001,51 @@
2599726001
},
2599826002
"type": "object"
2599926003
},
26004+
"GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec": {
26005+
"description": "Relevance filtering specification.",
26006+
"id": "GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec",
26007+
"properties": {
26008+
"keywordSearchThreshold": {
26009+
"$ref": "GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec",
26010+
"description": "Optional. Relevance filtering threshold specification for keyword search."
26011+
},
26012+
"semanticSearchThreshold": {
26013+
"$ref": "GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec",
26014+
"description": "Optional. Relevance filtering threshold specification for semantic search."
26015+
}
26016+
},
26017+
"type": "object"
26018+
},
26019+
"GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec": {
26020+
"description": "Specification for relevance filtering on a specific sub-search.",
26021+
"id": "GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec",
26022+
"properties": {
26023+
"relevanceThreshold": {
26024+
"description": "Pre-defined relevance threshold for the sub-search.",
26025+
"enum": [
26026+
"RELEVANCE_THRESHOLD_UNSPECIFIED",
26027+
"LOWEST",
26028+
"LOW",
26029+
"MEDIUM",
26030+
"HIGH"
26031+
],
26032+
"enumDescriptions": [
26033+
"Default value. In this case, server behavior defaults to Google defined threshold.",
26034+
"Lowest relevance threshold.",
26035+
"Low relevance threshold.",
26036+
"Medium relevance threshold.",
26037+
"High relevance threshold."
26038+
],
26039+
"type": "string"
26040+
},
26041+
"semanticRelevanceThreshold": {
26042+
"description": "Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].",
26043+
"format": "float",
26044+
"type": "number"
26045+
}
26046+
},
26047+
"type": "object"
26048+
},
2600026049
"GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec": {
2600126050
"description": "The specification for returning the document relevance score.",
2600226051
"id": "GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec",
@@ -29393,12 +29442,16 @@
2939329442
"description": "The Unicode country/region code (CLDR) of a location, such as \"US\" and \"419\". For more information, see [Standard fields](https://cloud.google.com/apis/design/standard_fields). If set, then results will be boosted based on the region_code provided.",
2939429443
"type": "string"
2939529444
},
29445+
"relevanceFilterSpec": {
29446+
"$ref": "GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec",
29447+
"description": "Optional. The granular relevance filtering specification. If not specified, the global `relevance_threshold` will be used for all sub-searches. If specified, this overrides the global `relevance_threshold` to use thresholds on a per sub-search basis. This feature is currently supported only for custom and site search."
29448+
},
2939629449
"relevanceScoreSpec": {
2939729450
"$ref": "GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec",
2939829451
"description": "Optional. The specification for returning the relevance score."
2939929452
},
2940029453
"relevanceThreshold": {
29401-
"description": "The relevance threshold of the search results. Default to Google defined threshold, leveraging a balance of precision and recall to deliver both highly accurate results and comprehensive coverage of relevant information. This feature is not supported for healthcare search.",
29454+
"description": "The global relevance threshold of the search results. Defaults to Google defined threshold, leveraging a balance of precision and recall to deliver both highly accurate results and comprehensive coverage of relevant information. If more granular relevance filtering is required, use the `relevance_filter_spec` instead. This feature is not supported for healthcare search.",
2940229455
"enum": [
2940329456
"RELEVANCE_THRESHOLD_UNSPECIFIED",
2940429457
"LOWEST",
@@ -30046,6 +30099,51 @@
3004630099
},
3004730100
"type": "object"
3004830101
},
30102+
"GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec": {
30103+
"description": "Relevance filtering specification.",
30104+
"id": "GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec",
30105+
"properties": {
30106+
"keywordSearchThreshold": {
30107+
"$ref": "GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec",
30108+
"description": "Optional. Relevance filtering threshold specification for keyword search."
30109+
},
30110+
"semanticSearchThreshold": {
30111+
"$ref": "GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec",
30112+
"description": "Optional. Relevance filtering threshold specification for semantic search."
30113+
}
30114+
},
30115+
"type": "object"
30116+
},
30117+
"GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec": {
30118+
"description": "Specification for relevance filtering on a specific sub-search.",
30119+
"id": "GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec",
30120+
"properties": {
30121+
"relevanceThreshold": {
30122+
"description": "Pre-defined relevance threshold for the sub-search.",
30123+
"enum": [
30124+
"RELEVANCE_THRESHOLD_UNSPECIFIED",
30125+
"LOWEST",
30126+
"LOW",
30127+
"MEDIUM",
30128+
"HIGH"
30129+
],
30130+
"enumDescriptions": [
30131+
"Default value. In this case, server behavior defaults to Google defined threshold.",
30132+
"Lowest relevance threshold.",
30133+
"Low relevance threshold.",
30134+
"Medium relevance threshold.",
30135+
"High relevance threshold."
30136+
],
30137+
"type": "string"
30138+
},
30139+
"semanticRelevanceThreshold": {
30140+
"description": "Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].",
30141+
"format": "float",
30142+
"type": "number"
30143+
}
30144+
},
30145+
"type": "object"
30146+
},
3004930147
"GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec": {
3005030148
"description": "The specification for returning the document relevance score.",
3005130149
"id": "GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec",

0 commit comments

Comments
 (0)