Skip to content

feat(scoring): 六维评分行为锚点标尺(中/英同标尺,试点) - #115

Merged
fxbin merged 1 commit into
mainfrom
issue-114-scoring-behavior-anchors
Oct 12, 2026
Merged

fxbin merged 1 commit into
mainfrom
issue-114-scoring-behavior-anchors

Conversation

@fxbin

@fxbin fxbin commented Oct 12, 2026

Copy link
Copy Markdown
Owner

What & why

六维评分字段(quality/hot/freshness/creator/viral/risk)此前在 prompt 里只有一句名称提示,LLM 打分跨样本、跨语种不可比;TopicEye 的卖点是可解释打分,可解释的前提是「同一个 85 分在任何一天意味着同一件事」。按 Easel 调研 C3 的圆桌裁决(4/4 trial,严格排在 #110 之后),以试点口径落地:scoring_caliber 新增六维 × 四档行为锚点(0-30/40-60/70-85/90-100,每档一句可判定的行为描述),中/英 prompt 从同一份常量渲染锚点段落,并附对照跑分工具供全量前确认分布迁移幅度。论文版按裁决不并入首期(它是独立的四维精读体系)。

Fixes #114

Area

  • backend

Verification

  • pytest tests/test_scoring_caliber.py tests/test_scoring_anchor_ab.py → 17 passed(含锚点逐字一致、逐维档位提取、论文版排除、剥离还原、分布汇总与门槛跨越)
  • 相关面 tests/test_scoring_engine.py tests/test_today_picks.py tests/test_paper_analysis.py tests/test_scoring_flow.py tests/test_analyses_api.py 同批全绿
  • make test-backend 全量 → exit 0
  • ruff check + ruff format --check + check_layering.py → 全过

Verifier verdict

pass——独立复核(非实现过程)六条全 confirmed,关键两条以实跑验证:① 对照基线还原做到字节级一致(剥离锚点段的中/英 prompt 与 main 版逐字符 cmp 相同,A/B 的「旧臂」就是历史 prompt);② 漂移锁变异模拟全红(手改任一档描述/档位边界/论文版误植/表缺档,对应测试全部判红)。两个措辞级 note:en 第四档漏译「深度复盘」已在提交前修复;risk=70 单点缝隙判可忽略。

Checklist

Notes for reviewer

  1. 行为变化(本 PR 的目的):中/英 prompt 增加锚点段落,预期 LLM 分数向锚点档位收敛、分布发生迁移——这正是试点要观察的对象,不是回归。
  2. 合并后、全量生效前的试点动作:cd backend && uv run python scripts/scoring_anchor_ab.py --limit 30,对照报告贴回 六维评分行为锚点标尺:中/英 prompt 从一句名称提示升级为四档可判定描述(试点) #114;线上在 admin/scoring-dashboard 按 analyzed_at 分界观察。样本不足时放宽 --hours。
  3. 锚点措辞属口径演进:改 DIMENSION_ANCHORS_* 即可,prompt 与测试自动跟随(漂移锁防的是绕过 caliber 手改 prompt)。

scores 块六维此前只有一句名称提示,LLM 打分跨样本跨语种不可比——可解释
打分的前提是同一个 85 分在任何一天意味着同一件事。scoring_caliber 新增
ANCHOR_BANDS 与中英两份锚点表(每维四档可判定行为描述),中/英 prompt 从
它渲染锚点段落,论文版按裁决不并入首期;漂移测试扩展为锚点逐字一致、
档位逐维提取比对、论文版排除断言。附 scripts/scoring_anchor_ab.py 对照
跑分工具:剥离锚点段可逐字节还原 main 版 prompt(独立复核已验证),全量
启用前先跑对照确认分布迁移幅度。
@fxbin
fxbin merged commit 70e3a86 into main Oct 12, 2026
6 checks passed
@fxbin
fxbin deleted the issue-114-scoring-behavior-anchors branch October 12, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

六维评分行为锚点标尺:中/英 prompt 从一句名称提示升级为四档可判定描述(试点)

1 participant