mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-24 08:56:21 -05:00
[PR #16523] [MERGED] perf: disable collection retrieval and bm_25 calculation if bm_25 weight is 0 #24161
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/16523
Author: @expruc
Created: 8/12/2025
Status: ✅ Merged
Merged: 8/12/2025
Merged by: @tjbck
Base:
dev← Head:perf/hybrid_search_bm_25📝 Commits (1)
74b1c80disable collection retrieval and bm_25 calculation if bm_25 weight is 0 or less📊 Changes
1 file changed (+24 additions, -18 deletions)
View changed files
📝
backend/open_webui/retrieval/utils.py(+24 -18)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
This PR improves hybrid search speed if bm_25 weight is 0 (or less) by disabling collection retrieval and bm_25 ranking.
Changed
query_doc_with_hybrid_searchfunction since they aren't used.Additional Information
Contributor 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.