mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-11 10:34:13 -05:00
[PR #17617] [CLOSED] FIX: hybrid_search-instances_checker #24491
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/17617
Author: @rgaricano
Created: 9/20/2025
Status: ❌ Closed
Base:
dev← Head:dev-FIX_hybrid_search-instances_checker📝 Commits (1)
bf2e25fFIX: hibryd_search-instances_checker📊 Changes
1 file changed (+10 additions, -2 deletions)
View changed files
📝
backend/open_webui/retrieval/utils.py(+10 -2)📄 Description
FIX: hybrid_search-fails due to inconsistence in parameters type received in some circunstances.
In some circunstances hybrid search fail, as it's exposed in issue https://github.com/open-webui/open-webui/issues/17046
query_doc_with_hybrid_search function expects collection_result to be an object with a documents attribute, but it's receiving a list or None instead (e.g. qdrant return None if collections don't exist, which could cause the issue)
when query is as list (e.g. query_doc_with_hybrid_search function called for queries)
This PR add a couple of checkers for that.
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.