feat(user_profile_tool): 更新好感分数描述,增加评分注意事项以提升用户理解

This commit is contained in:
Windpicker-owo
2025-11-12 13:38:03 +08:00
parent e12114c797
commit c9ee50aed8
4 changed files with 8 additions and 4 deletions

View File

@@ -45,6 +45,7 @@ class CreateMemoryTool(BaseTool):
- 单纯招呼语:"你好""再见""谢谢"
- 无意义语气词:"""""好的"
- 纯粹回复确认:没有信息量的回应
- 不要记录人设中的信息!只记录聊天记录中的信息!!
## 记忆拆分原则
一句话多个信息点 → 多次调用创建多条记忆

View File

@@ -1213,7 +1213,7 @@ class MemoryTools:
similar_nodes = await self.vector_store.search_with_multiple_queries(
query_embeddings=query_embeddings,
query_weights=query_weights,
limit=top_k * 5, # 🔥 从2倍提升到5倍提高初始召回率
limit=top_k * 2,
fusion_strategy="weighted_max",
)