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 \ QueryMethods
__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 |