ref:重构历史消息记录概括器

支持分话题提取
更智能的截断
支持文件缓存
支持要点提取
This commit is contained in:
SengokuCola
2025-11-28 01:29:35 +08:00
parent fa4555197d
commit f8477e573e
5 changed files with 927 additions and 495 deletions

View File

@@ -372,6 +372,7 @@ class ChatHistory(BaseModel):
theme = TextField() # 主题:这段对话的主要内容,一个简短的标题
keywords = TextField() # 关键词这段对话的关键词JSON格式存储
summary = TextField() # 概括:对这段话的平文本概括
key_point = TextField(null=True) # 关键信息话题中的关键信息点JSON格式存储
count = IntegerField(default=0) # 被检索次数
forget_times = IntegerField(default=0) # 被遗忘检查的次数