You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently only the last chat message with the user question is fed to the chat model. However, the complete chat history is sent to the server. We should use LangChain's Memory component to integrate the previous messages in the model invocation, with a limit set.
Tasks
Add BufferMemory with the last 5 messages to the existing chain in /chat endpoint
Extract the 5 message window value in constants.ts
The text was updated successfully, but these errors were encountered:
Currently only the last chat message with the user question is fed to the chat model. However, the complete chat history is sent to the server. We should use LangChain's Memory component to integrate the previous messages in the model invocation, with a limit set.
Tasks
5
message window value inconstants.ts
The text was updated successfully, but these errors were encountered: