Classifier Component
Provide the classifier capability for an Agentic RAG slot.
Interface
Input ClassificationRequest:
query: original question- optional
documents: JSON-compatible candidate documents - optional
constraints: routing constraints from the request - optional
classification_mode:retrieval(default) orcomplexity - optional
max_tokens
Output ClassificationResult:
route: one oflexical,semantic, orhybridinretrievalmode; one ofnon-retrieval,single-step, ormulti-stepincomplexitymodereason: concise explanation for the selected routeconfidence: number between 0 and 1
Execution
Run scripts/component.py:run(inputs, context). The runtime must provide the frozen context.call_model(...). This Component selects only a constrained route; the Agentic workflow owns the mapping from route to concrete Component slots. Use complexity mode for Hybrid Agentic RAG.