public static final class RagQuery.Ranking.Builder extends GeneratedMessageV3.Builder<RagQuery.Ranking.Builder> implements RagQuery.RankingOrBuilder
Configurations for hybrid search results ranking.
Protobuf type google.cloud.aiplatform.v1beta1.RagQuery.Ranking
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 RagQuery.Ranking.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public RagQuery.Ranking build()
public RagQuery.Ranking buildPartial()
public RagQuery.Ranking.Builder clear()
Overrides
public RagQuery.Ranking.Builder clearAlpha()
Optional. Alpha value controls the weight between dense and sparse vector
search results. The range is [0, 1], while 0 means sparse vector search
only and 1 means dense vector search only. The default value is 0.5 which
balances sparse and dense vector search equally.
optional float alpha = 1 [(.google.api.field_behavior) = OPTIONAL];
public RagQuery.Ranking.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public RagQuery.Ranking.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public RagQuery.Ranking.Builder clone()
Overrides
Optional. Alpha value controls the weight between dense and sparse vector
search results. The range is [0, 1], while 0 means sparse vector search
only and 1 means dense vector search only. The default value is 0.5 which
balances sparse and dense vector search equally.
optional float alpha = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
float |
The alpha.
|
public RagQuery.Ranking getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public boolean hasAlpha()
Optional. Alpha value controls the weight between dense and sparse vector
search results. The range is [0, 1], while 0 means sparse vector search
only and 1 means dense vector search only. The default value is 0.5 which
balances sparse and dense vector search equally.
optional float alpha = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the alpha field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public RagQuery.Ranking.Builder mergeFrom(RagQuery.Ranking other)
public RagQuery.Ranking.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public RagQuery.Ranking.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final RagQuery.Ranking.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public RagQuery.Ranking.Builder setAlpha(float value)
Optional. Alpha value controls the weight between dense and sparse vector
search results. The range is [0, 1], while 0 means sparse vector search
only and 1 means dense vector search only. The default value is 0.5 which
balances sparse and dense vector search equally.
optional float alpha = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
float
The alpha to set.
|
public RagQuery.Ranking.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public RagQuery.Ranking.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final RagQuery.Ranking.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides