Google Cloud Ai Platform V1 Client - Class RRF (1.6.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class RRF.

Parameters for RRF algorithm that combines search results.

Generated from protobuf message google.cloud.aiplatform.v1.FindNeighborsRequest.Query.RRF

Namespace

Google \ Cloud \ AIPlatform \ V1 \ FindNeighborsRequest \ Query

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ 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.

getAlpha

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
Type Description
float

setAlpha

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.

Parameter
Name Description
var float
Returns
Type Description
$this

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月08日 UTC.