Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 刷新网页,历史对话全部消失 #5182

Open
dapsjj opened this issue Jan 8, 2025 · 1 comment
Open

[BUG] 刷新网页,历史对话全部消失 #5182

dapsjj opened this issue Jan 8, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@dapsjj
Copy link

dapsjj commented Jan 8, 2025

Langchain-Chatchat版本0.3.1
python版本3.11
使用pip 安装部署
为什么启动项目后进行对话,再刷新网页,之前的对话的历史记录就全部没了?

@dapsjj dapsjj added the bug Something isn't working label Jan 8, 2025
@dapsjj dapsjj changed the title [BUG] 简洁阐述问题 / Concise description of the issue [BUG] 刷新网页,历史对话全部消失 Jan 8, 2025
Copy link

dosubot bot commented Jan 8, 2025

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].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant