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.
[[["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-09-04 UTC."],[],[],null,["# Interface RagRetrievalConfig.FilterOrBuilder (1.32.0)\n\n public static interface RagRetrievalConfig.FilterOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getMetadataFilter()\n\n public abstract String getMetadataFilter()\n\nOptional. String for metadata filtering.\n\n`string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getMetadataFilterBytes()\n\n public abstract ByteString getMetadataFilterBytes()\n\nOptional. String for metadata filtering.\n\n`string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getVectorDbThresholdCase()\n\n public abstract RagRetrievalConfig.Filter.VectorDbThresholdCase getVectorDbThresholdCase()\n\n### getVectorDistanceThreshold()\n\n public abstract double getVectorDistanceThreshold()\n\nOptional. Only returns contexts with vector distance smaller than the\nthreshold.\n\n`double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getVectorSimilarityThreshold()\n\n public abstract double getVectorSimilarityThreshold()\n\nOptional. Only returns contexts with vector similarity larger than the\nthreshold.\n\n`double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### hasVectorDistanceThreshold()\n\n public abstract boolean hasVectorDistanceThreshold()\n\nOptional. Only returns contexts with vector distance smaller than the\nthreshold.\n\n`double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL];`\n\n### hasVectorSimilarityThreshold()\n\n public abstract boolean hasVectorSimilarityThreshold()\n\nOptional. Only returns contexts with vector similarity larger than the\nthreshold.\n\n`double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL];\n`"]]