mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[GH-ISSUE #18096] issue: ValueError crash in hybrid search when reranking filters out all results #73093
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?
Originally created by @hazemawadalla on GitHub (Oct 7, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18096
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
0.6.32
Ollama Version (if applicable)
No response
Operating System
Ubuntu 24.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When no results meet the relevance threshold, the system should return an empty result set gracefully without crashing.
Actual Behavior
When no results meet the relevance threshold, the system should return an empty result set gracefully without crashing.
The system crashes with the following error:
Steps to Reproduce
Error Trace
Logs & Screenshots
Error Trace
Additional Information
Root Cause
In
backend/open_webui/retrieval/utils.py, when the reranking process filters out all results (because none meet ther_scorethreshold), thesorted_itemslist becomes empty. The code then attempts to unpack this empty list into three variables, causing the crash:Impact
Environment
Suggested Fix
Add a safety check before unpacking to handle empty results:
@hazemawadalla commented on GitHub (Oct 7, 2025):
https://github.com/open-webui/open-webui/pull/18095#issue-3490003168
@tjbck commented on GitHub (Oct 7, 2025):
Addressed in dev.