Skip to main content

Module strategy_classifier

Module strategy_classifier 

Source
Expand description

LLM-based retrieval strategy classifier for hybrid graph recall.

classify_retrieval_strategy sends a one-shot prompt to the configured LLM provider and returns the name of the selected strategy. On any error the function silently returns "synapse" — it never propagates LLM failures to the caller.

Functions§

classify_retrieval_strategy
Classify a query’s intent to select the best graph retrieval strategy.