Skip to main content

create_classifier

Function create_classifier 

Source
pub fn create_classifier(config: &ClassifierConfig) -> Box<dyn IntentClassifier>
Expand description

Factory for creating intent classifiers based on config.

Note: LocalEmbedding and Llm backends require additional resources (VectorMatcher, LlmConfig) that cannot be provided through this factory alone. Use the dedicated constructors for those classifiers, or call create_classifier_with_resources instead.