better:优化记忆检索占用

This commit is contained in:
SengokuCola
2025-11-11 00:40:43 +08:00
parent 85864c7013
commit 26784b00a5
5 changed files with 23 additions and 459 deletions

View File

@@ -377,6 +377,7 @@ class ChatHistory(BaseModel):
theme = TextField() # 主题:这段对话的主要内容,一个简短的标题
keywords = TextField() # 关键词这段对话的关键词JSON格式存储
summary = TextField() # 概括:对这段话的平文本概括
count = IntegerField(default=0) # 被检索次数
class Meta:
table_name = "chat_history"