mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 12:58:11 -05:00
[GH-ISSUE #18187] issue: [BUG] Retrieval Error IndexError #18527
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 @Schwenn2002 on GitHub (Oct 9, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18187
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.33
Ollama Version (if applicable)
v0.12.3
Operating System
Ubuntu 24.04
Browser (if applicable)
API or Chrom Or Edge
Confirmation
README.md.Expected Behavior
If I create a collection, questions in the chat should be able to be executed against this collection and valid answers should be made based on the documents.
Actual Behavior
When I create a new collection with files, they are created correctly. When I request a single file from the collection in the chat, I get the correct response. However, as soon as I request the entire collection with hybrid search, I get an IndexError, docker-log:
Calling the API results in a payload error (http code 400).
However, I can query a collection created with an older version.
Steps to Reproduce
Logs & Screenshots
File "/app/backend/open_webui/retrieval/utils.py", line 448, in query_collection_with_hybrid_search
return merge_and_sort_query_results(results, k=k)
│ │ └ 60
│ └ [{'documents': [], 'metadatas': [], 'distances': []}]
└ <function merge_and_sort_query_results at 0x756c08a8e700>
File "/app/backend/open_webui/retrieval/utils.py", line 271, in merge_and_sort_query_results
distances = data["distances"][0]
└ {'documents': [], 'metadatas': [], 'distances': []}
IndexError: list index out of range
Additional Information
No response
@rgaricano commented on GitHub (Oct 9, 2025):
It's addressed in dev
@tjbck commented on GitHub (Oct 9, 2025):
4e763e8aa8