From 6b7822048a10e7dd9ec79063119c9c3baabf3cf4 Mon Sep 17 00:00:00 2001 From: ooodc <549496103@qq.com> Date: Sat, 25 Apr 2026 15:03:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E8=AE=B0=E5=BF=86?= =?UTF-8?q?=E6=A3=80=E7=B4=A2=E6=96=87=E6=A1=A3=EF=BC=8C=E6=98=8E=E7=A1=AE?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=95=B0=E7=BB=84=E6=95=B0=E9=87=8F=E8=A6=81?= =?UTF-8?q?=E6=B1=82=E4=BB=A5=E6=8F=90=E9=AB=98=E6=90=9C=E7=B4=A2=E6=95=88?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- src/agent/memory_tool_usage_system_prompt.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index fd25c41..0c25edb 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ AGENTS.md CLAUDE.md Cargo.lock .playwright-cli/ -.venv \ No newline at end of file +.venv +PicoBot.code-workspace diff --git a/src/agent/memory_tool_usage_system_prompt.md b/src/agent/memory_tool_usage_system_prompt.md index 3653916..60cf004 100644 --- a/src/agent/memory_tool_usage_system_prompt.md +++ b/src/agent/memory_tool_usage_system_prompt.md @@ -27,7 +27,7 @@ ## 检索方式 -- 检索时应提供 queries 数组。 +- 检索时应提供 queries 数组,数组的数量一般需要8-10个,这样才能保证搜索得全。 - 尽量同时放入中文关键词、英文别名,以及可能的 snake_case memory_key 词。如果最后一轮的会话与前面的话题不一致,则优先根据最后一轮用户的会话来生成关键词,保留1、 2个历史会话的 - 越靠近最新会话,生成关键词的比例或者权重应该更高 - 例如:queries=['email', '邮件', 'email_folder_preference']。