From 9a98093e70d677b6ceb710f051a8d1885a3cc9cc Mon Sep 17 00:00:00 2001 From: Lars Date: Fri, 2 Jan 2026 07:45:34 +0100 Subject: [PATCH] Enhance Decision Engine configuration: Add 'router_profile' setting to decision_engine.yaml and update the DecisionEngine class to utilize this profile when generating responses, improving flexibility in strategy determination. --- app/core/retrieval/decision_engine.py | 3 ++- config/decision_engine.yaml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/core/retrieval/decision_engine.py b/app/core/retrieval/decision_engine.py index 8881be0..3b60043 100644 --- a/app/core/retrieval/decision_engine.py +++ b/app/core/retrieval/decision_engine.py @@ -79,6 +79,7 @@ class DecisionEngine: async def _determine_strategy(self, query: str) -> str: """Nutzt den LLM-Router zur Wahl der Such-Strategie.""" prompt_key = self.config.get("settings", {}).get("router_prompt_key", "intent_router_v1") + router_profile = self.config.get("settings", {}).get("router_profile") router_prompt_template = self.llm_service.get_prompt(prompt_key) if not router_prompt_template: return "FACT_WHAT" @@ -87,7 +88,7 @@ class DecisionEngine: try: # Der Router nutzt den Standard-Provider (auto) response = await self.llm_service.generate_raw_response( - full_prompt, max_retries=1, priority="realtime" + full_prompt, max_retries=1, priority="realtime", profile_name=router_profile ) return str(response).strip().upper() except Exception as e: diff --git a/config/decision_engine.yaml b/config/decision_engine.yaml index e858f19..c53261f 100644 --- a/config/decision_engine.yaml +++ b/config/decision_engine.yaml @@ -17,6 +17,7 @@ settings: router_prompt_key: "intent_router_v1" # Pfad zur neuen Experten-Konfiguration (WP-25a Architektur-Cleanliness) profiles_config_path: "config/llm_profiles.yaml" + router_profile: "compression_fast" # --- EBENE 1: STREAM-LIBRARY (Bausteine basierend auf types.yaml v2.7.0) --- streams_library: