Reference documentation and code samples for the Google Cloud Vector Search V1 Client class Ranker.
Defines a ranker to combine results from multiple searches.
Generated from protobuf message google.cloud.vectorsearch.v1.Ranker
Namespace
Google \ Cloud \ VectorSearch \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ rrf |
ReciprocalRankFusion
Reciprocal Rank Fusion ranking. |
↳ vertex |
VertexRanker
Vertex AI ranking. |
getRrf
Reciprocal Rank Fusion ranking.
| Returns | |
|---|---|
| Type | Description |
ReciprocalRankFusion|null |
|
hasRrf
setRrf
Reciprocal Rank Fusion ranking.
| Parameter | |
|---|---|
| Name | Description |
var |
ReciprocalRankFusion
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getVertex
Vertex AI ranking.
| Returns | |
|---|---|
| Type | Description |
VertexRanker|null |
|
hasVertex
setVertex
Vertex AI ranking.
| Parameter | |
|---|---|
| Name | Description |
var |
VertexRanker
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRanker
| Returns | |
|---|---|
| Type | Description |
string |
|