Table of Contents

Class RagEmbeddingModelConfigSparseEmbeddingConfigBm25

Namespace
GenerativeAI.Types.RagEngine
Assembly
GenerativeAI.dll

Message for BM25 parameters.

public class RagEmbeddingModelConfigSparseEmbeddingConfigBm25
Inheritance
RagEmbeddingModelConfigSparseEmbeddingConfigBm25
Inherited Members
Extension Methods

Properties

B

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.

[JsonPropertyName("b")]
public float? B { get; set; }

Property Value

float?

K1

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.

[JsonPropertyName("k1")]
public float? K1 { get; set; }

Property Value

float?

Multilingual

Optional. Use multilingual tokenizer if set to true.

[JsonPropertyName("multilingual")]
public bool? Multilingual { get; set; }

Property Value

bool?