调整对话上下轮参数控制
This commit is contained in:
parent
773d8fb9cf
commit
5a8c8ff7f2
@ -457,7 +457,7 @@ class DualAIDialogueEngine:
|
|||||||
search_query = f"{current_speaker} {topic_hint} introduction greeting"
|
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(
|
prompt = self.generate_character_prompt(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user