Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, see
Model versions and lifecycle .
Send feedback
Class RagRetrievalConfig.Filter (1.23.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static final class RagRetrievalConfig . Filter extends GeneratedMessageV3 implements RagRetrievalConfig . FilterOrBuilder
Config for filters.
Protobuf type google.cloud.vertexai.v1.RagRetrievalConfig.Filter
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 METADATA_FILTER_FIELD_NUMBER
Field Value
Type
Description
int
VECTOR_DISTANCE_THRESHOLD_FIELD_NUMBER
public static final int VECTOR_DISTANCE_THRESHOLD_FIELD_NUMBER
Field Value
Type
Description
int
VECTOR_SIMILARITY_THRESHOLD_FIELD_NUMBER
public static final int VECTOR_SIMILARITY_THRESHOLD_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static RagRetrievalConfig . Filter getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static RagRetrievalConfig . Filter . Builder newBuilder ()
newBuilder(RagRetrievalConfig.Filter prototype)
public static RagRetrievalConfig . Filter . Builder newBuilder ( RagRetrievalConfig . Filter prototype )
public static RagRetrievalConfig . Filter parseDelimitedFrom ( InputStream input )
public static RagRetrievalConfig . Filter parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static RagRetrievalConfig . Filter parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RagRetrievalConfig . Filter parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static RagRetrievalConfig . Filter parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RagRetrievalConfig . Filter parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static RagRetrievalConfig . Filter parseFrom ( CodedInputStream input )
public static RagRetrievalConfig . Filter parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static RagRetrievalConfig . Filter parseFrom ( InputStream input )
public static RagRetrievalConfig . Filter parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static RagRetrievalConfig . Filter parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RagRetrievalConfig . Filter parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<RagRetrievalConfig . Filter > parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getDefaultInstanceForType()
public RagRetrievalConfig . Filter getDefaultInstanceForType ()
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.
getParserForType()
public Parser<RagRetrievalConfig . Filter > getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getVectorDbThresholdCase()
public RagRetrievalConfig . Filter . VectorDbThresholdCase getVectorDbThresholdCase ()
getVectorDistanceThreshold()
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.
getVectorSimilarityThreshold()
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.
hasVectorDistanceThreshold()
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.
hasVectorSimilarityThreshold()
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.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public RagRetrievalConfig . Filter . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RagRetrievalConfig . Filter . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public RagRetrievalConfig . Filter . Builder toBuilder ()
writeTo(CodedOutputStream output)
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-06-05 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-06-05 UTC."],[],[]]