Skip to content

说话人推测名按证据分高/中/低三档(后端) - #286

Merged
zj1123581321 merged 4 commits into
mainfrom
card/vta-261030-tiers
Oct 30, 2026
Merged

zj1123581321 merged 4 commits into
mainfrom
card/vta-261030-tiers

Conversation

@zj1123581321

Copy link
Copy Markdown
Collaborator

背景

证据不够的说话人现在一律显示「说话人N」,参考价值很低。本 PR 改为按程序能核实的证据强弱给每位说话人分档,并修掉卡 C 上线后实测暴露的三个问题(生产只读重跑 10 个两人样本,仅 2 个认出名字)。

改动

  • 新模块 llm/core/speaker_confidence_level.py:每个 meta 条目新增 confidence_level(high/medium/low/none)、guess_name、basis,按证据定档:

    • high:对话点名或自我介绍核对通过;
    • medium:两人「元数据+角色」通路;
    • low:模型给了名字但核对不过;
    • none:模型没给名字。

    mapping 语义不变:低档推测名不进导出和总结。

  • 提示词:title_credit / author_host 的 name 必须照抄原文(@sama 填 sama),删去已过时的「必须另有对话佐证」。

  • 两人通路:

    • @ 规则收窄:只有名字来自标题里的账号时,其余 @ 才算歧义;
    • 开放单边命名:只有一位有名字时,名字来源必须与角色一致(作者名只给主持人,标题名只给嘉宾)。
  • 规则版本 7 → 8。

验证

uv run --frozen pytest tests/unit/test_speaker_confidence_level.py tests/unit/test_speaker_duo_inference.py tests/unit/i18n_llm/test_prompt_selection.py tests/unit/test_speaker_evidence_gate.py tests/unit/test_speaker_inferencer.py tests/unit/test_speaker_self_intro_verifier.py tests/unit/test_llm_schemas.py tests/unit/test_speaker_artifact.py 退出码 0。

🤖 Generated with Claude Code

zj1123581321 added 4 commits October 30, 2026 22:23
Agent-Executor: glm-pi
Agent-Model: glm-5.3-flash
Agent-Effort: high
Dispatch-Id: dlg-20261030-141106-67ca32
Task-Id: VideoTranscriptAPI-20261030-05
Agent-Executor: glm-pi
Agent-Model: glm-5.3-flash
Agent-Effort: high
Dispatch-Id: dlg-20261030-141106-67ca32
Task-Id: VideoTranscriptAPI-20261030-05
Agent-Executor: glm-pi
Agent-Model: glm-5.3-flash
Agent-Effort: high
Dispatch-Id: dlg-20261030-141106-67ca32
Task-Id: VideoTranscriptAPI-20261030-05
Agent-Executor: glm-pi
Agent-Model: glm-5.3-flash
Agent-Effort: high
Dispatch-Id: dlg-20261030-141106-67ca32
Task-Id: VideoTranscriptAPI-20261030-05
@github-actions

Copy link
Copy Markdown

Required Gate v2 — 状态面板

当前状态:pass · 可合并

当前裁决:code_pass / primary_pass

PR 累计主审轮(影子):1/5 · collecting

历史可能不完整:1 个制品处理失败:URLError;1 个历史重建预算耗尽

Gate 历史(v1;来源为持久化 gate_terminal 制品)

Run Attempt Head 状态 PR 累计主审轮(影子) 收件人动作
41075828585 1 f356b92 pass 1/5 · collecting 可合并

历史行按 run_id + run_attempt 去重并只增不删;删除本评论后可由 gate_terminal 制品重建。

@github-actions

Copy link
Copy Markdown

Advisory 未复核 · ocr-minimax

这次没扫:评审额度已耗尽。这不是「扫过且干净」——本 PR 少了一层 advisory 扫描。

要不要管:不阻塞合并,无需处理。下个 run 会自动重跑。

查原因:→ job 日志

失败证据

  • Reason code: budget_exhausted
  • Reason: 本次评审额度耗尽,请查看 job 日志
  • Phase: single
  • Adapter rc: 20
  • CLI rc: 20
  • Termination: 未提供

status=budget_exhausted · verdict=unknown · reviewer=ocr-minimax · adapter_rc=20 · sig=OCR 失败链未走完,评审预算耗尽,未启动后续腿

@zj1123581321
zj1123581321 merged commit 98c36fb into main Oct 30, 2026
13 checks passed
@zj1123581321
zj1123581321 deleted the card/vta-261030-tiers branch October 30, 2026 15:13
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.

1 participant