-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
[Request] 你们能不能用ai优化一下性能,总感觉不够流畅。 #7158
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
Comments
🥰 Requirement descriptionHope it's as smooth as nextchat. 🧐 SolutionIs it technical reason that lobechat has been stuck all the time? 📝 Supplementary informationNo response |
👀 @sscc9 Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
如果是聊天的时候卡顿,可以检查当前话题是不是消息堆太多了,新建个话题再行对话。 |
If it is a stuttering during chatting, you can check if there are too many messages on the current topic, create a new topic before having a conversation. |
@sscc9 能否具体说明下哪里比较卡? |
@sscc9 Can you specify which comparison card is? |
发送按钮经常在AI回复结束了,无法及时更新状态,一直处于"停止"或者不可点击状态。需要等很久才能恢复到“发送”状态 |
The send button often ends when the AI reply is replies, and the status cannot be updated in time, and it is always in a "stop" or unclickable state. It takes a long time to restore to the "send" state |
@18651619390 这个大概是数据库交互比较慢,或者加上在总结历史消息等操作。 |
@18651619390 This is probably because the database interaction is slow, or if you are summarizing historical messages, etc. |
那也太慢了,十分影响体验。我数据库还是本地的数据库呢。总结的话不应该是后台自行总结吗? |
That's too slow and it affects the experience very much. My database is still a local database. Shouldn’t the summary be summarized by the backend? |
我也感觉卡卡的,而且选中本地ollama跑的deepseek,回答完之后干嘛又要调一下deepseek官方的key问个问题,然后导致页面一直卡到那里,之前反馈性能问题,被告知因为数据库有损耗,在我看来并不是这样的 |
I also feel it was stuck, and I selected the deepseek running local ollama. After answering, why do I need to adjust the official key of deepseek to ask a question, and then the page kept stuck there. I reported performance issues before and was told that because the database was losing, it was not like this in my opinion. |
这个就可能是 历史消息自动总结 的问题,我以前也受此困扰,可以在会话设置里关闭试试。 |
This may be a problem of automatic summary of historical messages. I have been troubled by this before, so I can try to turn it off in the session settings. |
并且我为了刷新这个按钮的状态,新建一个话题,还是一直处于"停止"或者不可点击状态 |
And in order to refresh the status of this button, I created a new topic, but it was still in a "stop" or unclickable state. |
@18651619390 @minemine-m 这里有个 trade off 要看下的: 如果自动总结不阻塞发送消息,那么有可能会出现没有总结完,带的是老的历史总结消息的情况,进而可能会导致效果上受影响。 目前我的做法是为了保证历史总结消息是最新的,然后这样最新的历史记录总结 + 最近的 N 条消息,构成最完整的上下文。 |
@18651619390 @minemine-m Here is a trade off to see: If the automatic summary does not block the sending of the message, there may be a situation where the summary is not completed and the old historical summary message is brought, which may in turn affect the effect. My current approach is to ensure that the historical summary messages are up to date, and then the latest historical summary + the recent N messages form the most complete context. |
我把自动总结关了,这个又是啥,这个能关吗 |
I've closed the automatic summary, what is this? Can this be closed? |
这个东西也会阻塞会话 |
This thing will block the conversation. |
@minemine-m 这个是 query rewrite,你是有用知识库对话吧? |
@minemine-m This is query rewrite. Are you useful knowledge base conversations? |
有用,这个不能关吗,我发现他是给我的问题又总结了下,但我不想让他总结 |
It's useful, can't this be closed? I found that he gave me a summary of the question, but I don't want him to summarize it |
@minemine-m 可以的,也是 system agent 那边可以关闭。但有总结的话往往能提升知识库检索的效果 |
@minemine-m Yes, it can be closed on the system agent. But if you have a summary, you can often improve the effectiveness of knowledge base search |
好的谢谢 |
OK, thanks |
关掉历史会话总结和知识库检索的总结之后,快多了,但是首次使用话题还是会调用一次会话总结,估计这个是没法改的 |
After turning off the historical session summary and knowledge base search summary, it is much faster, but the conversation summary will still be called once for the first time when using the topic. I guess this cannot be changed. |
这个是在创建话题 topic。V2 会准备把创建 topic 和创建一个消息合成一次请求,这样会减少一轮开销。 话题 title 用 ai 生成这个目前不计划加开关。我感觉大家是没有命名习惯的,还是自动总结一次比较好 |
This is creating topic topic. V2 will prepare to synthesize the creation topic and create a message into a request, which will reduce a round of overhead. Topic Generation is currently not planned to add switches. I think everyone has no naming habits, so it is better to summarize it automatically once |
应该是 antd 的 Typography 组件的问题,会带来巨量的 rerender。这个后续我优化下吧 |
It should be a problem with the Typography component of antd, which will bring a huge amount of renderers. I'll optimize this later |
我虽然没用过react只用过用过Compose Multiplatform,但关于组件优化的建议是检查有没有不必要的rerender,可能是state过大需要derived state,也有可能是放入了不必要的参数导致rerender,也可以把UI函数分成几个小块的UI函数单独渲染 |
Although I have never used react and only used Compose Multiplatform, the suggestion for component optimization is to check whether there are unnecessary rerenders. It may be that the state is too large and requires derived state, or it may be that unnecessary parameters are placed to cause rerender, and the UI function can be divided into several small pieces of UI functions to render separately. |
@CXwudi 正解,其实我们日常都是这么写的。只是 antd 的组件会有一些问题导致卡顿,这个我们暂时真没啥辙,期待V6 的发布能显著提升一波性能吧 |
@CXwudi The correct explanation, in fact, this is what we write in daily life. It's just that there will be some problems with antd components, which will cause lag. We really have nothing to do with this for the time being. We look forward to the release of V6 to significantly improve the performance. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
🥰 需求描述
希望能像nextchat一样丝滑流畅。
🧐 解决方案
lobechat一直卡卡的,是技术原因吗?
📝 补充信息
No response
The text was updated successfully, but these errors were encountered: