优化ai_auto_response提示词与短回复策略:场景优先级、防冲突压缩、记忆相关性筛选、可配置长度限制

- 增加场景优先级规则,技术群优先结论与排查点,降低人设冲突\n- Dify 入参新增上下文压缩、画像与记忆去重、低相关记忆过滤\n- 回复后处理支持配置化长度阈值,并增加总字数上限裁剪\n- 新增 prompt_compact/reply 配置项,便于后续按群微调
This commit is contained in:
liuwei
2026-04-16 11:24:41 +08:00
parent a68d6d5e6c
commit 5eb1e3294f
4 changed files with 273 additions and 20 deletions

View File

@@ -53,6 +53,33 @@ long_absent_member_days = 30
memory_lookback_days = 180
active_context_hours = 8
[reply]
social_short_char_limit = 30
social_short_total_limit = 30
qa_fast_char_limit = 34
qa_fast_total_limit = 34
qa_with_context_sentence_limit = 2
qa_with_context_chunk_limit = 2
qa_with_context_char_limit = 32
qa_with_context_total_limit = 55
default_char_limit = 28
default_total_limit = 28
[prompt_compact]
group_profile_max_chars = 560
group_profile_max_lines = 10
context_max_chars = 900
context_max_lines = 18
recent_message_max_lines = 8
recent_message_line_max_chars = 60
at_member_profile_max_chars = 300
at_member_profile_max_lines = 8
member_memory_max_chars = 520
member_memory_max_lines = 12
memory_max_chars = 900
memory_max_lines = 18
strict_memory_relevance = true
[image]
recent_followup_window_minutes = 5