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.
1352 1353 1354 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1352 def initialize(**args) update!(**args) end |
Instance Attribute Details
#filter ⇒ Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagRetrievalConfigFilter
Config for filters.
Corresponds to the JSON property filter
1335 1336 1337 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1335 def filter @filter end |
#hybrid_search ⇒ Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch
Config for Hybrid Search.
Corresponds to the JSON property hybridSearch
1340 1341 1342 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1340 def hybrid_search @hybrid_search end |
#ranking ⇒ Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagRetrievalConfigRanking
Config for ranking and reranking.
Corresponds to the JSON property ranking
1345 1346 1347 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1345 def ranking @ranking end |
#top_k ⇒ Fixnum
Optional. The number of contexts to retrieve.
Corresponds to the JSON property topK
1350 1351 1352 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1350 def top_k @top_k end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1357 1358 1359 1360 1361 1362 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1357 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 |