public sealed class RagEmbeddingModelConfig.Types.SparseEmbeddingConfig.Types.Bm25 : IMessage<RagEmbeddingModelConfig.Types.SparseEmbeddingConfig.Types.Bm25>, IEquatable<RagEmbeddingModelConfig.Types.SparseEmbeddingConfig.Types.Bm25>, IDeepCloneable<RagEmbeddingModelConfig.Types.SparseEmbeddingConfig.Types.Bm25>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud AI Platform v1beta1 API class RagEmbeddingModelConfig.Types.SparseEmbeddingConfig.Types.Bm25.
Message for BM25 parameters.
Implements
IMessageRagEmbeddingModelConfigTypesSparseEmbeddingConfigTypesBm25, IEquatableRagEmbeddingModelConfigTypesSparseEmbeddingConfigTypesBm25, IDeepCloneableRagEmbeddingModelConfigTypesSparseEmbeddingConfigTypesBm25, IBufferMessage, IMessageNamespace
Google.Cloud.AIPlatform.V1Beta1Assembly
Google.Cloud.AIPlatform.V1Beta1.dll
Constructors
Bm25()
public Bm25()
Bm25(Bm25)
public Bm25(RagEmbeddingModelConfig.Types.SparseEmbeddingConfig.Types.Bm25 other)
Parameter | |
---|---|
Name | Description |
other |
RagEmbeddingModelConfigTypesSparseEmbeddingConfigTypesBm25 |
Properties
B
public float B { get; set; }
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.
Property Value | |
---|---|
Type | Description |
float |
HasB
public bool HasB { get; }
Gets whether the "b" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasK1
public bool HasK1 { get; }
Gets whether the "k1" field is set
Property Value | |
---|---|
Type | Description |
bool |
K1
public float K1 { get; set; }
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.
Property Value | |
---|---|
Type | Description |
float |
Multilingual
public bool Multilingual { get; set; }
Optional. Use multilingual tokenizer if set to true.
Property Value | |
---|---|
Type | Description |
bool |