Interface RagQuery.RankingOrBuilder

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

public static interface RagQuery.RankingOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Optional.
    boolean
    Optional.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasAlpha

      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:
      Whether the alpha field is set.
    • getAlpha

      float getAlpha()
       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:
      The alpha.