Observed since 21 Oct, 11:19 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
ai-mini-box-llm
LLM plugin for ai-mini-box — local and remote inference, RAG
LLM plugin for ai-mini-box-core — adds natural language processing: message classification, response drafting, entity extraction, and RAG.
pip install ai-mini-box-llm[local] # local inference
pip install ai-mini-box-llm[remote] # OpenAI API
Config file: data/llm_config.json (auto-created with defaults):
{
"provider": "local",
"model_path": "data/models/Phi-3-mini-q4.gguf",
"n_ctx": 4096,
"n_threads": 4,
"rag_enabled": false,
"rag_top_k": 3
}
# Show status
ai-mini-box llm status
# Classify a message
ai-mini-box llm classify "сколько стоит доставка?"
# Generate a draft response
ai-mini-box llm draft "хочу заказать пиццу" --topic "Заказ"
# Extract entities
ai-mini-box llm extract "Позвоните Ивану по телефону +7 123 456 78 90"
# Download a model
ai-mini-box llm download-model Qwen/Qwen2.5-0.5B-Instruct-GGUF:q4_0
# Rebuild RAG index
ai-mini-box llm ingest-kb
The plugin registers an LlmService implementation via the generic service registry:
from ai_mini_box.core.services.registry import register_service, get_service
# Registration (done by plugin automatically)
register_service("llm", MyLlmService())
# Usage by any other module
llm = get_service("llm")
if llm:
topic = llm.classify("How much?")
When the plugin is not installed, get_service("llm") returns None, and the core falls back to built-in heuristics (KeywordClassifier, regex extraction).
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
ai-mini-box-coreEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.12",
"evaluation": "NOT_EVALUATED"
} | ai-mini-box-core>=5.0.0 | runtime |
pytestEnvironment{
"extras": "",
"marker": "extra == \"dev\"",
"requires_python": ">=3.12",
"evaluation": "NOT_EVALUATED"
} | pytest>=8; extra == "dev" | runtime |
huggingface-hubEnvironment{
"extras": "",
"marker": "extra == \"download\"",
"requires_python": ">=3.12",
"evaluation": "NOT_EVALUATED"
} | huggingface-hub>=0.20; extra == "download" | runtime |
llama-cpp-pythonEnvironment{
"extras": "",
"marker": "extra == \"local\"",
"requires_python": ">=3.12",
"evaluation": "NOT_EVALUATED"
} | llama-cpp-python>=0.2; extra == "local" | runtime |
openaiEnvironment{
"extras": "",
"marker": "extra == \"remote\"",
"requires_python": ">=3.12",
"evaluation": "NOT_EVALUATED"
} | openai>=1.0; extra == "remote" | runtime |
bdist_wheel · 16.54 KB · Python py3
sdist · 9.77 KB · Python source
Observed since 21 Oct, 11:19 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:263d6cbcd0ba591b035a1f25b316394fa170247b38df1f94e4b3fadd5df5115d