feat(eval): Playground GLM 评分落库并可恢复

在 conversations 表增加 playground_conversation_judge_json,流式/非流式对话评审结束后写入最近一次快照(整体分、逐轮分、对比文案、错误与基线文件名等)。新增只读 GET 供前端按会话拉取;评测台 Playground 切换会话时自动恢复,并提示基线是否和当时一致。
This commit is contained in:
Kevin
2026-04-08 16:50:53 +08:00
parent 309a051038
commit 78b61c076e
8 changed files with 361 additions and 91 deletions

View File

@@ -27,6 +27,8 @@ class Conversation(Base):
current_topic = Column(String, nullable=True)
conversation_stage = Column(String, nullable=True)
deleted_at = Column(DateTime(timezone=True), nullable=True)
# 内部评测 Playground最近一次 GLM 对话评分快照(含逐轮分与对比文案)
playground_conversation_judge_json = Column(JSON, nullable=True)
user = relationship("User", back_populates="conversations")
segments = relationship(