@@ -11684,10 +11684,12 @@ class GoogleCloudDiscoveryengineV1SearchRequest
1168411684 # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchRequestRelevanceScoreSpec]
1168511685 attr_accessor :relevance_score_spec
1168611686
11687- # The relevance threshold of the search results. Default to Google defined
11688- # threshold, leveraging a balance of precision and recall to deliver both highly
11689- # accurate results and comprehensive coverage of relevant information. This
11690- # feature is not supported for healthcare search.
11687+ # The global relevance threshold of the search results. Defaults to Google
11688+ # defined threshold, leveraging a balance of precision and recall to deliver
11689+ # both highly accurate results and comprehensive coverage of relevant
11690+ # information. If more granular relevance filtering is required, use the `
11691+ # relevance_filter_spec` instead. This feature is not supported for healthcare
11692+ # search.
1169111693 # Corresponds to the JSON property `relevanceThreshold`
1169211694 # @return [String]
1169311695 attr_accessor :relevance_threshold
@@ -23222,15 +23224,22 @@ class GoogleCloudDiscoveryengineV1alphaSearchRequest
2322223224 # @return [String]
2322323225 attr_accessor :region_code
2322423226
23227+ # Relevance filtering specification.
23228+ # Corresponds to the JSON property `relevanceFilterSpec`
23229+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec]
23230+ attr_accessor :relevance_filter_spec
23231+
2322523232 # The specification for returning the document relevance score.
2322623233 # Corresponds to the JSON property `relevanceScoreSpec`
2322723234 # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec]
2322823235 attr_accessor :relevance_score_spec
2322923236
23230- # The relevance threshold of the search results. Default to Google defined
23231- # threshold, leveraging a balance of precision and recall to deliver both highly
23232- # accurate results and comprehensive coverage of relevant information. This
23233- # feature is not supported for healthcare search.
23237+ # The global relevance threshold of the search results. Defaults to Google
23238+ # defined threshold, leveraging a balance of precision and recall to deliver
23239+ # both highly accurate results and comprehensive coverage of relevant
23240+ # information. If more granular relevance filtering is required, use the `
23241+ # relevance_filter_spec` instead. This feature is not supported for healthcare
23242+ # search.
2323423243 # Corresponds to the JSON property `relevanceThreshold`
2323523244 # @return [String]
2323623245 attr_accessor :relevance_threshold
@@ -23366,6 +23375,7 @@ def update!(**args)
2336623375 @ranking_expression = args[:ranking_expression] if args.key?(:ranking_expression)
2336723376 @ranking_expression_backend = args[:ranking_expression_backend] if args.key?(:ranking_expression_backend)
2336823377 @region_code = args[:region_code] if args.key?(:region_code)
23378+ @relevance_filter_spec = args[:relevance_filter_spec] if args.key?(:relevance_filter_spec)
2336923379 @relevance_score_spec = args[:relevance_score_spec] if args.key?(:relevance_score_spec)
2337023380 @relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold)
2337123381 @safe_search = args[:safe_search] if args.key?(:safe_search)
@@ -24319,6 +24329,56 @@ def update!(**args)
2431924329 end
2432024330 end
2432124331
24332+ # Relevance filtering specification.
24333+ class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec
24334+ include Google::Apis::Core::Hashable
24335+
24336+ # Specification for relevance filtering on a specific sub-search.
24337+ # Corresponds to the JSON property `keywordSearchThreshold`
24338+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec]
24339+ attr_accessor :keyword_search_threshold
24340+
24341+ # Specification for relevance filtering on a specific sub-search.
24342+ # Corresponds to the JSON property `semanticSearchThreshold`
24343+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec]
24344+ attr_accessor :semantic_search_threshold
24345+
24346+ def initialize(**args)
24347+ update!(**args)
24348+ end
24349+
24350+ # Update properties of this object
24351+ def update!(**args)
24352+ @keyword_search_threshold = args[:keyword_search_threshold] if args.key?(:keyword_search_threshold)
24353+ @semantic_search_threshold = args[:semantic_search_threshold] if args.key?(:semantic_search_threshold)
24354+ end
24355+ end
24356+
24357+ # Specification for relevance filtering on a specific sub-search.
24358+ class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec
24359+ include Google::Apis::Core::Hashable
24360+
24361+ # Pre-defined relevance threshold for the sub-search.
24362+ # Corresponds to the JSON property `relevanceThreshold`
24363+ # @return [String]
24364+ attr_accessor :relevance_threshold
24365+
24366+ # Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].
24367+ # Corresponds to the JSON property `semanticRelevanceThreshold`
24368+ # @return [Float]
24369+ attr_accessor :semantic_relevance_threshold
24370+
24371+ def initialize(**args)
24372+ update!(**args)
24373+ end
24374+
24375+ # Update properties of this object
24376+ def update!(**args)
24377+ @relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold)
24378+ @semantic_relevance_threshold = args[:semantic_relevance_threshold] if args.key?(:semantic_relevance_threshold)
24379+ end
24380+ end
24381+
2432224382 # The specification for returning the document relevance score.
2432324383 class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec
2432424384 include Google::Apis::Core::Hashable
@@ -29107,15 +29167,22 @@ class GoogleCloudDiscoveryengineV1betaSearchRequest
2910729167 # @return [String]
2910829168 attr_accessor :region_code
2910929169
29170+ # Relevance filtering specification.
29171+ # Corresponds to the JSON property `relevanceFilterSpec`
29172+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec]
29173+ attr_accessor :relevance_filter_spec
29174+
2911029175 # The specification for returning the document relevance score.
2911129176 # Corresponds to the JSON property `relevanceScoreSpec`
2911229177 # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec]
2911329178 attr_accessor :relevance_score_spec
2911429179
29115- # The relevance threshold of the search results. Default to Google defined
29116- # threshold, leveraging a balance of precision and recall to deliver both highly
29117- # accurate results and comprehensive coverage of relevant information. This
29118- # feature is not supported for healthcare search.
29180+ # The global relevance threshold of the search results. Defaults to Google
29181+ # defined threshold, leveraging a balance of precision and recall to deliver
29182+ # both highly accurate results and comprehensive coverage of relevant
29183+ # information. If more granular relevance filtering is required, use the `
29184+ # relevance_filter_spec` instead. This feature is not supported for healthcare
29185+ # search.
2911929186 # Corresponds to the JSON property `relevanceThreshold`
2912029187 # @return [String]
2912129188 attr_accessor :relevance_threshold
@@ -29241,6 +29308,7 @@ def update!(**args)
2924129308 @ranking_expression = args[:ranking_expression] if args.key?(:ranking_expression)
2924229309 @ranking_expression_backend = args[:ranking_expression_backend] if args.key?(:ranking_expression_backend)
2924329310 @region_code = args[:region_code] if args.key?(:region_code)
29311+ @relevance_filter_spec = args[:relevance_filter_spec] if args.key?(:relevance_filter_spec)
2924429312 @relevance_score_spec = args[:relevance_score_spec] if args.key?(:relevance_score_spec)
2924529313 @relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold)
2924629314 @safe_search = args[:safe_search] if args.key?(:safe_search)
@@ -30193,6 +30261,56 @@ def update!(**args)
3019330261 end
3019430262 end
3019530263
30264+ # Relevance filtering specification.
30265+ class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec
30266+ include Google::Apis::Core::Hashable
30267+
30268+ # Specification for relevance filtering on a specific sub-search.
30269+ # Corresponds to the JSON property `keywordSearchThreshold`
30270+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec]
30271+ attr_accessor :keyword_search_threshold
30272+
30273+ # Specification for relevance filtering on a specific sub-search.
30274+ # Corresponds to the JSON property `semanticSearchThreshold`
30275+ # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec]
30276+ attr_accessor :semantic_search_threshold
30277+
30278+ def initialize(**args)
30279+ update!(**args)
30280+ end
30281+
30282+ # Update properties of this object
30283+ def update!(**args)
30284+ @keyword_search_threshold = args[:keyword_search_threshold] if args.key?(:keyword_search_threshold)
30285+ @semantic_search_threshold = args[:semantic_search_threshold] if args.key?(:semantic_search_threshold)
30286+ end
30287+ end
30288+
30289+ # Specification for relevance filtering on a specific sub-search.
30290+ class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec
30291+ include Google::Apis::Core::Hashable
30292+
30293+ # Pre-defined relevance threshold for the sub-search.
30294+ # Corresponds to the JSON property `relevanceThreshold`
30295+ # @return [String]
30296+ attr_accessor :relevance_threshold
30297+
30298+ # Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].
30299+ # Corresponds to the JSON property `semanticRelevanceThreshold`
30300+ # @return [Float]
30301+ attr_accessor :semantic_relevance_threshold
30302+
30303+ def initialize(**args)
30304+ update!(**args)
30305+ end
30306+
30307+ # Update properties of this object
30308+ def update!(**args)
30309+ @relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold)
30310+ @semantic_relevance_threshold = args[:semantic_relevance_threshold] if args.key?(:semantic_relevance_threshold)
30311+ end
30312+ end
30313+
3019630314 # The specification for returning the document relevance score.
3019730315 class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec
3019830316 include Google::Apis::Core::Hashable
0 commit comments