Skip to main content

Module context_detector

Module context_detector 

Source
Expand description

Context detection for LoRA adapter selection.

Classifies a natural-language prompt (and optionally the NQuin metadata vector) into one of the six ContextType domains using weighted keyword scoring and bigram analysis.

Structs§

ContextDetector
Classifies text into one of the ContextType domains.

Enums§

ContextType
Domain classification used to select the correct LoRA adapter.