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.
26162 26163 26164 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26162 def initialize(**args) update!(**args) end |
Instance Attribute Details
#filter ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfigFilter
Config for filters.
Corresponds to the JSON property filter
26145 26146 26147 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26145 def filter @filter end |
#hybrid_search ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch
Config for Hybrid Search.
Corresponds to the JSON property hybridSearch
26150 26151 26152 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26150 def hybrid_search @hybrid_search end |
#ranking ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfigRanking
Config for ranking and reranking.
Corresponds to the JSON property ranking
26155 26156 26157 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26155 def ranking @ranking end |
#top_k ⇒ Fixnum
Optional. The number of contexts to retrieve.
Corresponds to the JSON property topK
26160 26161 26162 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26160 def top_k @top_k end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
26167 26168 26169 26170 26171 26172 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26167 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 |