小唯
0e4fb59e1a
feat(zhiyi): t_689b6d38 注入入口加系统样板噪音闸门
被动注入入口不区分「真实用户消息」与「系统通知/提示样板」:近7天
[graph/notes] 通道 806 次注入里 543 次(67%) 入参是系统样板
("[IMPORTANT: You are running as a scheduled cron job..." /
"[IMPORTANT: Background process ..." / "[System note: ..."),
照常走完整实体拆解并返回 3 篇笔记 → 纯浪费 + 稀释信噪比。
改动(判定优先用结构化来源标记头,非纯长度启发式;白名单真实用户提问照常召回):
- 新增 routes/system_template.go: IsSystemTemplateInput(头子串 + 全文子串)
- /api/v1/graph/notes: 命中样板 → mode=none + notes=[] + skipped=system_template,不拆实体
- /api/v1/recall: 命中样板 → results=[] + skipped=system_template,不进语义召回
- plugins/hermes-zhiyi: prefetch/queue_prefetch 加同判据闸门(客户端侧前置拦截)
实测(改后): 样板入参 graph/notes notes_count=0 skipped=system_template;
真实提问 graph/notes mode=nl_extract notes_count=10 / recall count=3(无误杀)。
AC1 7天噪音率基线=543/806(67.4%),改后新日志以 [graph/notes] 拦截 行可判。
2026-10-11 22:19:39 +08:00
..
2026-10-11 22:19:39 +08:00
2026-08-20 01:13:06 +08:00
2026-08-20 01:13:06 +08:00