Google Cloud Vector Search V1 Client - Class ReciprocalRankFusion (0.1.0)

Reference documentation and code samples for the Google Cloud Vector Search V1 Client class ReciprocalRankFusion.

Defines the Reciprocal Rank Fusion (RRF) algorithm for result ranking.

Generated from protobuf message google.cloud.vectorsearch.v1.ReciprocalRankFusion

Namespace

Google \ Cloud \ VectorSearch \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ weights array

Required. The weights to apply to each search result set during fusion.

getWeights

Required. The weights to apply to each search result set during fusion.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setWeights

Required. The weights to apply to each search result set during fusion.

Parameter
Name Description
var float[]
Returns
Type Description
$this