Send feedback
Class RagRetrievalConfig.Filter.Builder (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 RagRetrievalConfig . Filter . Builder extends GeneratedMessageV3 . Builder<RagRetrievalConfig . Filter . Builder > implements RagRetrievalConfig . FilterOrBuilder
Config for filters.
Protobuf type google.cloud.aiplatform.v1.RagRetrievalConfig.Filter
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 RagRetrievalConfig . Filter . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public RagRetrievalConfig . Filter build ()
public RagRetrievalConfig . Filter buildPartial ()
public RagRetrievalConfig . Filter . Builder clear ()
Overrides
public RagRetrievalConfig . Filter . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
public RagRetrievalConfig . Filter . Builder clearMetadataFilter ()
Optional. String for metadata filtering.
string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig . Filter . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
public RagRetrievalConfig . Filter . Builder clearVectorDbThreshold ()
public RagRetrievalConfig . Filter . Builder clearVectorDistanceThreshold ()
Optional. Only returns contexts with vector distance smaller than the
threshold.
double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig . Filter . Builder clearVectorSimilarityThreshold ()
Optional. Only returns contexts with vector similarity larger than the
threshold.
double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL];
public RagRetrievalConfig . Filter . Builder clone ()
Overrides
public RagRetrievalConfig . Filter getDefaultInstanceForType ()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
public String getMetadataFilter ()
Optional. String for metadata filtering.
string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
String
The metadataFilter.
public ByteString getMetadataFilterBytes ()
Optional. String for metadata filtering.
string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
ByteString
The bytes for metadataFilter.
public RagRetrievalConfig . Filter . VectorDbThresholdCase getVectorDbThresholdCase ()
public double getVectorDistanceThreshold ()
Optional. Only returns contexts with vector distance smaller than the
threshold.
double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
double
The vectorDistanceThreshold.
public double getVectorSimilarityThreshold ()
Optional. Only returns contexts with vector similarity larger than the
threshold.
double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
double
The vectorSimilarityThreshold.
public boolean hasVectorDistanceThreshold ()
Optional. Only returns contexts with vector distance smaller than the
threshold.
double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
Whether the vectorDistanceThreshold field is set.
public boolean hasVectorSimilarityThreshold ()
Optional. Only returns contexts with vector similarity larger than the
threshold.
double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
Whether the vectorSimilarityThreshold field is set.
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public RagRetrievalConfig . Filter . Builder mergeFrom ( RagRetrievalConfig . Filter other )
public RagRetrievalConfig . Filter . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
public RagRetrievalConfig . Filter . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
public final RagRetrievalConfig . Filter . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public RagRetrievalConfig . Filter . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public RagRetrievalConfig . Filter . Builder setMetadataFilter ( String value )
Optional. String for metadata filtering.
string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
value
String
The metadataFilter to set.
public RagRetrievalConfig . Filter . Builder setMetadataFilterBytes ( ByteString value )
Optional. String for metadata filtering.
string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
value
ByteString
The bytes for metadataFilter to set.
public RagRetrievalConfig . Filter . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
public final RagRetrievalConfig . Filter . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public RagRetrievalConfig . Filter . Builder setVectorDistanceThreshold ( double value )
Optional. Only returns contexts with vector distance smaller than the
threshold.
double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
value
double
The vectorDistanceThreshold to set.
public RagRetrievalConfig . Filter . Builder setVectorSimilarityThreshold ( double value )
Optional. Only returns contexts with vector similarity larger than the
threshold.
double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
value
double
The vectorSimilarityThreshold to set.
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."],[],[]]