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

feat: Improve file upload for the knowledge base #2544

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

icinggslits
Copy link
Contributor

#2259
#2539

KnowledgeService.ts

现在KnowledgeService内部会管理Loader的使用,目前参数是,处理的文件达到30个,或者负载量(以字节为基准)达到83,886,080(80MB),会限制继续使用Loader

KnowledgeQueue.ts

原先的循环有问题,const state = store.getState()只获取一次,数据不会及时更新;KnowledgeService.ts修改后,不再堵塞进程的情况下, 这个问题才会明显显露。

@kangfenmao
Copy link
Collaborator

将在测试完成后合并

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants