@radzor/ai-classifier
Classify text into categories using LLM-powered classification or rule-based approaches. Supports single and batch classification, custom category definitions with descriptions, and a trainable keyword-based fallback for offline use.
Install
View source on GitHub →Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| apiKey | string | — | API key for the LLM used for classification (OpenAI-compatible).OPENAI_API_KEY |
| model | string | gpt-4o-mini | Model to use for LLM-based classification. |
| baseUrl | string | https://api.openai.com/v1 | Base URL for the classification API. |
| mode | 'llm' | 'rules' | 'hybrid' | llm | Classification mode: llm (API-based), rules (keyword-based), or hybrid (rules first, LLM fallback). |
API key for the LLM used for classification (OpenAI-compatible).
OPENAI_API_KEY