89 lines
2.4 KiB
YAML
89 lines
2.4 KiB
YAML
# config/decision_engine.yaml
|
|
# Steuerung der Decision Engine (WP-06)
|
|
# Hybrid-Modus: Keywords (Fast) + LLM Router (Smart Fallback)
|
|
version: 1.2
|
|
|
|
settings:
|
|
llm_fallback_enabled: true
|
|
|
|
# Few-Shot Prompting für bessere SLM-Performance
|
|
llm_router_prompt: |
|
|
Du bist ein Klassifikator. Analysiere die Nachricht und wähle die passende Strategie.
|
|
Antworte NUR mit dem Namen der Strategie.
|
|
|
|
STRATEGIEN:
|
|
- DECISION: Rat, Strategie, Vor/Nachteile, "Soll ich".
|
|
- EMPATHY: Gefühle, Frust, Freude, Probleme, "Alles ist sinnlos", "Ich bin traurig".
|
|
- CODING: Code, Syntax, Programmierung, Python.
|
|
- FACT: Wissen, Fakten, Definitionen.
|
|
|
|
BEISPIELE:
|
|
User: "Wie funktioniert Qdrant?" -> FACT
|
|
User: "Soll ich Qdrant nutzen?" -> DECISION
|
|
User: "Schreibe ein Python Script" -> CODING
|
|
User: "Alles ist grau und sinnlos" -> EMPATHY
|
|
User: "Mir geht es heute gut" -> EMPATHY
|
|
|
|
NACHRICHT: "{query}"
|
|
|
|
STRATEGIE:
|
|
|
|
strategies:
|
|
# 1. Fakten-Abfrage (Fallback & Default)
|
|
FACT:
|
|
description: "Reine Wissensabfrage."
|
|
trigger_keywords: []
|
|
inject_types: []
|
|
prompt_template: "rag_template"
|
|
prepend_instruction: null
|
|
|
|
# 2. Entscheidungs-Frage
|
|
DECISION:
|
|
description: "Der User sucht Rat, Strategie oder Abwägung."
|
|
trigger_keywords:
|
|
- "soll ich"
|
|
- "meinung"
|
|
- "besser"
|
|
- "empfehlung"
|
|
- "strategie"
|
|
- "entscheidung"
|
|
- "wert"
|
|
- "prinzip"
|
|
- "vor- und nachteile"
|
|
- "abwägung"
|
|
inject_types: ["value", "principle", "goal"]
|
|
prompt_template: "decision_template"
|
|
prepend_instruction: |
|
|
!!! ENTSCHEIDUNGS-MODUS !!!
|
|
BITTE WÄGE FAKTEN GEGEN FOLGENDE WERTE, PRINZIPIEN UND ZIELE AB:
|
|
|
|
# 3. Empathie / "Ich"-Modus
|
|
EMPATHY:
|
|
description: "Reaktion auf emotionale Zustände."
|
|
trigger_keywords:
|
|
- "ich fühle"
|
|
- "traurig"
|
|
- "glücklich"
|
|
- "gestresst"
|
|
- "angst"
|
|
- "nervt"
|
|
- "überfordert"
|
|
inject_types: ["experience", "belief", "profile"]
|
|
prompt_template: "empathy_template"
|
|
prepend_instruction: null
|
|
|
|
# 4. Coding / Technical
|
|
CODING:
|
|
description: "Technische Anfragen und Programmierung."
|
|
trigger_keywords:
|
|
- "code"
|
|
- "python"
|
|
- "script"
|
|
- "funktion"
|
|
- "bug"
|
|
- "syntax"
|
|
- "json"
|
|
- "yaml"
|
|
inject_types: ["snippet", "reference", "source"]
|
|
prompt_template: "technical_template"
|
|
prepend_instruction: null |