Send feedback
Class RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 (3.56.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.56.0 keyboard_arrow_down
public static final class RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 extends GeneratedMessageV3 implements RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25OrBuilder
Message for BM25 parameters.
Protobuf type
google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int B_FIELD_NUMBER
Field Value
Type
Description
int
public static final int K1_FIELD_NUMBER
Field Value
Type
Description
int
public static final int MULTILINGUAL_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 . Builder newBuilder ()
public static RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 . Builder newBuilder ( RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 prototype )
public static RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 parseDelimitedFrom ( InputStream input )
public static RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 parseFrom ( ByteString data )
public static RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 parseFrom ( CodedInputStream input )
public static RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 parseFrom ( InputStream input )
public static RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 parseFrom ( ByteBuffer data )
public static RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 > parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
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 ()
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.
public Parser<RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 > getParserForType ()
Overrides
public int getSerializedSize ()
Returns
Type
Description
int
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
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.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 . Builder newBuilderForType ()
protected RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public RagEmbeddingModelConfig . SparseEmbeddingConfig . Bm25 . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]