From 8262045b1e02dd38ae546f0981542ee39ee52e12 Mon Sep 17 00:00:00 2001 From: lixinyue11 <94037597+lixinyue11@users.noreply.github.com> Date: Wed, 14 Jan 2026 18:36:24 +0800 Subject: [PATCH] Fix/memory bug fix (#118) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 图谱数据量限制数量去掉 * 图谱数据量限制数量去掉 * 图谱数据量限制数量去掉 * 用户详情优化 * 用户详情优化 * 用户详情优化 * 用户详情优化 * 用户详情优化 * 用户详情优化 --- api/app/services/memory_agent_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/services/memory_agent_service.py b/api/app/services/memory_agent_service.py index 2d78d796..e05daf4a 100644 --- a/api/app/services/memory_agent_service.py +++ b/api/app/services/memory_agent_service.py @@ -634,7 +634,7 @@ class MemoryAgentService: retrieved_content.append({query:statements}) if retrieved_content==[]: retrieved_content='' - if '信息不足,无法回答。' != str(final_answer) :#and retrieved_content!=[] + if '信息不足,无法回答。' != str(final_answer) and str(search_switch).strip() != "2":#and retrieved_content!=[] # 使用 upsert 方法 repo.upsert( end_user_id=end_user_id, # 确保这个变量在作用域内