v0.11 U6: risikobasierte KI-Extraktion von Gast- und Portalnachrichten
- Kleines Modell (claude-haiku-5-5) extrahiert Fakten mit Belegstelle und Konfidenz; programmatische Prüfung (Gültigkeit, Belegstelle im Original, Widerspruch zum gespeicherten Wert oder in der Nachricht, Plausibilität, Kritikalität nach Feld und Phase). Widerspruch oder fehlgeschlagene Prüfung → Prüfmodell (claude-opus-5-5, serverseitiger Fallback bei Ablehnung) unabhängig von der Konfidenz; solche Fakten nie automatisch. - Nur geprüfte, bisher fehlende Angaben gehen an den Fakteneingang (Quelle „llm“); Zeitraum/Personen nur als Änderungswunsch (M06); Rest als Vorschlag im Posteingang („Vorschläge übernehmen“). - Versionierte Prompts mit Platzhaltern, JSON-Schema mit eigener Validierung und einer Wiederholung; Ausfall/Ablehnung → sicherer Rückfall zur Vermieterin. HTTP-Client, kein SDK (laut Plan). - Dienst „KI: Gästekommunikation“ verdrahtet, standardmäßig aus; Schlüssel je Mandant oder FEWO_AI_API_KEY; Verbrauch in service_usages. - messages:extract alle fünf Minuten; ai:evaluate misst Fehlwerte und übersehene Angaben getrennt (M05). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
dff9e2344e
commit
4170e3bd29
18 files changed
+1130
-7
No files matched your search
@@ -104,6 +104,25 @@
|
||||
| Mailbox that receives the portals' booking notifications (fast path for portal bookings).
|
||||
| Read via IMAP every minute; messages are left unread. Empty host = disabled.
|
||||
*/
|
||||
/*
|
||||
| v0.11 extraction of guest messages (CH-14): a small model extracts, rules check, a larger model reviews risky
|
||||
| results. Thresholds are starting values to be calibrated with representative messages (go-live condition).
|
||||
*/
|
||||
'ai' => [
|
||||
'endpoint' => env('FEWO_AI_ENDPOINT', 'https://api.anthropic.com/v1/messages'),
|
||||
'api_version' => env('FEWO_AI_API_VERSION', '2026-10-21'),
|
||||
'api_key' => env('FEWO_AI_API_KEY'),
|
||||
'small_model' => env('FEWO_AI_SMALL_MODEL', 'claude-haiku-5-5'),
|
||||
'review_model' => env('FEWO_AI_REVIEW_MODEL', 'claude-opus-5-5'),
|
||||
'timeout' => (int) env('FEWO_AI_TIMEOUT', 40),
|
||||
'prompt_version' => env('FEWO_AI_PROMPT_VERSION', 'v1'),
|
||||
// Escalate to the review model when criticality × (1 − confidence) exceeds this value.
|
||||
'escalate_above' => (float) env('FEWO_AI_ESCALATE_ABOVE', 0.2),
|
||||
// Minimum confidence of the final result for taking a detail over automatically.
|
||||
'min_confidence' => (float) env('FEWO_AI_MIN_CONFIDENCE', 0.85),
|
||||
'per_run' => (int) env('FEWO_AI_PER_RUN', 10),
|
||||
],
|
||||
|
||||
'mailbox' => [
|
||||
'host' => env('FEWO_MAILBOX_HOST'),
|
||||
'port' => (int) env('FEWO_MAILBOX_PORT', 993),
|
||||
|
||||
Reference in new issue
Block a user