Commit graph

5460 commits

Author SHA1 Message Date
Auto-Sync
12cf3e459b Auto-Sync: 2026-04-17 22:00 2026-04-17 22:00:10 +02:00
root
10f3c8323a rag_mode: RAG-first als Default + Persistenz, Router haertet persoenliche Fragen
rag_mode.py:
 - Default fuer neue/unbekannte Chats: RAG-first (True statt False)
 - State wird auf Disk geschrieben (/opt/homelab-ai-bot/data/rag_mode.json),
   ueberlebt Bot-Restarts; threadsicher.

llm.py:
 - _LOCAL_OVERRIDES erweitert um persoenliche Possessiv-/Besitz-Marker:
   wohnung(en), apartment, condo/kondo, immobilie, kambodscha/cambodia,
   phnom penh, arakawa, gekostet, kaufpreis, bezahlt, ausgegeben, ueberweisung,
   meine/mein/meines/..., was haben, wie viel habe ich, ich fuer/für.
   Damit werden klar persoenliche Fragen nie mehr faelschlich an Sonar
   geroutet, selbst wenn Web-Trigger wie "wie viel" im Text vorkommen.

Hintergrund: Eine Frage der Form "wie viel habe ich fuer die Wohnungen in
Kambodscha bezahlt" wurde an Perplexity/Sonar geroutet (Websuche) statt an
RAG, weil der Mode-Schalter durch einen Bot-Restart im RAM verloren ging und
der Router bei "wie viel" sofort MODEL_ONLINE waehlte.
2026-04-17 21:57:42 +02:00
root
c63b3621c0 rag: LLM-Query-Rewrite (Stufe B, gpt-4o-mini) als Default-Modus
Query wird vor ES-Suche durch gpt-4o-mini in 4 DE/EN-Varianten umformuliert
(Synonyme, Fachbegriffe, Zahl-/Kosten-/Summenbegriffe). Dann Multi-Query-Merge
durch _merge_hits_from_queries. Fallback auf Single-Query bei API-Fehler oder
fehlendem Key. 1h-Cache, 8s-Timeout.

Loest ua. Kosten-/Preis-Fragen, die zuvor am Standardpfad gescheitert sind
(Beispiel: "was haben die wohnungen in kambodscha gekostet" findet jetzt
G2010B und D1603 in einem Rutsch).
2026-04-17 21:46:15 +02:00
Auto-Sync
7bbefdcb78 Auto-Sync: 2026-04-17 21:30 2026-04-17 21:30:10 +02:00
Homelab Cursor
61faa9fcee RAG Multi-Query DE/EN + OpenAI-Key erneuert
- tools/rag.py: _is_count_list_query + _expand_multilingual fuer Zaehlfragen
  (z.B. >meine 2 Wohnungen in Kambodscha< findet jetzt beide Units)
- homelab.conf: OPENAI_API_KEY erneuert (alter widerrufen)
- Cleanup: Backup-Files entfernt
2026-04-17 21:25:42 +02:00
Auto-Sync
7a37b749f3 Auto-Sync: 2026-04-17 21:15 2026-04-17 21:15:08 +02:00
Auto-Sync
e402899aef Auto-Sync: 2026-04-17 21:00 2026-04-17 21:00:09 +02:00
Auto-Sync
a0f9a84e61 Auto-Sync: 2026-04-17 20:45 2026-04-17 20:45:09 +02:00
Auto-Sync
01754bb745 Auto-Sync: 2026-04-17 20:30 2026-04-17 20:30:11 +02:00
Auto-Sync
4117256bb6 Auto-Sync: 2026-04-17 20:15 2026-04-17 20:15:09 +02:00
Auto-Sync
9d94627ea2 Auto-Sync: 2026-04-17 20:00 2026-04-17 20:00:10 +02:00
Auto-Sync
940069c020 Auto-Sync: 2026-04-17 19:45 2026-04-17 19:45:09 +02:00
Auto-Sync
c7f2a4fb52 Auto-Sync: 2026-04-17 19:30 2026-04-17 19:30:10 +02:00
Auto-Sync
54c8b5b437 Auto-Sync: 2026-04-17 19:15 2026-04-17 19:15:09 +02:00
Auto-Sync
8a0ffa00a1 Auto-Sync: 2026-04-17 19:00 2026-04-17 19:00:09 +02:00
Auto-Sync
9a016f7eaa Auto-Sync: 2026-04-17 18:45 2026-04-17 18:45:10 +02:00
Auto-Sync
8f69208b0a Auto-Sync: 2026-04-17 18:30 2026-04-17 18:30:10 +02:00
Auto-Sync
b9bc65dcbc Auto-Sync: 2026-04-17 18:15 2026-04-17 18:15:08 +02:00
Auto-Sync
f17c76595a Auto-Sync: 2026-04-17 18:00 2026-04-17 18:00:10 +02:00
Auto-Sync
db94588f65 Auto-Sync: 2026-04-17 17:45 2026-04-17 17:45:09 +02:00
Auto-Sync
4c043abcd7 Auto-Sync: 2026-04-17 17:30 2026-04-17 17:30:09 +02:00
Auto-Sync
deba77caf2 Auto-Sync: 2026-04-17 17:15 2026-04-17 17:15:09 +02:00
Auto-Sync
44fe39f8fd Auto-Sync: 2026-04-17 17:00 2026-04-17 17:00:10 +02:00
Auto-Sync
f98da05f79 Auto-Sync: 2026-04-17 16:45 2026-04-17 16:45:09 +02:00
Auto-Sync
9e6a5402e7 Auto-Sync: 2026-04-17 16:30 2026-04-17 16:30:11 +02:00
Auto-Sync
f00286f6b2 Auto-Sync: 2026-04-17 16:15 2026-04-17 16:15:09 +02:00
Auto-Sync
6b445acc60 Auto-Sync: 2026-04-17 16:00 2026-04-17 16:00:09 +02:00
Auto-Sync
9ddf0a9d41 Auto-Sync: 2026-04-17 15:45 2026-04-17 15:45:10 +02:00
Auto-Sync
65db94bc67 Auto-Sync: 2026-04-17 15:30 2026-04-17 15:30:10 +02:00
Auto-Sync
c1f4cdf452 Auto-Sync: 2026-04-17 15:15 2026-04-17 15:15:09 +02:00
Auto-Sync
2308916c9b Auto-Sync: 2026-04-17 15:00 2026-04-17 15:00:09 +02:00
Auto-Sync
f696341749 Auto-Sync: 2026-04-17 14:45 2026-04-17 14:45:09 +02:00
Auto-Sync
ee197dddb5 Auto-Sync: 2026-04-17 14:30 2026-04-17 14:30:09 +02:00
Auto-Sync
fdfb9933d2 Auto-Sync: 2026-04-17 14:15 2026-04-17 14:15:09 +02:00
Auto-Sync
b2898f9d6e Auto-Sync: 2026-04-17 14:00 2026-04-17 14:00:09 +02:00
Auto-Sync
03b104606a Auto-Sync: 2026-04-17 13:45 2026-04-17 13:45:10 +02:00
Auto-Sync
113eb9422d Auto-Sync: 2026-04-17 13:30 2026-04-17 13:30:09 +02:00
Auto-Sync
64e0b5fb1c Auto-Sync: 2026-04-17 13:15 2026-04-17 13:15:09 +02:00
Auto-Sync
47f0ceb3d5 Auto-Sync: 2026-04-17 13:00 2026-04-17 13:00:10 +02:00
Auto-Sync
d5426128d8 Auto-Sync: 2026-04-17 12:45 2026-04-17 12:45:11 +02:00
Auto-Sync
b1e185928e Auto-Sync: 2026-04-17 12:30 2026-04-17 12:30:13 +02:00
Auto-Sync
d6fd1bd995 Auto-Sync: 2026-04-17 12:00 2026-04-17 12:00:23 +02:00
Auto-Sync
07ca7c13bc Auto-Sync: 2026-04-17 11:45 2026-04-17 11:45:16 +02:00
Auto-Sync
6b6a418f3d Auto-Sync: 2026-04-17 11:30 2026-04-17 11:30:26 +02:00
Auto-Sync
2cebb510fa Auto-Sync: 2026-04-17 11:15 2026-04-17 11:15:22 +02:00
Auto-Sync
cfe15468e6 Auto-Sync: 2026-04-17 11:00 2026-04-17 11:00:22 +02:00
Auto-Sync
5716500e3c Auto-Sync: 2026-04-17 10:45 2026-04-17 10:45:25 +02:00
Auto-Sync
d9d23dca5a Auto-Sync: 2026-04-17 10:30 2026-04-17 10:30:21 +02:00
Auto-Sync
7862375593 Auto-Sync: 2026-04-17 10:15 2026-04-17 10:15:35 +02:00
Auto-Sync
558c7ddf0c Auto-Sync: 2026-04-17 10:00 2026-04-17 10:00:22 +02:00