remove:移除传统记忆模式,默认开启lpmm模式
This commit is contained in:
@@ -237,13 +237,8 @@ async def _react_agent_solve_question(
|
||||
if first_head_prompt is None:
|
||||
# 第一次构建,使用初始的collected_info(即initial_info)
|
||||
initial_collected_info = initial_info or ""
|
||||
# 根据配置选择使用哪个 prompt
|
||||
prompt_name = (
|
||||
"memory_retrieval_react_prompt_head_lpmm"
|
||||
if global_config.experimental.lpmm_memory
|
||||
else "memory_retrieval_react_prompt_head"
|
||||
)
|
||||
first_head_prompt_template = prompt_manager.get_prompt(prompt_name)
|
||||
# 使用 LPMM 知识库检索 prompt
|
||||
first_head_prompt_template = prompt_manager.get_prompt("memory_retrieval_react_prompt_head_lpmm")
|
||||
first_head_prompt_template.add_context("bot_name", bot_name)
|
||||
first_head_prompt_template.add_context("time_now", time_now)
|
||||
first_head_prompt_template.add_context("chat_history", chat_history)
|
||||
|
||||
Reference in New Issue
Block a user