Im using langchain js library with open ai on node js backend, but Im having a problem at passing the chat history to prompt template for the reason that sometimes the answers are returned the same even if the question is different. I tried to do it on 2 ways:
- to pass the chat history as an array of strings with messages. (questions from the user and answers)
- to pass the chat history as an array of objects where inside of one object is a question and the answer.
but on both cases Im getting the same issue with the same answers from the open ai.