Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3BoostSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/representations.rb

Overview

Boost specification to boost certain documents. A copy of google.cloud. discoveryengine.v1main.BoostSpec, field documentation is available at https:// cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/ BoostSpec

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3BoostSpec

Returns a new instance of GoogleCloudDialogflowCxV3BoostSpec.



788
789
790
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 788

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#condition_boost_specsArray<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec>

Optional. Condition boost specifications. If a document matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20. Corresponds to the JSON property conditionBoostSpecs



786
787
788
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 786

def condition_boost_specs
  @condition_boost_specs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



793
794
795
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 793

def update!(**args)
  @condition_boost_specs = args[:condition_boost_specs] if args.key?(:condition_boost_specs)
end