feat(memoir): 回忆录分段两阶段管线(Phase1 分类 / Phase2 叙事)与配置、测试

This commit is contained in:
Kevin
2026-04-02 16:37:14 +08:00
parent 3ae39838c0
commit 6b930808a3
27 changed files with 1550 additions and 430 deletions

View File

@@ -50,7 +50,12 @@ class Segment(Base):
audio_duration_seconds = Column(Integer, nullable=True)
created_at = Column(DateTime(timezone=True), default=utc_now)
processed = Column(Boolean, default=False)
# Phase 1 分类结果(回忆录 chapter 类目);非空表示 Phase 1 已完成
topic_category = Column(String, nullable=True)
# Phase 2 已消费该段并完成叙事落库
narrated = Column(Boolean, default=False, server_default="false")
# Phase 1 判定无需进故事管线(无 slots 且 LLM 判 none
skip_narrative = Column(Boolean, default=False, server_default="false")
agent_response = Column(Text, nullable=True)
tts_audio_urls = Column(JSON, nullable=True)