mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #19296] [MERGED] perf: 50x performance improvement for external embeddings #40798
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/19296
Author: @Classic298
Created: 11/19/2025
Status: ✅ Merged
Merged: 11/23/2025
Merged by: @tjbck
Base:
dev← Head:embedding-perf📝 Commits (3)
00ef239Update utils.py (#77)6e13c66refactor: address code review feedback for embedding performance improvements (#92)cf85becfix: prevent sentence transformers from blocking async event loop (#95)📊 Changes
4 files changed (+289 additions, -118 deletions)
View changed files
📝
backend/open_webui/retrieval/utils.py(+224 -62)📝
backend/open_webui/routers/memories.py(+24 -12)📝
backend/open_webui/routers/retrieval.py(+15 -13)📝
backend/open_webui/utils/middleware.py(+26 -31)📄 Description
devbranch. Not targeting thedevbranch will lead to immediate closure of the PR.Changelog Entry
Description
Before:
batch_size=1: 6000 sequential HTTP requests (!!!)After:
asyncio.gather()batch_size=1: All 6000 requests execute in parallelContributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.