Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::FindNeighborsRequest::Query::RRF (v0.51.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::FindNeighborsRequest::Query::RRF.

Parameters for RRF algorithm that combines search results.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#alpha

def alpha() -> ::Float
Returns
  • (::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.

#alpha=

def alpha=(value) -> ::Float
Parameter
  • value (::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.
Returns
  • (::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.