mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[GH-ISSUE #17046] issue: Bug: Hybrid Search causes AttributeError and Qdrant timeouts in v0.6.26 #18151
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 @galvanoid on GitHub (Aug 29, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17046
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.26
Ollama Version (if applicable)
0.11.8
Operating System
Ubuntu 24.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When enabling Hybrid Search, queries should return ranked results normally without backend errors.
Actual Behavior
When Reranking is enabled:
Queries intermittently fail with:
AttributeError: 'list' object has no attribute 'documents' (when BM25=0)
If BM25 > 0 queries fail with Qdrant timeouts or 500 Internal Server Error :
qdrant_client.http.exceptions.UnexpectedResponse: Unexpected Response: 500 (Internal Server Error)
Raw response content:
{"status":{"error":"Service internal error: ... Timeout error: Operation 'retrieve' timed out after 6 seconds"}}
I set QDRANT_TIMEOUT = 100, but no luck (in previous versions, set to 50 works ok).
If I disable Reranking, everything works perfectly and documents are retrieved without errors.
Steps to Reproduce
Fresh install of Ubuntu 22.04 server.
Install Docker v24.0.5 and start the service.
Run Open WebUI with (f.e):
docker run -d -p 3000:8080 -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:latest
Connect to Ollama running locally (http://host.docker.internal:11434).
Upload several PDF documents (e.g. Spanish BOE legislation).
Go to Admin → Documents → Retrieval and enable Hybrid Search and Reranking (model: qwen3:1.7b).
Ask a question like:
¿Cuáles son los requisitos para la obtención de los derechos de uso y habitación en España?
Observe backend logs — sometimes AttributeError, sometimes Qdrant timeout.
Disable Reranking → issue disappears.
Logs & Screenshots
AttributeError
if not collection_result.documents[0]:
AttributeError: 'list' object has no attribute 'documents'
Qdrant Timeout
qdrant_client.http.exceptions.UnexpectedResponse: Unexpected Response: 500 (Internal Server Error)
Raw response content:
{"status":{"error":"Service internal error: 1 of 1 read operations failed:\n Timeout error: Operation 'retrieve' ti
Additional Information
Vector DB: Qdrant (latest docker image, default config).
Happens consistently in v0.6.26. In previous versions it worked perfectly.
Might be related to recent Hybrid Search changes (handling empty lists, reranker integration).
@galvanoid commented on GitHub (Aug 29, 2025):
Update:
After more testing on v0.6.26:
The original AttributeError: 'list' object has no attribute 'documents' still occurs when BM25 = 0 (pure).
If I set BM25 > 0 (e.g. 0.5 → balanced lexical + semantic), the error does not appear.
With BM25 > 0 I initially hit Qdrant timeouts, but increasing the Qdrant client timeout (more) solved that issue.
The remaining bug is specific to BM25 = 0: Hybrid Search still crashes with AttributeError.
@rgaricano commented on GitHub (Aug 29, 2025):
Do you have a more extensive log of the error?
Note: Rechecking also I show that the lexical - semantic terms are inverted, 0 have to be semantic and 1 lexical
I made a PR to fix it.
@galvanoid commented on GitHub (Aug 30, 2025):
└ <concurrent.futures.thread._WorkItem object at 0x...>
@apunkt commented on GitHub (Sep 19, 2025):
I experience with BM25 = 0.5 in 0.6.30 ->
'list' object has no attribute 'find'@rgaricano commented on GitHub (Sep 20, 2025):
Submitted a PR for prevent both issues.