Enum Class Search.Strategy

java.lang.Object
java.lang.Enum<Search.Strategy>
com.tnsai.annotations.Search.Strategy
All Implemented Interfaces:
Serializable, Comparable<Search.Strategy>, Constable
Enclosing class:
Search

public static enum Search.Strategy extends Enum<Search.Strategy>
Retrieval strategies.
  • Enum Constant Details

    • SEMANTIC

      public static final Search.Strategy SEMANTIC
      Vector similarity search
    • KEYWORD

      public static final Search.Strategy KEYWORD
      BM25/TF-IDF keyword search
    • HYBRID

      public static final Search.Strategy HYBRID
      Combined semantic + keyword, plus knowledge-graph hits when a GraphStore is available. The three ranked lists fuse through unweighted reciprocal rank fusion. A missing graph store keeps the two-stream fuse; it does not silently become SEMANTIC.
    • GRAPH

      public static final Search.Strategy GRAPH
      Knowledge graph traversal
    • MULTI_QUERY

      public static final Search.Strategy MULTI_QUERY
      Generate multiple query variations
    • HIERARCHICAL

      public static final Search.Strategy HIERARCHICAL
      Parent-child document retrieval
    • TEMPORAL

      public static final Search.Strategy TEMPORAL
      Time-weighted retrieval
    • REASONING

      public static final Search.Strategy REASONING
      Root-to-leaf tree descent with a model choosing the branch.

      Requires a non-blank Search.navigatorModel() served by an installed TreeNavigator. Opposite walk from HIERARCHICAL: this starts at the root and descends.

  • Method Details

    • values

      public static Search.Strategy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Search.Strategy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null