Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfig
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfig
- 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
Specifies the context retrieval config.
Instance Attribute Summary collapse
-
#filter ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfigFilter
Config for filters.
-
#ranking ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfigRanking
Config for ranking and reranking.
-
#top_k ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1RagRetrievalConfig
constructor
A new instance of GoogleCloudAiplatformV1RagRetrievalConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1RagRetrievalConfig
Returns a new instance of GoogleCloudAiplatformV1RagRetrievalConfig.
33132 33133 33134 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33132 def initialize(**args) update!(**args) end |
Instance Attribute Details
#filter ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfigFilter
Config for filters.
Corresponds to the JSON property filter
33120 33121 33122 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33120 def filter @filter end |
#ranking ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfigRanking
Config for ranking and reranking.
Corresponds to the JSON property ranking
33125 33126 33127 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33125 def ranking @ranking end |
#top_k ⇒ Fixnum
Optional. The number of contexts to retrieve.
Corresponds to the JSON property topK
33130 33131 33132 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33130 def top_k @top_k end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
33137 33138 33139 33140 33141 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33137 def update!(**args) @filter = args[:filter] if args.key?(:filter) @ranking = args[:ranking] if args.key?(:ranking) @top_k = args[:top_k] if args.key?(:top_k) end |