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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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:
dev← Head:query-embedding-perf-fix📝 Commits (1)
6bff5a4fix: 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
embedding_functionto be called every single time when thequery_docfor loop is executed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.