fix(config): use ARCHIVAR_EMBEDDING_BASE_URL for embeddings — separate from OLLAMA_BASE_URL (chat)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user