tune xiaoniu reply brevity and flow thresholds
This commit is contained in:
@@ -19,7 +19,7 @@ class ContextBuilder:
|
||||
vector_memories: List[Dict],
|
||||
) -> Dict:
|
||||
recent_lines = []
|
||||
for item in recent_messages[-30:]:
|
||||
for item in recent_messages[-8:]:
|
||||
msg_sender = item.get("sender_name") or item.get("sender") or "未知成员"
|
||||
msg_content = item.get("content") or item.get("message") or ""
|
||||
if msg_content:
|
||||
@@ -63,7 +63,7 @@ class ContextBuilder:
|
||||
if not vector_memories:
|
||||
return ""
|
||||
lines = []
|
||||
for item in vector_memories[:5]:
|
||||
for item in vector_memories[:2]:
|
||||
summary = item.get("content_summary") or item.get("summary_text") or item.get("text") or ""
|
||||
memory_type = item.get("memory_type", "memory")
|
||||
if summary:
|
||||
|
||||
Reference in New Issue
Block a user