Class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagRetrievalConfig
- Inherits:
-
Object
- Object
- Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagRetrievalConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firebaseml_v2beta/classes.rb,
lib/google/apis/firebaseml_v2beta/representations.rb,
lib/google/apis/firebaseml_v2beta/representations.rb
Overview
Specifies the context retrieval config.
Instance Attribute Summary collapse
-
#filter ⇒ Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagRetrievalConfigFilter
Config for filters.
-
#hybrid_search ⇒ Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch
Config for Hybrid Search.
-
#ranking ⇒ Google::Apis::FirebasemlV2beta::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.
3197 3198 3199 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 3197 def initialize(**args) update!(**args) end |
Instance Attribute Details
#filter ⇒ Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagRetrievalConfigFilter
Config for filters.
Corresponds to the JSON property filter
3180 3181 3182 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 3180 def filter @filter end |
#hybrid_search ⇒ Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch
Config for Hybrid Search.
Corresponds to the JSON property hybridSearch
3185 3186 3187 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 3185 def hybrid_search @hybrid_search end |
#ranking ⇒ Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagRetrievalConfigRanking
Config for ranking and reranking.
Corresponds to the JSON property ranking
3190 3191 3192 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 3190 def ranking @ranking end |
#top_k ⇒ Fixnum
Optional. The number of contexts to retrieve.
Corresponds to the JSON property topK
3195 3196 3197 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 3195 def top_k @top_k end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3202 3203 3204 3205 3206 3207 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 3202 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 |