Interface RagRetrievalConfig.FilterOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
RagRetrievalConfig.Filter, RagRetrievalConfig.Filter.Builder
Enclosing class:
RagRetrievalConfig

public static interface RagRetrievalConfig.FilterOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasVectorDistanceThreshold

      boolean hasVectorDistanceThreshold()
       Optional. Only returns contexts with vector distance smaller than the
       threshold.
       
      double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the vectorDistanceThreshold field is set.
    • getVectorDistanceThreshold

      double getVectorDistanceThreshold()
       Optional. Only returns contexts with vector distance smaller than the
       threshold.
       
      double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The vectorDistanceThreshold.
    • hasVectorSimilarityThreshold

      boolean hasVectorSimilarityThreshold()
       Optional. Only returns contexts with vector similarity larger than the
       threshold.
       
      double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the vectorSimilarityThreshold field is set.
    • getVectorSimilarityThreshold

      double getVectorSimilarityThreshold()
       Optional. Only returns contexts with vector similarity larger than the
       threshold.
       
      double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The vectorSimilarityThreshold.
    • getMetadataFilter

      String getMetadataFilter()
       Optional. String for metadata filtering.
       
      string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The metadataFilter.
    • getMetadataFilterBytes

      com.google.protobuf.ByteString getMetadataFilterBytes()
       Optional. String for metadata filtering.
       
      string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for metadataFilter.
    • getVectorDbThresholdCase