mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #13198] issue: RAG not working with Hybrid Search (Reranking sometimes returns empty results) #55507
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 @MikeNatC on GitHub (Apr 24, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13198
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.5
Ollama Version (if applicable)
0.6.6
Operating System
Unraid 7.0.1
Browser (if applicable)
Chrome 135.0.7049.115
Confirmation
README.md.Expected Behavior
When a document from the knowledge base is loaded in a chat, I expect the response to the chat to consider and be aware of the document as part of context.
Actual Behavior
Response from LLM is that there is no context provided when I use a prompt like "What is the context about?"
However, if I follow up with a second prompt that has something relating to the context, it suddenly recognises the existence of the context.
Steps to Reproduce
Logs & Screenshots
Screenshot of the Chat
Screenshot of Settings
Screenshots of Document Settings
Open WebUI Docker Logs
Ollama Docker Logs
Left out browser console logs as they did not appear relevant - no error messages.
Additional Information
No response
@FooleanBool commented on GitHub (Apr 24, 2025):
Works for me.
Docling extraction.
Veritas prompt.
Model:Llama-3.1-8B-UltraLong-1M-Instruct.Q8_0:latest
@FooleanBool commented on GitHub (Apr 24, 2025):
When added to a purpose made knowledge base.
@MikeNatC commented on GitHub (Apr 24, 2025):
I noticed that in my docker logs, when I restart Open WebUI, I get this warning message which I think refers to the documents in my Knowledge Base. It seems to suggest that the 11 files in my knowledge base were processed instantaneously
[00:00<00:00, 136906.07it/s]without properly having been chunked.@MikeNatC commented on GitHub (Apr 24, 2025):
I think I figured out the issue - my reranking model was not working and would sometime just not generate any text. Once I changed the reranking model, this issue went away. I think the model must have gotten corrupted somehow.
I was wondering if anyone can tell me how to delete and reformat the reranking model? I understand it is in the sqLite database but is there a way to access that with adminer?
@MikeNatC commented on GitHub (Apr 25, 2025):
Nope the issue came back. It is back to showing no context.
This is after I managed to get it to work again yesterday after changing the embedding and reranking model.
For context, when I switched off
hybrid searchthe problem went away.