Simplify AI memory pipeline
This commit is contained in:
@@ -28,6 +28,10 @@ class MemorySource(Base):
|
||||
speaker = Column(String, nullable=True)
|
||||
captured_at = Column(DateTime(timezone=True), nullable=True)
|
||||
status = Column(String, default="active")
|
||||
embedding_status = Column(String, default="pending")
|
||||
embedding_error = Column(Text, nullable=True)
|
||||
enrichment_status = Column(String, default="pending")
|
||||
enrichment_error = Column(Text, nullable=True)
|
||||
conversation_id = Column(String, ForeignKey("conversations.id"), nullable=True)
|
||||
lineage_json = Column(JSON, nullable=True)
|
||||
primary_user_message_id = Column(String, nullable=True)
|
||||
@@ -52,6 +56,8 @@ class MemoryChunk(Base):
|
||||
event_year = Column(Integer, nullable=True)
|
||||
metadata_json = Column(JSON, nullable=True)
|
||||
is_excluded = Column(Boolean, default=False)
|
||||
embedding_status = Column(String, default="pending")
|
||||
embedding_error = Column(Text, nullable=True)
|
||||
created_at = Column(DateTime(timezone=True), default=utc_now)
|
||||
source = relationship("MemorySource", back_populates="chunks")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user