Class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch
- Inherits:
-
Object
- Object
- Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firebaseml_v2beta/classes.rb,
lib/google/apis/firebaseml_v2beta/representations.rb,
lib/google/apis/firebaseml_v2beta/representations.rb
Overview
Config for Hybrid Search.
Instance Attribute Summary collapse
-
#alpha ⇒ Float
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch
constructor
A new instance of GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch
Returns a new instance of GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch.
1410 1411 1412 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1410 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
1408 1409 1410 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1408 def alpha @alpha end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1415 1416 1417 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1415 def update!(**args) @alpha = args[:alpha] if args.key?(:alpha) end |