[PR #5829] [MERGED] fix: performance issues on large collections #37388

Closed
opened 2026-04-25 10:53:57 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/5829
Author: @jannikstdl
Created: 9/30/2024
Status: Merged
Merged: 10/4/2024
Merged by: @tjbck

Base: devHead: query-embedding-perf-fix


📝 Commits (1)

  • 6bff5a4 fix: do not embed the query every single time

📊 Changes

1 file changed (+6 additions, -5 deletions)

View changed files

📝 backend/open_webui/apps/retrieval/utils.py (+6 -5)

📄 Description

Pull Request Checklist

  • Fixes embedding_function to be called every single time when the query_doc for loop is executed.
  • Fixes load times in large collection wich causes the retrieval to sometimes take up to minutes

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/5829 **Author:** [@jannikstdl](https://github.com/jannikstdl) **Created:** 9/30/2024 **Status:** ✅ Merged **Merged:** 10/4/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `query-embedding-perf-fix` --- ### 📝 Commits (1) - [`6bff5a4`](https://github.com/open-webui/open-webui/commit/6bff5a4d09db086a0b2e200c73c3f0b52e168ebe) fix: do not embed the query every single time ### 📊 Changes **1 file changed** (+6 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/apps/retrieval/utils.py` (+6 -5) </details> ### 📄 Description # Pull Request Checklist - Fixes `embedding_function `to be called every single time when the `query_doc `for loop is executed. - Fixes load times in large collection wich causes the retrieval to sometimes take up to minutes --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-25 10:53:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#37388