Class RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder (3.88.0)

public static final class RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder extends GeneratedMessage.Builder<RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder> implements RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25OrBuilder

Message for BM25 parameters.

Protobuf type google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 build()
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25

buildPartial()

public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 buildPartial()
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25

clear()

public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder clear()
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder
Overrides

clearB()

public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder clearB()

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.

optional float b = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder

This builder for chaining.

clearK1()

public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder clearK1()

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.

optional float k1 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder

This builder for chaining.

clearMultilingual()

public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder clearMultilingual()

Optional. Use multilingual tokenizer if set to true.

bool multilingual = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder

This builder for chaining.

getB()

public float getB()

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.

optional float b = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
float

The b.

getDefaultInstanceForType()

public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 getDefaultInstanceForType()
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getK1()

public float getK1()

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.

optional float k1 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
float

The k1.

getMultilingual()

public boolean getMultilingual()

Optional. Use multilingual tokenizer if set to true.

bool multilingual = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The multilingual.

hasB()

public boolean hasB()

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.

optional float b = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the b field is set.

hasK1()

public boolean hasK1()

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.

optional float k1 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the k1 field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 other)

public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder mergeFrom(RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 other)
Parameter
Name Description
other RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder
Overrides

setB(float value)

public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder setB(float value)

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.

optional float b = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value float

The b to set.

Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder

This builder for chaining.

setK1(float value)

public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder setK1(float value)

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.

optional float k1 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value float

The k1 to set.

Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder

This builder for chaining.

setMultilingual(boolean value)

public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder setMultilingual(boolean value)

Optional. Use multilingual tokenizer if set to true.

bool multilingual = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The multilingual to set.

Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder

This builder for chaining.