feat:测试性的新辅助记忆系统
This commit is contained in:
@@ -267,6 +267,16 @@ class PersonInfo(BaseModel):
|
||||
# database = db # 继承自 BaseModel
|
||||
table_name = "person_info"
|
||||
|
||||
class Memory(BaseModel):
|
||||
memory_id = TextField(index=True)
|
||||
chat_id = TextField(null=True)
|
||||
memory_text = TextField(null=True)
|
||||
keywords = TextField(null=True)
|
||||
create_time = FloatField(null=True)
|
||||
last_view_time = FloatField(null=True)
|
||||
|
||||
class Meta:
|
||||
table_name = "memory"
|
||||
|
||||
class Knowledges(BaseModel):
|
||||
"""
|
||||
@@ -370,6 +380,7 @@ def create_tables():
|
||||
RecalledMessages, # 添加新模型
|
||||
GraphNodes, # 添加图节点表
|
||||
GraphEdges, # 添加图边表
|
||||
Memory,
|
||||
ActionRecords, # 添加 ActionRecords 到初始化列表
|
||||
]
|
||||
)
|
||||
@@ -391,6 +402,7 @@ def initialize_database():
|
||||
OnlineTime,
|
||||
PersonInfo,
|
||||
Knowledges,
|
||||
Memory,
|
||||
ThinkingLog,
|
||||
RecalledMessages,
|
||||
GraphNodes,
|
||||
|
||||
Reference in New Issue
Block a user