Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfigRanking
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfigRanking
- 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
-
#llm_ranker ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker
Config for LlmRanker.
-
#rank_service ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfigRankingRankService
Config for Rank Service.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1RagRetrievalConfigRanking
constructor
A new instance of GoogleCloudAiplatformV1RagRetrievalConfigRanking.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1RagRetrievalConfigRanking
Returns a new instance of GoogleCloudAiplatformV1RagRetrievalConfigRanking.
31306 31307 31308 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31306 def initialize(**args) update!(**args) end |
Instance Attribute Details
#llm_ranker ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker
Config for LlmRanker.
Corresponds to the JSON property llmRanker
31299 31300 31301 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31299 def llm_ranker @llm_ranker end |
#rank_service ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfigRankingRankService
Config for Rank Service.
Corresponds to the JSON property rankService
31304 31305 31306 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31304 def rank_service @rank_service end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
31311 31312 31313 31314 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31311 def update!(**args) @llm_ranker = args[:llm_ranker] if args.key?(:llm_ranker) @rank_service = args[:rank_service] if args.key?(:rank_service) end |