@@ -13345,15 +13345,22 @@ class GoogleCloudDiscoveryengineV1alphaSearchRequest
1334513345 # @return [String]
1334613346 attr_accessor :region_code
1334713347
13348+ # Relevance filtering specification.
13349+ # Corresponds to the JSON property `relevanceFilterSpec`
13350+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec]
13351+ attr_accessor :relevance_filter_spec
13352+
1334813353 # The specification for returning the document relevance score.
1334913354 # Corresponds to the JSON property `relevanceScoreSpec`
1335013355 # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec]
1335113356 attr_accessor :relevance_score_spec
1335213357
13353- # The relevance threshold of the search results. Default to Google defined
13354- # threshold, leveraging a balance of precision and recall to deliver both highly
13355- # accurate results and comprehensive coverage of relevant information. This
13356- # feature is not supported for healthcare search.
13358+ # The global relevance threshold of the search results. Defaults to Google
13359+ # defined threshold, leveraging a balance of precision and recall to deliver
13360+ # both highly accurate results and comprehensive coverage of relevant
13361+ # information. If more granular relevance filtering is required, use the `
13362+ # relevance_filter_spec` instead. This feature is not supported for healthcare
13363+ # search.
1335713364 # Corresponds to the JSON property `relevanceThreshold`
1335813365 # @return [String]
1335913366 attr_accessor :relevance_threshold
@@ -13489,6 +13496,7 @@ def update!(**args)
1348913496 @ranking_expression = args[:ranking_expression] if args.key?(:ranking_expression)
1349013497 @ranking_expression_backend = args[:ranking_expression_backend] if args.key?(:ranking_expression_backend)
1349113498 @region_code = args[:region_code] if args.key?(:region_code)
13499+ @relevance_filter_spec = args[:relevance_filter_spec] if args.key?(:relevance_filter_spec)
1349213500 @relevance_score_spec = args[:relevance_score_spec] if args.key?(:relevance_score_spec)
1349313501 @relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold)
1349413502 @safe_search = args[:safe_search] if args.key?(:safe_search)
@@ -14442,6 +14450,56 @@ def update!(**args)
1444214450 end
1444314451 end
1444414452
14453+ # Relevance filtering specification.
14454+ class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec
14455+ include Google::Apis::Core::Hashable
14456+
14457+ # Specification for relevance filtering on a specific sub-search.
14458+ # Corresponds to the JSON property `keywordSearchThreshold`
14459+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec]
14460+ attr_accessor :keyword_search_threshold
14461+
14462+ # Specification for relevance filtering on a specific sub-search.
14463+ # Corresponds to the JSON property `semanticSearchThreshold`
14464+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec]
14465+ attr_accessor :semantic_search_threshold
14466+
14467+ def initialize(**args)
14468+ update!(**args)
14469+ end
14470+
14471+ # Update properties of this object
14472+ def update!(**args)
14473+ @keyword_search_threshold = args[:keyword_search_threshold] if args.key?(:keyword_search_threshold)
14474+ @semantic_search_threshold = args[:semantic_search_threshold] if args.key?(:semantic_search_threshold)
14475+ end
14476+ end
14477+
14478+ # Specification for relevance filtering on a specific sub-search.
14479+ class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec
14480+ include Google::Apis::Core::Hashable
14481+
14482+ # Pre-defined relevance threshold for the sub-search.
14483+ # Corresponds to the JSON property `relevanceThreshold`
14484+ # @return [String]
14485+ attr_accessor :relevance_threshold
14486+
14487+ # Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].
14488+ # Corresponds to the JSON property `semanticRelevanceThreshold`
14489+ # @return [Float]
14490+ attr_accessor :semantic_relevance_threshold
14491+
14492+ def initialize(**args)
14493+ update!(**args)
14494+ end
14495+
14496+ # Update properties of this object
14497+ def update!(**args)
14498+ @relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold)
14499+ @semantic_relevance_threshold = args[:semantic_relevance_threshold] if args.key?(:semantic_relevance_threshold)
14500+ end
14501+ end
14502+
1444514503 # The specification for returning the document relevance score.
1444614504 class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec
1444714505 include Google::Apis::Core::Hashable
@@ -26650,15 +26708,22 @@ class GoogleCloudDiscoveryengineV1betaSearchRequest
2665026708 # @return [String]
2665126709 attr_accessor :region_code
2665226710
26711+ # Relevance filtering specification.
26712+ # Corresponds to the JSON property `relevanceFilterSpec`
26713+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec]
26714+ attr_accessor :relevance_filter_spec
26715+
2665326716 # The specification for returning the document relevance score.
2665426717 # Corresponds to the JSON property `relevanceScoreSpec`
2665526718 # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec]
2665626719 attr_accessor :relevance_score_spec
2665726720
26658- # The relevance threshold of the search results. Default to Google defined
26659- # threshold, leveraging a balance of precision and recall to deliver both highly
26660- # accurate results and comprehensive coverage of relevant information. This
26661- # feature is not supported for healthcare search.
26721+ # The global relevance threshold of the search results. Defaults to Google
26722+ # defined threshold, leveraging a balance of precision and recall to deliver
26723+ # both highly accurate results and comprehensive coverage of relevant
26724+ # information. If more granular relevance filtering is required, use the `
26725+ # relevance_filter_spec` instead. This feature is not supported for healthcare
26726+ # search.
2666226727 # Corresponds to the JSON property `relevanceThreshold`
2666326728 # @return [String]
2666426729 attr_accessor :relevance_threshold
@@ -26784,6 +26849,7 @@ def update!(**args)
2678426849 @ranking_expression = args[:ranking_expression] if args.key?(:ranking_expression)
2678526850 @ranking_expression_backend = args[:ranking_expression_backend] if args.key?(:ranking_expression_backend)
2678626851 @region_code = args[:region_code] if args.key?(:region_code)
26852+ @relevance_filter_spec = args[:relevance_filter_spec] if args.key?(:relevance_filter_spec)
2678726853 @relevance_score_spec = args[:relevance_score_spec] if args.key?(:relevance_score_spec)
2678826854 @relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold)
2678926855 @safe_search = args[:safe_search] if args.key?(:safe_search)
@@ -27736,6 +27802,56 @@ def update!(**args)
2773627802 end
2773727803 end
2773827804
27805+ # Relevance filtering specification.
27806+ class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec
27807+ include Google::Apis::Core::Hashable
27808+
27809+ # Specification for relevance filtering on a specific sub-search.
27810+ # Corresponds to the JSON property `keywordSearchThreshold`
27811+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec]
27812+ attr_accessor :keyword_search_threshold
27813+
27814+ # Specification for relevance filtering on a specific sub-search.
27815+ # Corresponds to the JSON property `semanticSearchThreshold`
27816+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec]
27817+ attr_accessor :semantic_search_threshold
27818+
27819+ def initialize(**args)
27820+ update!(**args)
27821+ end
27822+
27823+ # Update properties of this object
27824+ def update!(**args)
27825+ @keyword_search_threshold = args[:keyword_search_threshold] if args.key?(:keyword_search_threshold)
27826+ @semantic_search_threshold = args[:semantic_search_threshold] if args.key?(:semantic_search_threshold)
27827+ end
27828+ end
27829+
27830+ # Specification for relevance filtering on a specific sub-search.
27831+ class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec
27832+ include Google::Apis::Core::Hashable
27833+
27834+ # Pre-defined relevance threshold for the sub-search.
27835+ # Corresponds to the JSON property `relevanceThreshold`
27836+ # @return [String]
27837+ attr_accessor :relevance_threshold
27838+
27839+ # Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].
27840+ # Corresponds to the JSON property `semanticRelevanceThreshold`
27841+ # @return [Float]
27842+ attr_accessor :semantic_relevance_threshold
27843+
27844+ def initialize(**args)
27845+ update!(**args)
27846+ end
27847+
27848+ # Update properties of this object
27849+ def update!(**args)
27850+ @relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold)
27851+ @semantic_relevance_threshold = args[:semantic_relevance_threshold] if args.key?(:semantic_relevance_threshold)
27852+ end
27853+ end
27854+
2773927855 # The specification for returning the document relevance score.
2774027856 class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec
2774127857 include Google::Apis::Core::Hashable
0 commit comments