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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 build()
public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 buildPartial()
public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder clear()
Overrides
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];
public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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];
public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder clearMultilingual()
Optional. Use multilingual tokenizer if set to true.
bool multilingual = 1 [(.google.api.field_behavior) = OPTIONAL];
public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder clone()
Overrides
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.
|
public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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.
|
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder mergeFrom(RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 other)
public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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.
|
public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
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.
|
public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides