Google Cloud Ai Platform V1 Client - Class Ranking (1.21.0)

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

Config for ranking and reranking.

Generated from protobuf message google.cloud.aiplatform.v1.RagRetrievalConfig.Ranking

Namespace

Google \ Cloud \ AIPlatform \ V1 \ RagRetrievalConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ rank_service Ranking\RankService

Optional. Config for Rank Service.

↳ llm_ranker Ranking\LlmRanker

Optional. Config for LlmRanker.

getRankService

Optional. Config for Rank Service.

Returns
Type Description
Ranking\RankService|null

hasRankService

setRankService

Optional. Config for Rank Service.

Parameter
Name Description
var Ranking\RankService
Returns
Type Description
$this

getLlmRanker

Optional. Config for LlmRanker.

Returns
Type Description
Ranking\LlmRanker|null

hasLlmRanker

setLlmRanker

Optional. Config for LlmRanker.

Parameter
Name Description
var Ranking\LlmRanker
Returns
Type Description
$this

getRankingConfig

Returns
Type Description
string