install.sh: 6 Verbesserungen + 9 Pitfall-Prüfungen (Don)

1. .env-Template: ARCHIVAR_EMBEDDING_BASE_URL ergänzt
2. Ollama Service-Start + Modell-Pull gesichert
3. numpy/faiss Import-Test nach Installation
4. sys.path.insert für archivar-Imports in __init__.py
5. LLM_CONFIG Klarstellung: LLM=Cloud, Embeddings=lokal
6. loginctl enable-linger Check (KRITISCH — ohne Linger Crash-Loop)

Pitfalls P1-P9 dokumentiert und geprüft in install.sh
Idempotent — mehrfach ausführbar ohne Fehler
This commit is contained in:
Bernd (Hermes)
2026-07-14 14:58:28 +02:00
parent 1c603d627a
commit a4f1bd6443
3 changed files with 143 additions and 8 deletions
+16 -2
View File
@@ -1,3 +1,17 @@
# Hermes Agent — API key (generated by Rocket.Chat Plugin installer)
# Hermes Agent — API key + LLM/Embedding configuration
# Generated by Rocket.Chat Plugin installer
# Set OLLAMA_API_KEY env var before running install.sh --non-interactive
OLLAMA_API_KEY=PLACEH..._KEY
# ── LLM (Cloud) ──────────────────────────────────────────────
# OLLAMA_BASE_URL zeigt auf den Cloud-Provider (z.B. ollama-cloud).
# Das LLM läuft NICHT lokal — nur die Embeddings laufen lokal.
# OLLAMA_BASE_URL=https://ollama.com/v1 (Cloud, von config.yaml gesteuert)
# ── Embeddings (lokal) ───────────────────────────────────────
# ARCHIVAR_EMBEDDING_BASE_URL zeigt auf lokales Ollama (Port 11434).
# Der Archivar nutzt nomic-embed-text für FAISS-Vektorindex.
# Lokales Ollama MUSS laufen: systemctl is-active ollama
ARCHIVAR_EMBEDDING_BASE_URL=http://localhost:11434
# ── API Key ──────────────────────────────────────────────────
OLLAMA_API_KEY=PLACEH..._KEY