refactor(eval+memoir):精简内部评测路由与服务,composite/对话摘要与 judge 能力补强

- 访谈:新增 interview_state_hints,联动 orchestrator 与提示词
- 回忆录:story_pipeline_sync/state/memory/post_commit 与 Celery 任务调整
- 基建:开发用 celery broker、compose/development 脚本、依赖注入
- eval-web:移除数据集/实验/版本等页面与流式轮询,突出 Playground
- 文档与单测同步
This commit is contained in:
Kevin
2026-04-08 21:36:12 +08:00
parent 2a0c80987d
commit 064ad2161d
64 changed files with 3412 additions and 3068 deletions

View File

@@ -21,18 +21,24 @@ def normalize_interview_persona(raw: str | None) -> str:
def get_interview_persona_tone_hint(persona: str) -> str:
"""一句访谈性格提示,融入主 system promptdefault 返回空串"""
"""访谈性格提示,融入主 system prompt。"""
key = normalize_interview_persona(persona)
if key == "default":
return ""
return (
"语气像好朋友微信聊天:自然、温暖、偶尔俏皮;"
"接话时允许带一点画面感或感官细节(一两句即可,不要堆砌);"
"追问优先顺着对方刚说的**具体细节**往里走一层,不要跳到泛泛的新问题。"
)
if key == "warm_listener":
return (
"偏倾听与承接,语气柔和、少打断;不审问感,一次最多一个具体问题。"
"对方愿意展开时,可温和多问一层意义或影响。"
"接话时允许带一点画面感或感官细节(一两句即可),让对方觉得你真的在跟着想象。"
)
return (
"爱把人往一个具体细节里带;事实清楚后可追问对自我认知或后来选择的影响;"
"短句像微信,一次最多一个具体问题,不重复上文已清楚的事。"
"允许用一两句场景感的短描写承接对方画面,不要只用干巴巴的确认句。"
)