langchain icon indicating copy to clipboard operation
langchain copied to clipboard

Motorhead Memory messages come in reversed order.

Open BankNatchapol opened this issue 1 year ago • 0 comments

History from Motorhead memory return in reversed order It should be Human: 1, AI:..., Human: 2, Ai...

You are a chatbot having a conversation with a human.
AI: I'm sorry, I'm still not sure what you're trying to communicate. Can you please provide more context or information?
Human: 3
AI: I'm sorry, I'm not sure what you mean by "1" and "2". Could you please clarify your request or question?
Human: 2
AI: Hello, how can I assist you today?
Human: 1
Human: 4
AI:

So, i reversed the messages before putting in chat_memory.

BankNatchapol avatar Apr 30 '23 15:04 BankNatchapol