diff --git a/bot.py b/bot.py index c51498b..e8b0668 100644 --- a/bot.py +++ b/bot.py @@ -1396,7 +1396,8 @@ class Bot: {"role": "user", "content": ( f"Existing memories:\n{existing_text}\n\n" f"User message: {user_message[:500]}\n" - f"AI reply: {ai_reply[:500]}\n\n" + # Only include first 200 chars of AI reply to avoid document content pollution + f"AI reply (summary only): {ai_reply[:200]}\n\n" "New facts to remember (JSON array of strings):" )}, ],