Skip to content

Fix topic_segment=False skipping memory extraction and storage#59

Open
LiGuang0624 wants to merge 1 commit intozjunlp:mainfrom
LiGuang0624:fix-topic-segment-false
Open

Fix topic_segment=False skipping memory extraction and storage#59
LiGuang0624 wants to merge 1 commit intozjunlp:mainfrom
LiGuang0624:fix-topic-segment-false

Conversation

@LiGuang0624
Copy link
Copy Markdown

问题描述

topic_segment=False 时,add_memory 会提前返回,导致后续的记忆提取、向量存储全部被跳过。

修改内容

  • 移除提前返回的逻辑
  • 将整个消息序列作为一个 segment 继续处理
  • 增加空消息防御,避免后续错误

测试验证

  • 配置 topic_segment=False
  • 添加测试对话并强制提取
  • 成功检索到存储的记忆

相关 Issue: #55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant