Closed soylomass closed 1 year ago
Seems that the messages are put into the prompt in the wrong order when using langchainjs and the motorhead memory too. Can anyone confirm? PS: I'm using returnMessages: true mode
Edit: I temporarily solved this issue by reversing the messages after they are retrieved from Redis (in both memory.rs and reducer.rs). Not sure if I broke something by doing that but it's working correctly now.
@soylomass confirmed, working on a fix for the summarizer portion.
Thank you for the issue! Should be fixed now 🤘
Messages are passed in the wrong order to the summarizer. Example:
In this example, the last one was the first message.
In many circumstances, this doesn't matter, but sometimes it does. In a similar conversation, the summary returned:
This summary is wrong, as the human didn't "finally greet", but started the conversation greeting.