Commit Graph

3 Commits

Author SHA1 Message Date
Bernd (Hermes) 97d59f5272 feat(room_index): weave seed_data messages into FAISS embedding text
Strategie B: _room_to_text() webt kuratierte seed_data-Messages
in den Embedding-Text ein, um FAISS-Similarity zu schärfen.

Änderungen:
- room_index.py: import SEED_DATA, _room_to_text() erweitert
  um Seed-Message-Einwebung (nur für Räume mit SEED_DATA-Eintrag)
- test_room_index.py: MockEmbeddingClient auf Keyword-Zählung
  umgestellt (statt binär any()) — verhindert Cross-Contamination
  durch längere Embedding-Texte mit Seed-Messages

Tests: 35/35 passed (22 booster + 13 room_index)
2026-06-18 07:27:34 +02:00
Bernd (Hermes) 60665c5fd4 feat(archivar): 200-Wort-Raumbeschreibungen für FAISS Phase-1
room-map.json v3:
- Neues 'description'-Feld (~200 Wörter) für alle 4 Nicht-Catch-All-Räume
- BAT-Team: Trading-Plattform, Docker, Next.js, Prisma, Wyckoff
- Rocketchat-Plugin: DDP/WebSocket, Archivar, Gateway, Buttons
- LAN-Dokumentation: Homelab, Proxmox, Subnetze, VLAN, pfSense
- Protonbridge-Plugin: IMAP/SMTP-Proxy, Himalaya, Bridge

room_map.py:
- RoomEntry.description als optionales Feld (default '')
- _from_dict, save, add_or_update_room, Legacy-Migration aktualisiert

room_index.py:
- _room_to_text(): description prioritär, theme als Fallback
- Keywords weiterhin doppelt gewichtet im Embedding-Text

room-map.schema.json:
- description als optional string (minLength 50)
- version minimum auf 3

FAISS-Neubau via is_stale() nach Version-Bump automatisch
2026-06-18 06:31:11 +02:00
Bernd (Hermes) 03d3bb44df BUGFIX: FAISS Phase-1 TypeError float+str in adapter_integration.py:292
Root cause: RoomIndexManager.stats() returns a dict with mixed types
(bool, int, float, str). sum() iterated over all values and crashed
when hitting built_at_iso (str) after built_at (float).

Fix: Replace stats() call with direct .size and .room_ids properties.
Also commit FAISS Phase-1 files (booster.py, room_index.py, seed_data.py)
that were deployed to Gateway but not yet in repo.

Tests: 58 passed (0 failures)
2026-06-16 20:31:57 +02:00