Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagQueryRanking

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

Overview

Configurations for hybrid search results ranking.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagQueryRanking

Returns a new instance of GoogleCloudAiplatformV1beta1RagQueryRanking.



26566
26567
26568
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26566

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

Instance Attribute Details

#alphaFloat

Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally. Corresponds to the JSON property alpha

Returns:

  • (Float)


26564
26565
26566
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26564

def alpha
  @alpha
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



26571
26572
26573
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26571

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