Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfigRanking

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Config for ranking and reranking.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagRetrievalConfigRanking

Returns a new instance of GoogleCloudAiplatformV1beta1RagRetrievalConfigRanking.



43517
43518
43519
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 43517

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#llm_rankerGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingLlmRanker

Config for LlmRanker. Corresponds to the JSON property llmRanker



43510
43511
43512
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 43510

def llm_ranker
  @llm_ranker
end

#rank_serviceGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingRankService

Config for Rank Service. Corresponds to the JSON property rankService



43515
43516
43517
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 43515

def rank_service
  @rank_service
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



43522
43523
43524
43525
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 43522

def update!(**args)
  @llm_ranker = args[:llm_ranker] if args.key?(:llm_ranker)
  @rank_service = args[:rank_service] if args.key?(:rank_service)
end