Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEmbeddingModelConfigSparseEmbeddingConfigBm25
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEmbeddingModelConfigSparseEmbeddingConfigBm25
- 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
Message for BM25 parameters.
Instance Attribute Summary collapse
-
#b ⇒ Float
Optional.
-
#k1 ⇒ Float
Optional.
-
#multilingual ⇒ Boolean
(also: #multilingual?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagEmbeddingModelConfigSparseEmbeddingConfigBm25
constructor
A new instance of GoogleCloudAiplatformV1beta1RagEmbeddingModelConfigSparseEmbeddingConfigBm25.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagEmbeddingModelConfigSparseEmbeddingConfigBm25
Returns a new instance of GoogleCloudAiplatformV1beta1RagEmbeddingModelConfigSparseEmbeddingConfigBm25.
25773 25774 25775 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25773 def initialize(**args) update!(**args) end |
Instance Attribute Details
#b ⇒ Float
Optional. The parameter to control document length normalization. It
determines how much the document length affects the final score. b is in the
range of [0, 1]. The default value is 0.75.
Corresponds to the JSON property b
25758 25759 25760 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25758 def b @b end |
#k1 ⇒ Float
Optional. The parameter to control term frequency saturation. It determines
the scaling between the matching term frequency and final score. k1 is in the
range of [1.2, 3]. The default value is 1.2.
Corresponds to the JSON property k1
25765 25766 25767 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25765 def k1 @k1 end |
#multilingual ⇒ Boolean Also known as: multilingual?
Optional. Use multilingual tokenizer if set to true.
Corresponds to the JSON property multilingual
25770 25771 25772 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25770 def multilingual @multilingual end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
25778 25779 25780 25781 25782 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25778 def update!(**args) @b = args[:b] if args.key?(:b) @k1 = args[:k1] if args.key?(:k1) @multilingual = args[:multilingual] if args.key?(:multilingual) end |