docs: Archivar v4 — README + Community Post aktualisiert

- Archivar v3 → v4: LLM-basierter Raum-Router statt IntentClassifier
- 2-stage pipeline: Embedding pre-filter + LLM room router
- Keywords as anchors, zero DeepSeek tokens for routing
- 10s timeout, CATCH_ALL fallback, Butler principle
- Operating stage log dokumentiert
This commit is contained in:
Bernd (Hermes)
2026-06-14 13:59:22 +02:00
parent 170f7e6096
commit 44121da702
2 changed files with 53 additions and 39 deletions
+12 -10
View File
@@ -41,15 +41,17 @@ The agent knows what happened in ALL rooms. It routes tasks to the right room. I
- Structured payloads: `question_id::choice` — the agent always knows what you clicked
- REST-first: native buttons always tried first; text fallback only on HTTP error
### 🧭 Smart Room Routing (Archivar v3)
### 🧭 Smart Room Routing (Archivar v4)
The agent understands **where messages belong**, not just what category they are.
The agent understands **where messages belong** — and routes them there, with your permission.
- **3-stage classifier:** Keyword → Embedding → LLM (optional)
- **Bidirectional routing:** Messages flow between rooms, but answers always stay where you asked
- **Move-Requests with buttons:** When a task belongs elsewhere, you get clickable options — not text prompts
- **Sticky rooms:** Tell the agent "always stay here" and it remembers
- **Catch-All room:** Nothing gets lost — unclassified messages land in a designated fallback
- **2-stage pipeline:** Embedding pre-filter (nomic-embed-text, <100ms) → LLM room router (qwen2.5:7b, ~2.4s)
- **LLM-based room router** — The LLM receives the full message + room list with keywords and returns the target room ID directly. No intent categories, no fuzzy matching.
- **Keywords as anchors** — Room-specific keywords in the LLM prompt give precise hints. "RC" at the end of a sentence is recognized.
- **Move-Requests with buttons:** When a task belongs elsewhere, you get ✅Ja / 📍Hier — clickable options, never text prompts
- **Zero token cost for routing** — The entire routing process runs on local models. Your primary LLM never spends tokens on figuring out where to reply.
- **Timeout & fallback:** 10s LLM timeout → automatic CATCH_ALL. **No answer is not an option.**
- **Butler principle:** The agent suggests, you decide. Nothing is silently rerouted.
### 🆕 Auto-Onboarding
@@ -129,13 +131,13 @@ Hermes Agent is powerful — but the CLI isn't where conversations happen. Teams
| 7 REST API tools | ✅ Stable |
| Interactive buttons | ✅ Stable |
| Button-Garantie | ✅ Enforced |
| Archivar v3 room routing | ✅ Deployed |
| Archivar v4 room routing | ✅ Deployed (2026-06-14) |
| Auto-onboarding | ✅ Stable |
| FAKT → Obsidian Vault | ✅ Stable |
| File upload/download/list | ✅ Stable |
| `install.sh` one-click setup | ✅ Stable |
**In progress:** `install.sh` deployment path alignment, button verification tests.
**In progress:** `install.sh` deployment path alignment.
---
@@ -160,7 +162,7 @@ A: Yes — the bot listens in all subscribed rooms. One agent session handles al
A: No. A regular user with `bot` role is sufficient. The bot needs `create-d`, `create-p`, and `upload-file` permissions (standard for bot role).
**Q: What happens if the gateway restarts?**
A: The bot reconnects automatically. Sticky room preferences are in-memory (reset on restart). The room-map.json persists. There's a known Discovery Bug where Rocket.Chat may not reconnect after SIGTERM — workaround is clearing state files before restart.
A: The bot reconnects automatically. The room-map.json persists. There's a known Discovery Bug where Rocket.Chat may not reconnect after SIGTERM — workaround is clearing state files before restart. The Archivar v4 initializes immediately after reconnect with the operating stage log: `Archivar Stufe 1: Embedding-Vorfilter + LLM-Raum-Router aktiv (5 Räume)`.
**Q: Is this an official Nous Research product?**
A: No — it's a community plugin maintained independently. Public Domain license.