Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfigRanking

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

Overview

Config for ranking and reranking.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1RagRetrievalConfigRanking

Returns a new instance of GoogleCloudAiplatformV1RagRetrievalConfigRanking.



24628
24629
24630
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 24628

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

Instance Attribute Details

#llm_rankerGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker

Config for LlmRanker. Corresponds to the JSON property llmRanker



24621
24622
24623
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 24621

def llm_ranker
  @llm_ranker
end

#rank_serviceGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfigRankingRankService

Config for Rank Service. Corresponds to the JSON property rankService



24626
24627
24628
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 24626

def rank_service
  @rank_service
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



24633
24634
24635
24636
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 24633

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