mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 07:43:10 -05:00
feat: Why are files uploaded to Knowledge Base processed one by one, even during bulk uploads? #5958
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wolfplay2K19 on GitHub (Aug 4, 2025).
Check Existing Issues
Problem Description
I’m currently uploading a large number of documents into the Knowledge Base using a local embedding model. However, I noticed that even when I upload multiple files at once, they are still processed sequentially — one file at a time — which results in a very slow overall import time.
Could you please clarify:
Any insights or recommendations for optimizing this workflow would be greatly appreciated.
Desired Solution you'd like
Ideally, I would like the Knowledge Base to support true parallel processing of multiple files during upload — especially when using a local embedding model. This could mean:
Allowing multiple documents to be embedded concurrently;
Increasing throughput by batching chunks across files instead of per file;
Providing configuration options (e.g., concurrency limits, batch size) to control parallelism;
Or even a background queue system that handles embedding jobs in parallel threads or workers.
This would significantly reduce total upload time and make bulk document ingestion more scalable.
Alternatives Considered
No response
Additional Context
No response
@tjbck commented on GitHub (Aug 4, 2025):
#15023