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] 对话模块显示有误 #6857

Open
ruanjunmin opened this issue Mar 10, 2025 · 10 comments
Open

[Bug] 对话模块显示有误 #6857

ruanjunmin opened this issue Mar 10, 2025 · 10 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@ruanjunmin
Copy link

📦 部署环境

Docker

📦 部署模式

服务端模式(lobe-chat-database 镜像)

📌 软件版本

1.70.0

💻 系统环境

Windows

🌐 浏览器

Chrome

🐛 问题描述

发现通过引用知识库 或者是使用助手的时候,对话问问题的模块会在回答模块的下方,不符合逻辑。

📷 复现步骤

如下图,选择了知识库,然后回复的效果颠倒了。
Image

🚦 期望结果

修复到问答对话的正常效果。

📝 补充信息

No response

@ruanjunmin ruanjunmin added the 🐛 Bug Something isn't working | 缺陷 label Mar 10, 2025
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Mar 10, 2025
Copy link

dosubot bot commented Mar 10, 2025

@ruanjunmin 你好!我是Dosu,一个可以帮助你解决 bug、回答问题,甚至成为贡献者的机器人。我会在等待人类维护者的时候帮助你。期待和你一起解决问题!🤖

The issue you're experiencing, where the question module appears below the answer module when using the knowledge base or assistant, seems to be related to the rendering order of chat messages. The lobe-chat system uses a method called reorderToolMessages to ensure messages are displayed in the correct order. This method reorders messages by associating tool messages with their corresponding assistant messages, ensuring they appear immediately after each other [1].

To address this issue, you might want to check if the reorderToolMessages function is being correctly applied in your setup. Ensure that all messages, especially those involving tool calls or knowledge base references, are being processed by this function to maintain the logical order of questions and answers. If the issue persists, it might require further investigation into how the knowledge base integration affects message ordering.

To continue talking to Dosu, mention @dosu.


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

@arvinxx
Copy link
Contributor

arvinxx commented Mar 10, 2025

咦,刷新下页面也是这样吗

@ruanjunmin
Copy link
Author

咦,刷新下页面也是这样吗

Image
用本地ollama的千问和deepseek 好像不会
用了API调用google gemini的模型这样

@ruanjunmin
Copy link
Author

我试下别的模型 会不会

@ruanjunmin
Copy link
Author

ruanjunmin commented Mar 10, 2025

Image

调用ds V3也这样= =
版本是最新版本

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
Status: Roadmap - Chat 1.x
Development

No branches or pull requests

3 participants
@arvinxx @ruanjunmin and others