Class RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder (3.55.0)

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

Message for BM25 parameters.

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

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder
Overrides

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder
Overrides