增加常驻群长期记忆与成员轻画像输入

This commit is contained in:
liuwei
2026-04-24 15:44:03 +08:00
parent d0480691c3
commit 0ea7b61951
3 changed files with 79 additions and 6 deletions

View File

@@ -72,8 +72,14 @@ default_char_limit = 30
default_total_limit = 30
[prompt_compact]
group_profile_max_chars = 220
group_profile_max_lines = 6
# 这里改成“常驻轻背景 + 相关增强”后,群长期摘要和成员轻画像都会稳定带给模型:
# 1. group_profile 放宽,让群长期摘要不会总被前面的模式/知识域说明挤掉;
# 2. member_profile_brief_* 新增为常驻轻画像额度,每次都给当前发言人一小段稳定画像;
# 3. 更重的成员记忆、群事实、向量记忆仍然保留独立额度,并继续走按需增强。
group_profile_max_chars = 420
group_profile_max_lines = 10
member_profile_brief_max_chars = 260
member_profile_brief_max_lines = 6
# 最近上下文现在要真实交给模型 30 条,因此这里同步放宽整体上下文裁剪阈值:
# 1. recent_message_max_lines 提到 30避免“窗口明明有 30提示词里只留下 4 条”;
# 2. context_max_lines/context_max_chars 一起抬高,避免最近消息刚拼进去又被整体截断;
@@ -86,8 +92,8 @@ at_member_profile_max_chars = 160
at_member_profile_max_lines = 5
member_memory_max_chars = 180
member_memory_max_lines = 6
memory_max_chars = 240
memory_max_lines = 8
memory_max_chars = 520
memory_max_lines = 14
strict_memory_relevance = true
[image]