From 57369059eb054e661ed18a63fff6853a1710cad9 Mon Sep 17 00:00:00 2001 From: ouyangyouzhang Date: Tue, 29 Jul 2025 09:22:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=95=E5=85=A5=E5=B7=A5=E5=8D=95=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E5=8C=B9=E9=85=8D=E8=BD=AF=E4=BB=B6=E8=AF=8D=E6=9D=A1?= =?UTF-8?q?=E8=BE=85=E5=8A=A9=E6=80=A7=E4=B8=8D=E5=A4=A7=E4=B8=94=E8=AF=A5?= =?UTF-8?q?=E7=8E=AF=E8=8A=82=E4=B8=8A=E4=B8=8B=E6=96=87=E8=BE=83=E9=95=BF?= =?UTF-8?q?=EF=BC=8CToken=E6=B6=88=E8=80=97=E8=BE=83=E5=A4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rag2_0/intent_recognition/IntentRecognition.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rag2_0/intent_recognition/IntentRecognition.py b/rag2_0/intent_recognition/IntentRecognition.py index 323db3e..aceb439 100755 --- a/rag2_0/intent_recognition/IntentRecognition.py +++ b/rag2_0/intent_recognition/IntentRecognition.py @@ -418,7 +418,7 @@ class AsyncIntentRecognizer: asyncio.create_task(self._generate_step_back_prompt_async(query, chat_history, conversation_context)), # 文档查询 - asyncio.create_task(self._find_matching_software_docs_async(query, cur_soft_name, chat_history)), + # asyncio.create_task(self._find_matching_software_docs_async(query, cur_soft_name, chat_history)), ] # 执行关键词匹配 @@ -470,19 +470,19 @@ class AsyncIntentRecognizer: # 收集结果 step_back_result = query_expand_results[0] if query_expand_results[0] else StepBackPrompt(original_query=query, can_use_back_prompt=False, step_back_query=[query]) - wiki_result = query_expand_results[1] if query_expand_results[1] else [] + # wiki_result = query_expand_results[1] if query_expand_results[1] else [] all_questions=[] all_questions.append(query) all_questions.append(rewrite.rewrite) - all_questions.extend(wiki_result) + # all_questions.extend(wiki_result) all_questions.extend(step_back_result.step_back_query) all_questions = list(set(all_questions)) query_expand = { "all": all_questions, "step_back": step_back_result.step_back_query, - "wiki_title": wiki_result, + # "wiki_title": wiki_result, "original_query":query, "rewrite_query":rewrite.rewrite }