remove:移除传统记忆模式,默认开启lpmm模式

This commit is contained in:
SengokuCola
2026-03-11 18:20:34 +08:00
parent 788de70450
commit 045bd5e183
7 changed files with 5 additions and 897 deletions

View File

@@ -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)