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.
-
#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.
22547 22548 22549 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22547 def initialize(**args) update!(**args) end |
Instance Attribute Details
#filter ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfigFilter
Config for filters.
Corresponds to the JSON property filter
22540 22541 22542 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22540 def filter @filter end |
#top_k ⇒ Fixnum
Optional. The number of contexts to retrieve.
Corresponds to the JSON property topK
22545 22546 22547 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22545 def top_k @top_k end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
22552 22553 22554 22555 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22552 def update!(**args) @filter = args[:filter] if args.key?(:filter) @top_k = args[:top_k] if args.key?(:top_k) end |