Class RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 (3.52.0)

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

Inheritance

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

Static Fields

B_FIELD_NUMBER

public static final int B_FIELD_NUMBER
Field Value
Type Description
int

K1_FIELD_NUMBER

public static final int K1_FIELD_NUMBER
Field Value
Type Description
int

MULTILINGUAL_FIELD_NUMBER

public static final int MULTILINGUAL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 getDefaultInstance()
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25

getDescriptor()

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

newBuilder()

public static RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder newBuilder()
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder

newBuilder(RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 prototype)

public static RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder newBuilder(RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 prototype)
Parameter
Name Description
prototype RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder

parseDelimitedFrom(InputStream input)

public static RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25 parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25> parser()
Returns
Type Description
Parser<Bm25>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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.

getParserForType()

public Parser<RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25> getParserForType()
Returns
Type Description
Parser<Bm25>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder newBuilderForType()
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder toBuilder()
Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException