Package com.tnsai.annotations
Enum Class Search.Strategy
- All Implemented Interfaces:
Serializable,Comparable<Search.Strategy>,Constable
- Enclosing class:
Search
Retrieval strategies.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionKnowledge graph traversalParent-child document retrievalCombined semantic + keyword, plus knowledge-graph hits when aGraphStoreis available.BM25/TF-IDF keyword searchGenerate multiple query variationsRoot-to-leaf tree descent with a model choosing the branch.Vector similarity searchTime-weighted retrieval -
Method Summary
Modifier and TypeMethodDescriptionstatic Search.StrategyReturns the enum constant of this class with the specified name.static Search.Strategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
SEMANTIC
Vector similarity search -
KEYWORD
BM25/TF-IDF keyword search -
HYBRID
Combined semantic + keyword, plus knowledge-graph hits when aGraphStoreis available. The three ranked lists fuse through unweighted reciprocal rank fusion. A missing graph store keeps the two-stream fuse; it does not silently becomeSEMANTIC. -
GRAPH
Knowledge graph traversal -
MULTI_QUERY
Generate multiple query variations -
HIERARCHICAL
Parent-child document retrieval -
TEMPORAL
Time-weighted retrieval -
REASONING
Root-to-leaf tree descent with a model choosing the branch.Requires a non-blank
Search.navigatorModel()served by an installedTreeNavigator. Opposite walk fromHIERARCHICAL: this starts at the root and descends.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-