# Google Cloud Vector Search V1 Client - Class ReciprocalRankFusion (0.4.0)

0.4.0 (latest) 0.3.0 0.2.0 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` | `float[]` 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** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<float>` |   |

### setWeights

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |