Commit graph

3547 commits

Author SHA1 Message Date
Auto-Sync
1e817b064e Auto-Sync: 2026-03-26 23:00 2026-03-26 23:00:10 +01:00
Auto-Sync
b091254534 Auto-Sync: 2026-03-26 22:45 2026-03-26 22:45:09 +01:00
Auto-Sync
4e0d1115a7 Auto-Sync: 2026-03-26 22:30 2026-03-26 22:30:09 +01:00
Auto-Sync
2759c2246b Auto-Sync: 2026-03-26 22:15 2026-03-26 22:15:09 +01:00
Auto-Sync
04be3dbf9c Auto-Sync: 2026-03-26 22:00 2026-03-26 22:00:09 +01:00
Auto-Sync
cc2fec4111 Auto-Sync: 2026-03-26 21:45 2026-03-26 21:45:09 +01:00
Auto-Sync
6a61e98329 Auto-Sync: 2026-03-26 21:30 2026-03-26 21:30:10 +01:00
Auto-Sync
e027c1c829 Auto-Sync: 2026-03-26 21:15 2026-03-26 21:15:09 +01:00
Auto-Sync
e109bba962 Auto-Sync: 2026-03-26 21:00 2026-03-26 21:00:09 +01:00
Auto-Sync
8f385ef211 Auto-Sync: 2026-03-26 20:45 2026-03-26 20:45:09 +01:00
Auto-Sync
1d8d7788c4 Auto-Sync: 2026-03-26 20:30 2026-03-26 20:30:10 +01:00
Auto-Sync
e19c5b9a97 Auto-Sync: 2026-03-26 20:15 2026-03-26 20:15:09 +01:00
Auto-Sync
18f51abe36 Auto-Sync: 2026-03-26 20:00 2026-03-26 20:00:09 +01:00
Auto-Sync
050bb9b01c Auto-Sync: 2026-03-26 19:45 2026-03-26 19:45:09 +01:00
Auto-Sync
aae7f008a6 Auto-Sync: 2026-03-26 19:30 2026-03-26 19:30:10 +01:00
Auto-Sync
d4ea25c9bd Auto-Sync: 2026-03-26 19:15 2026-03-26 19:15:10 +01:00
Homelab Cursor
70469cfbc5 rag: Fix toter Code — Immobilien-Wide-Check war nach return unreachbar 2026-03-26 19:04:23 +01:00
Homelab Cursor
0a76bee464 rag: Breitensuche fuer Wohnungen/Immobilien/Kambodscha
- _is_wide_recall_query: erkennt jetzt Wohnung+welche/alle, Kambodscha+Wohnung
- _WIDE_SUBQUERIES_IMMOBILIEN: Arakawa-Wohnungen, Mietvertraege, Kaufvertrag, Hard Title etc.
- handle_rag_search waehlt Subquery-Pool je nach Thema (Immo vs. Versicherung)
2026-03-26 19:00:28 +01:00
Auto-Sync
950597abb8 Auto-Sync: 2026-03-26 19:00 2026-03-26 19:00:10 +01:00
Homelab Cursor
00283a6268 llm+rag: RAG-Pflicht fuer Wohnung/Immobilie/Kambodscha; generische Forced-Prompts
- _DOC_KW: wohnung, immobilie, condo, kambodscha, takeo, phnom, haus, ...
- Bei Geo/Wohnung: RAG-Query mit Zusatz-Keywords
- Forced-RAG: Finanz-Fokus vs. allgemeine Unterlagen (Gedaechtnis nicht Prioritaet)
- rag.py: Tool-Prompt Wohnungen/Ausland explizit
2026-03-26 18:53:06 +01:00
Auto-Sync
84c6f97d35 Auto-Sync: 2026-03-26 18:45 2026-03-26 18:45:10 +01:00
Homelab Cursor
031b8d6c65 llm: RAG-Unterlagen — STIL-OVERRIDE und Struktur (Kurzfassung + je Dokument)
Globaler Prompt fordert sonst knappe Antworten; bei forciertem rag_search
jetzt explizit ausfuehrlicher. User-Zeile: strukturierte Kosten-Antwort statt
nur Quellen-Hinweis. Markdown ** um Dateiname entfernt (Telegram).
2026-03-26 18:39:14 +01:00
Homelab Cursor
93aabf3fc5 monitor: CT 115/Shop-VMIDs als erwartet gestoppt unabhängig vom Proxmox-Host-Key
Die API setzt _host je nach homelab.conf (z.B. pve-hetzner); (115,pve-ka-1)
griff dann nicht. Erwartete stopped-VMIDs jetzt host-unabhängig bei status stopped.
2026-03-26 18:31:23 +01:00
Auto-Sync
e61bd7891e Auto-Sync: 2026-03-26 18:30 2026-03-26 18:30:09 +01:00
Auto-Sync
399e45aa9d Auto-Sync: 2026-03-26 18:15 2026-03-26 18:15:09 +01:00
Auto-Sync
2629549405 Auto-Sync: 2026-03-26 18:00 2026-03-26 18:00:09 +01:00
Auto-Sync
2309f3a68a Auto-Sync: 2026-03-26 17:45 2026-03-26 17:45:09 +01:00
Auto-Sync
6ced05bd5e Auto-Sync: 2026-03-26 17:30 2026-03-26 17:30:09 +01:00
Auto-Sync
d5a63161dc Auto-Sync: 2026-03-26 17:18 2026-03-26 17:18:41 +01:00
Homelab Cursor
40d6badfc7 fix(rag+llm): Kfz-Kosten mit Quelle; kein nackter EUR-Betrag
- Forciertes RAG: Prompt verbietet Ein-Zahl-Antwort; Dateiname Pflicht.
- User-Nachtrag [Quelle: ...] bei forced RAG.
- rag: kostet/wie viel in wide recall; Subqueries Ford Transit / Kfz jährlich.
2026-03-26 17:18:32 +01:00
Homelab Cursor
ae6a50d182 fix(rag+llm): 60 wide treffer, Pfad-Dedup, 100k tool payload
(Nachtrag: vorheriger Commit enthielt nur telegram_bot.)
2026-03-26 17:15:48 +01:00
Homelab Cursor
60d0ef671d fix(rag+tg): mehr Treffer, Pfad-Dedup, keine 4k-Abschneidung
- rag: wide bis 60 Treffer, ES 200, 22 Subqueries, Merge mit Dedup
  pro vollem docnm_kwd (Ordner+Datei getrennt).
