diff --git a/plugin/archivar/config.py b/plugin/archivar/config.py index 183199d..5ebc2b0 100644 --- a/plugin/archivar/config.py +++ b/plugin/archivar/config.py @@ -16,7 +16,7 @@ from typing import Dict OLLAMA_CONFIG: dict = { "base_url": os.getenv("OLLAMA_BASE_URL", "http://localhost:11434"), "model": "nomic-embed-text", - "timeout": 5.0, # Sekunden — bei Überschreitung → Fallback + "timeout": 10.0, # Sekunden — empirisch: Ø 2.4s, Cold-Start bis 7.8s "embedding_dim": 768, # nomic-embed-text produziert 768-dimensionale Vektoren } @@ -146,10 +146,10 @@ wird sie entsprechend klassifiziert. Alles andere → FAKT. LLM_CONFIG = { "enabled": os.getenv("ARCHIVAR_ENABLE_LLM", "").strip().lower() in ("1", "true", "yes"), "model": "qwen2.5:7b", - "timeout": 5.0, + "timeout": 10.0, # empirisch: Ø 2.4s, Cold-Start bis 7.8s, P95 2.6s "base_url": "http://localhost:11434", "temperature": 0.0, - "max_tokens": 30, # Raum-ID (24 chars) + Whitespace-Puffer + "max_tokens": 30, # Raum-ID = 24 chars + Puffer } LLM_CLASSIFY_PROMPT = """Klassifiziere die folgende Nachricht in EINE Kategorie.