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
Hey @dapsjj, I'm here to help you with any issues you're facing in Langchain-Chatchat. I can assist with bug fixes, answering questions, and even guide you on how to contribute. Let's work together to resolve this issue!
I found a similar open issue titled "知识库对话bug" on the Langchain-Chatchat repository, but no solution was found in the comments [1].
Regarding your issue, Langchain-Chatchat handles conversation history using a ConversationBufferDBMemory when a conversation_id is provided and history_len is greater than 0. This setup allows it to retrieve historical messages from a database. If the web page is refreshed and the conversation_id is maintained, the conversation history can be retrieved from the database. However, if the conversation_id is not preserved, the conversation history would not be automatically maintained unless it is explicitly provided again [2][3].
Additionally, session state management is used to preserve conversation settings and history across page refreshes. Functions like save_session and restore_session help maintain the necessary context and settings [3].
Langchain-Chatchat版本0.3.1
python版本3.11
使用pip 安装部署
为什么启动项目后进行对话,再刷新网页,之前的对话的历史记录就全部没了?
The text was updated successfully, but these errors were encountered: