Skip to content

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

Closed
sscc9 opened this issue Mar 26, 2025 · 47 comments
Closed
Labels
🌠 Feature Request New feature or request | 特性与建议

Comments

@sscc9
Copy link

sscc9 commented Mar 26, 2025

🥰 需求描述

希望能像nextchat一样丝滑流畅。

🧐 解决方案

lobechat一直卡卡的,是技术原因吗?

📝 补充信息

No response

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


🥰 Requirement description

Hope it's as smooth as nextchat.

🧐 Solution

Is it technical reason that lobechat has been stuck all the time?

📝 Supplementary information

No response

@lobehubbot
Copy link
Member

👀 @sscc9

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@dosubot dosubot bot added the 🌠 Feature Request New feature or request | 特性与建议 label Mar 26, 2025
@sxjeru
Copy link
Contributor

sxjeru commented Mar 26, 2025

如果是聊天的时候卡顿,可以检查当前话题是不是消息堆太多了,新建个话题再行对话。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


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.

@arvinxx
Copy link
Contributor

arvinxx commented Mar 26, 2025

@sscc9 能否具体说明下哪里比较卡?

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@sscc9 Can you specify which comparison card is?

@18651619390
Copy link

@sscc9 能否具体说明下哪里比较卡?

发送按钮经常在AI回复结束了,无法及时更新状态,一直处于"停止"或者不可点击状态。需要等很久才能恢复到“发送”状态

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@sscc9 Can you specify which comparison card?

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

@sxjeru
Copy link
Contributor

sxjeru commented Mar 26, 2025

@18651619390 这个大概是数据库交互比较慢,或者加上在总结历史消息等操作。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@18651619390 This is probably because the database interaction is slow, or if you are summarizing historical messages, etc.

@18651619390
Copy link

@18651619390 这个大概是数据库交互比较慢,或者加上在总结历史消息等操作。

那也太慢了,十分影响体验。我数据库还是本地的数据库呢。总结的话不应该是后台自行总结吗?

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@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?

@minemine-m
Copy link

我也感觉卡卡的,而且选中本地ollama跑的deepseek,回答完之后干嘛又要调一下deepseek官方的key问个问题,然后导致页面一直卡到那里,之前反馈性能问题,被告知因为数据库有损耗,在我看来并不是这样的

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


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.

@sxjeru
Copy link
Contributor

sxjeru commented Mar 26, 2025

回答完之后干嘛又要调一下deepseek官方的key问个问题

这个就可能是 历史消息自动总结 的问题,我以前也受此困扰,可以在会话设置里关闭试试。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


After answering, why do you need to adjust the official key of deepseek to ask a question

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.

@minemine-m
Copy link

@sscc9 能否具体说明下哪里比较卡?

发送按钮经常在AI回复结束了,无法及时更新状态,一直处于"停止"或者不可点击状态。需要等很久才能恢复到“发送”状态

并且我为了刷新这个按钮的状态,新建一个话题,还是一直处于"停止"或者不可点击状态

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@sscc9 Can you specify which comparison card?

The send button often ends when the AI ​​reply is over, 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

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.

@minemine-m
Copy link

一直反复发请求,真的很奇怪,上个响应完了(非得调r1问一次),得等下一个响应(v3这个是我选的模型),然后速度都损耗在这里了

Image

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


It's really strange that the previous response was finished (I have to call r1 once), I have to wait for the next response (v3 is the model I chose), and then the speed is lost here

Image

@minemine-m
Copy link

Image

@arvinxx
Copy link
Contributor

arvinxx commented Mar 26, 2025

@18651619390 @minemine-m 这里有个 trade off 要看下的:

如果自动总结不阻塞发送消息,那么有可能会出现没有总结完,带的是老的历史总结消息的情况,进而可能会导致效果上受影响。

目前我的做法是为了保证历史总结消息是最新的,然后这样最新的历史记录总结 + 最近的 N 条消息,构成最完整的上下文。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


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

@minemine-m
Copy link

@18651619390 @minemine-m 这里有个 trade off 要看下的:

如果自动总结不阻塞发送消息,那么有可能会出现没有总结完,带的是老的历史总结消息的情况,进而可能会导致效果上受影响。

目前我的做法是为了保证历史总结消息是最新的,然后这样最新的历史记录总结 + 最近的 N 条消息,构成最完整的上下文。

我把自动总结关了,这个又是啥,这个能关吗

Image

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@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 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?

Image

@minemine-m
Copy link

@18651619390 @minemine-m 这里有个 trade off 要看下的:
如果自动总结不阻塞发送消息,那么有可能会出现没有总结完,带的是老的历史总结消息的情况,进而可能会导致效果上受影响。
目前我的做法是为了保证历史总结消息是最新的,然后这样最新的历史记录总结 + 最近的 N 条消息,构成最完整的上下文。

我把自动总结关了,这个又是啥,这个能关吗

Image

这个东西也会阻塞会话

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@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 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 most recent N messages form the most complete context.

I've closed the automatic summary, what is this? Can this be closed?

Image

This thing will block the conversation.

@arvinxx
Copy link
Contributor

arvinxx commented Mar 26, 2025

@minemine-m 这个是 query rewrite,你是有用知识库对话吧?

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@minemine-m This is query rewrite. Are you useful knowledge base conversations?

@minemine-m
Copy link

@minemine-m 这个是 query rewrite,你是有用知识库对话吧?

有用,这个不能关吗,我发现他是给我的问题又总结了下,但我不想让他总结

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@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

@arvinxx
Copy link
Contributor

arvinxx commented Mar 26, 2025

@minemine-m 可以的,也是 system agent 那边可以关闭。但有总结的话往往能提升知识库检索的效果

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@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

@minemine-m
Copy link

@minemine-m 可以的,也是 system agent 那边可以关闭。但有总结的话往往能提升知识库检索的效果

好的谢谢

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@minemine-m Yes, it is also possible to close the system agent there. But if you have a summary, you can often improve the effectiveness of knowledge base search

OK, thanks

@minemine-m
Copy link

关掉历史会话总结和知识库检索的总结之后,快多了,但是首次使用话题还是会调用一次会话总结,估计这个是没法改的

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


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.

@arvinxx
Copy link
Contributor

arvinxx commented Mar 26, 2025

但是首次使用话题还是会调用一次会话总结,估计这个是没法改的

这个是在创建话题 topic。V2 会准备把创建 topic 和创建一个消息合成一次请求,这样会减少一轮开销。

话题 title 用 ai 生成这个目前不计划加开关。我感觉大家是没有命名习惯的,还是自动总结一次比较好

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


However, the session summary will be called for the first time when using the topic. I guess this cannot be changed.

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

@ChenLuoi
Copy link

Image

右侧话题列表滚动性能非常低下,这个虚拟列表有很大问题

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Image

The scrolling performance of the topic list on the right is very low, and there are big problems with this virtual list

@arvinxx
Copy link
Contributor

arvinxx commented Mar 26, 2025

右侧话题列表滚动性能非常低下,这个虚拟列表有很大问题

应该是 antd 的 Typography 组件的问题,会带来巨量的 rerender。这个后续我优化下吧

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


The scrolling performance of the topic list on the right is very low, and there are big problems with this virtual list

It should be a problem with the Typography component of antd, which will bring a huge amount of renderers. I'll optimize this later

@CXwudi
Copy link

CXwudi commented Mar 28, 2025

我虽然没用过react只用过用过Compose Multiplatform,但关于组件优化的建议是检查有没有不必要的rerender,可能是state过大需要derived state,也有可能是放入了不必要的参数导致rerender,也可以把UI函数分成几个小块的UI函数单独渲染

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


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.

@arvinxx
Copy link
Contributor

arvinxx commented Mar 29, 2025

@CXwudi 正解,其实我们日常都是这么写的。只是 antd 的组件会有一些问题导致卡顿,这个我们暂时真没啥辙,期待V6 的发布能显著提升一波性能吧

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


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

@lobehub lobehub locked and limited conversation to collaborators Mar 29, 2025
@arvinxx arvinxx converted this issue into discussion #7215 Mar 29, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
🌠 Feature Request New feature or request | 特性与建议
Projects
None yet
Development

No branches or pull requests

8 participants