Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagQueryRanking
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagQueryRanking
- 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
-
#alpha ⇒ Float
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagQueryRanking
constructor
A new instance of GoogleCloudAiplatformV1beta1RagQueryRanking.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#alpha ⇒ Float
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
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 |