From 70469cfbc5a418c6cbd9a489e9a63161d0da1a76 Mon Sep 17 00:00:00 2001 From: Homelab Cursor Date: Thu, 26 Mar 2026 19:04:23 +0100 Subject: [PATCH] =?UTF-8?q?rag:=20Fix=20toter=20Code=20=E2=80=94=20Immobil?= =?UTF-8?q?ien-Wide-Check=20war=20nach=20return=20unreachbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- homelab-ai-bot/tools/rag.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homelab-ai-bot/tools/rag.py b/homelab-ai-bot/tools/rag.py index 768cefe4..34442acc 100644 --- a/homelab-ai-bot/tools/rag.py +++ b/homelab-ai-bot/tools/rag.py @@ -260,7 +260,8 @@ def _is_wide_recall_query(q: str) -> bool: "jaehrlich", ) ) - return costish and broad + if costish and broad: + return True # Immobilien / Wohnungen / Kambodscha if any(x in ql for x in ("wohnung", "immobilie", "condo", "apartment", "grundstück", "grundstueck")):