From 1ad9155a24cd17e86de783ac7c8e699820486f23 Mon Sep 17 00:00:00 2001 From: "Bernd (Hermes)" Date: Fri, 19 Jun 2026 21:08:36 +0200 Subject: [PATCH] =?UTF-8?q?fix(config):=20use=20ARCHIVAR=5FEMBEDDING=5FBAS?= =?UTF-8?q?E=5FURL=20for=20embeddings=20=E2=80=94=20separate=20from=20OLLA?= =?UTF-8?q?MA=5FBASE=5FURL=20(chat)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/archivar/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/archivar/config.py b/plugin/archivar/config.py index 93e10ce..91c4cdb 100644 --- a/plugin/archivar/config.py +++ b/plugin/archivar/config.py @@ -2,7 +2,7 @@ Archivar-Konfiguration: Raum-Mapping, Kategorie-Texte und Ollama-Einstellungen. Alle Raum-IDs werden über Umgebungsvariablen gesteuert — keine hartcodierten Werte. -OLLAMA_CONFIG bleibt auf localhost:11434 (generischer Default). +OLLAMA_CONFIG: Embeddings NUR von lokalem Ollama (ARCHIVAR_EMBEDDING_BASE_URL). """ from __future__ import annotations @@ -14,7 +14,7 @@ from typing import Dict # ── Ollama-Konfiguration ──────────────────────────────────────────────────── OLLAMA_CONFIG: dict = { - "base_url": os.getenv("OLLAMA_BASE_URL", "http://localhost:11434"), + "base_url": os.getenv("ARCHIVAR_EMBEDDING_BASE_URL", "http://localhost:11434"), "model": "nomic-embed-text", "timeout": 10.0, # Sekunden — empirisch: Ø 2.4s, Cold-Start bis 7.8s "embedding_dim": 768, # nomic-embed-text produziert 768-dimensionale Vektoren