- llm: forciertes RAG top_k 60, Tool bis 100k Zeichen.
- telegram: lange Antworten in mehrere Nachrichten (RAG-Listen sichtbar).
2026-03-26 17:15:25 +01:00
Auto-Sync
d17f97f87b Auto-Sync: 2026-03-26 17:15 2026-03-26 17:15:11 +01:00
Auto-Sync
941b42b23a Auto-Sync: 2026-03-26 17:12 2026-03-26 17:12:22 +01:00
Homelab Cursor
dcf70b087b fix(rag): breite Mehrfachsuche + mehr Treffer fuer Uebersichten
- wide_recall: bis 16 ES-Runden mit Sparten-/Gesellschafts-Queries, Merge
  nach Dedup-Key, bis 25 distinct Treffer, groessere Snippets.
- Normale Suche: top_k bis 15, ES bis 150.
- Forciertes RAG: top_k 25, Tool-Payload 32k Zeichen.
- Hinweis: 100% Vollstaendigkeit haengt von Index/OCR ab.
2026-03-26 17:12:13 +01:00
Homelab Cursor
a9d1069728 fix(bot): import rag_mode before build_reply_keyboard 2026-03-26 17:05:36 +01:00
Auto-Sync
2a223e7b5e Auto-Sync: 2026-03-26 17:05 2026-03-26 17:05:17 +01:00
Homelab Cursor
44d80d2a9e feat(bot): Schalter Betriebsart Unterlagen (RAG zuerst)
- Neue Tastaturzeile: Unterlagen AUS/AN zeigt Modus und schaltet um.
- document_mode in ask_with_tools: erzwingt lokales Modell und RAG-Pflicht
  wie bei Doc-Keywords (Session wird bei Suche wie bisher bereinigt).
- Optional: doku:/rag: Prefix fuer einmalige Suche ohne Modus.
- Sprache und Hilfetext ergaenzt.
2026-03-26 17:05:06 +01:00
Auto-Sync
b64e9f2acf Auto-Sync: 2026-03-26 17:01 2026-03-26 17:01:54 +01:00
Homelab Cursor
d771a330c7 fix(routing): yearly costs to local RAG, not Sonar
- Remove standalone "kosten" from WEB_TRIGGERS (matched "jährlichen kosten" and sent Perplexity without tools).
- Add LOCAL_OVERRIDES for jahreskosten/jaehrlich/beitragsrechnung phrases.
- Extend forced-RAG keywords and enrich ES query with Beitrag/Beitragsrechnung for cost questions.
- System hint: extract amounts and periods per hit when possible.
2026-03-26 17:01:43 +01:00
Auto-Sync
ec83e3e433 Auto-Sync: 2026-03-26 17:00 2026-03-26 17:00:15 +01:00
Auto-Sync
3b3358d799 Auto-Sync: 2026-03-26 16:56 2026-03-26 16:56:40 +01:00
Homelab Cursor
03f70fdda3 fix(rag): larger forced tool payload (12k) + list all insurance Sparten
- Forced rag_search used top_k=10 and tool content up to 12k chars (was 3k, cut off most hits).
- System instruction: enumerate each Sparte/doc type for same insurer, not only first hit.
- rag.py SYSTEM_PROMPT_EXTRA: same rule for multi-hit answers.
2026-03-26 16:56:29 +01:00
Auto-Sync
6ab0a269d2 Auto-Sync: 2026-03-26 16:51 2026-03-26 16:51:44 +01:00
Homelab Cursor
7b6543be90 fix(rag): strip session history when forced RAG fires
Poisoned session history (4x wrong answers) overrode RAG results.
Now: when doc keywords trigger forced rag_search, rebuild messages
from scratch with ONLY system prompt + RAG results + question.
No session history = no poisoning.
2026-03-26 16:51:29 +01:00
Auto-Sync
6abafbc792 Auto-Sync: 2026-03-26 16:48 2026-03-26 16:48:36 +01:00
Homelab Cursor
e5327cd65e fix(rag): force rag_search in code, do not rely on LLM tool-calling
The LLM ignores system injections when session history already
contains insurance answers. Now: when doc keywords detected, call
rag_search directly in Python, inject results as fake tool-call
into messages. LLM only needs to format the answer.
2026-03-26 16:48:21 +01:00
Auto-Sync
b9141b6b90 Auto-Sync: 2026-03-26 16:46 2026-03-26 16:47:04 +01:00
Auto-Sync
917e55c9e4 Auto-Sync: 2026-03-26 16:45 2026-03-26 16:45:10 +01:00
Auto-Sync
1efaedc1db Auto-Sync: 2026-03-26 16:38 2026-03-26 16:38:55 +01:00