Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigHybridSearch

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

Config for Hybrid Search.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigHybridSearch

Returns a new instance of GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigHybridSearch.



4409
4410
4411
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4409

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

Instance Attribute Details

#alphaFloat

Optional. Alpha value controls the weight between dense and sparse vector search results. Corresponds to the JSON property alpha

Returns:

  • (Float)


4407
4408
4409
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4407

def alpha
  @alpha
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4414
4415
4416
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4414

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