Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FindNeighborsRequestQueryRrf
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FindNeighborsRequestQueryRrf
- 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
Parameters for RRF algorithm that combines search results.
Instance Attribute Summary collapse
-
#alpha ⇒ Float
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1FindNeighborsRequestQueryRrf
constructor
A new instance of GoogleCloudAiplatformV1beta1FindNeighborsRequestQueryRrf.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1FindNeighborsRequestQueryRrf
Returns a new instance of GoogleCloudAiplatformV1beta1FindNeighborsRequestQueryRrf.
10402 10403 10404 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10402 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alpha ⇒ Float
Required. Users can provide an alpha value to give more weight to dense vs
sparse results. For example, if the alpha is 0, we only return sparse and if
the alpha is 1, we only return dense.
Corresponds to the JSON property alpha
10400 10401 10402 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10400 def alpha @alpha end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10407 10408 10409 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10407 def update!(**args) @alpha = args[:alpha] if args.key?(:alpha) end |