From 68632a7ad12dee0bc01a27d080ea054204a3287b Mon Sep 17 00:00:00 2001 From: Oleh Poiasnik Date: Wed, 21 May 2025 19:14:33 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20Backend/model.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Backend/model.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/Backend/model.py b/Backend/model.py index b83bead..251ecf6 100644 --- a/Backend/model.py +++ b/Backend/model.py @@ -246,8 +246,6 @@ llm_large = CustomMistralLLM( # Funkcia na klasifikáciu dopytu: vyhladavanie vs. upresnenie alebo update informácií ############################################################################### def classify_query(query: str, chat_history: str = "") -> str: - # Ak v histórii sa nachádza výzva na zadanie údajov a query obsahuje číslice (napr. vek), - # považujeme to za odpoveď na doplnenie informácií. if "Prosím, uveďte vek pacienta" in chat_history and re.search(r"\d+\s*(rok(ov|y)?|years?)", query.lower()): return "update" if not chat_history.strip(): @@ -379,7 +377,6 @@ CHAT_HISTORY_ENDPOINT = "http://localhost:5000/api/chat_history_detail" def process_query_with_mistral(query: str, chat_id: str, chat_context: str, k=10): logger.info("Processing query started.") - # Načítame históriu chatu chat_history = "" if chat_context: chat_history = chat_context