Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/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) ⇒ GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpec

Returns a new instance of GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpec.



18915
18916
18917
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18915

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

Instance Attribute Details

#condition_boost_specsArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpec>

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



18913
18914
18915
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18913

def condition_boost_specs
  @condition_boost_specs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18920
18921
18922
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18920

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