feat(llama_server): heartbeat embed — garde chaud le slot nomic :1238 (#28)

Le grounding RAG du STT ratait par intermittence (docs=0 → réponses génériques)
parce que l'instance d'embedding :1238 partait à froid après une pause : la 1ʳᵉ
requête mettait 5-8 s et dépassait le timeout 4 s du STT-server (recall + RAG doc).

llama-embed-heartbeat : service systemd local sur gpu-01 qui envoie un petit embed
à :1238 toutes les 20 s → le slot reste résident/chaud → la 1ʳᵉ vraie requête est
rapide → docs>0 fiable. Pendant du llm-heartbeat (slot chat :1234), pour le slot embed.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ALI YESILKAYA 2026-06-19 22:17:23 +02:00 committed by GitHub
parent 11693e2abf
commit 1b85d4ee65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 140 additions and 0 deletions

View file

@ -0,0 +1,15 @@
[Unit]
Description=llama-embed-heartbeat (garde chaud le slot d'embedding nomic :1238)
After=llama-embed.service
Wants=llama-embed.service
[Service]
Type=simple
User=root
ExecStart=/usr/local/bin/llama-embed-heartbeat
Restart=always
RestartSec=10
SyslogIdentifier=llama-embed-heartbeat
[Install]
WantedBy=multi-user.target