Discussion Locked

Why Is My Chatbot Repeating Responses Randomly

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Custom LLM-based bot built with LangChain is repeating answers mid-conversation. Could it be token overflow or memory mismanagement? Any fixes or debugging suggestions?

2 replies

by alexsam986

I think this is happening due to conversation memory issues. If your bot keeps seeing the same past summaries, it may think it needs to repeat itself. I would recommend you to check how memory is stored in LangChain, clear the old conversations regularly and help your bot spot duplication early by logging the exact prompts being sent to the model.

This discussion is closed to new replies.