From 5a8c8ff7f28f080b591087c26eae20335f064b23 Mon Sep 17 00:00:00 2001 From: 997146918 <997146918@qq.com> Date: Fri, 15 Aug 2025 16:56:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=AF=B9=E8=AF=9D=E4=B8=8A?= =?UTF-8?q?=E4=B8=8B=E8=BD=AE=E5=8F=82=E6=95=B0=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AITrain/dual_ai_dialogue_system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AITrain/dual_ai_dialogue_system.py b/AITrain/dual_ai_dialogue_system.py index 959f069..f156e05 100644 --- a/AITrain/dual_ai_dialogue_system.py +++ b/AITrain/dual_ai_dialogue_system.py @@ -457,7 +457,7 @@ class DualAIDialogueEngine: search_query = f"{current_speaker} {topic_hint} introduction greeting" # 搜索相关上下文 - context_info = self.kb.search_relevant_context(search_query, current_speaker, max(10, context_info_count * 2)) + context_info = self.kb.search_relevant_context(search_query, current_speaker, context_info_count) # 生成提示(使用参数控制上下文数量) prompt = self.generate_character_prompt(