收紧 ai_auto_response 群内问句主动回复策略

- 为疑问句增加 question_detected 形态标记,区分问句形态与真正指向 bot 的提问
- 仅在 @bot、点 bot 名字或明确定向时才把疑问句升级为问答触发
- 阻断普通群问句通过 topic 主动接话路径进入模型,避免 bot 抢答群友互问
- 将 social call 收紧为 名字/别名 + 召唤词 的组合,减少 帮忙看/看看 等泛词误触发
- 在配置中增加 bot_name_keywords 与 social_call_verb_patterns,便于后续按人格扩展
This commit is contained in:
liuwei
2026-04-24 14:26:08 +08:00
parent 571008a04b
commit 058a7aec80
3 changed files with 61 additions and 5 deletions

View File

@@ -88,6 +88,11 @@ recent_followup_window_minutes = 5
at_bot = 1.0
explicit_question = 0.95
question_requires_at = true
# 这里允许“点 bot 名字”作为弱定向信号,但不会把普通群问句当成 bot 提问。
# 只有出现这些名字/别名时,问句或社交召唤才会更像在对 bot 说话。
bot_name_keywords = ["小牛", "xiaoniu", "于谦", "谦哥", "林志玲", "志玲"]
# 这些词本身太泛,必须和 bot 名字一起出现,才算社交召唤。
social_call_verb_patterns = ["在吗", "出来", "帮忙看", "看看", "说句话", "回一句", "救一下"]
followup = 0.90
social_call = 0.65
light_social = 0.45