Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfig
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfig
- 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
Specifies the context retrieval config.
Instance Attribute Summary collapse
-
#filter ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfigFilter
Config for filters.
-
#hybrid_search ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch
Config for Hybrid Search.
-
#ranking ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfigRanking
Config for ranking and reranking.
-
#top_k ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagRetrievalConfig
constructor
A new instance of GoogleCloudAiplatformV1beta1RagRetrievalConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagRetrievalConfig
Returns a new instance of GoogleCloudAiplatformV1beta1RagRetrievalConfig.
26600 26601 26602 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26600 def initialize(**args) update!(**args) end |
Instance Attribute Details
#filter ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfigFilter
Config for filters.
Corresponds to the JSON property filter
26583 26584 26585 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26583 def filter @filter end |
#hybrid_search ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch
Config for Hybrid Search.
Corresponds to the JSON property hybridSearch
26588 26589 26590 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26588 def hybrid_search @hybrid_search end |
#ranking ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfigRanking
Config for ranking and reranking.
Corresponds to the JSON property ranking
26593 26594 26595 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26593 def ranking @ranking end |
#top_k ⇒ Fixnum
Optional. The number of contexts to retrieve.
Corresponds to the JSON property topK
26598 26599 26600 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26598 def top_k @top_k end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
26605 26606 26607 26608 26609 26610 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26605 def update!(**args) @filter = args[:filter] if args.key?(:filter) @hybrid_search = args[:hybrid_search] if args.key?(:hybrid_search) @ranking = args[:ranking] if args.key?(:ranking) @top_k = args[:top_k] if args.key?(:top_k) end |