mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[GH-ISSUE #17926] issue: Generate query and launch retrieval even with Bypass Embedding and Retrieval enabled #18441
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 @Zijie-wang1125 on GitHub (Sep 30, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17926
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
0.6.31
Ollama Version (if applicable)
No response
Operating System
macOS Sonoma
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When Bypass Embedding and Retrieval is enabled, a query should not be generated, and no indicators or status updates should be displayed in the interface
Actual Behavior
still we are generate qurey and a status of retrival is displayed(even though no retrival is actually processing)
Steps to Reproduce
Logs & Screenshots
Additional Information
No response
@Classic298 commented on GitHub (Sep 30, 2025):
Please update to the latest version, it does not generate RAG queries anymore if indeed all files are in full context mode.
@Zijie-wang1125 commented on GitHub (Oct 1, 2025):
It is true, however, the issue still there. Here are the two cases:
1, If 'Bypass Embedding and Retrieval' is On, supposedly, all file should be in full context mode by default, however i will still have to manually toggle 'Using Focused Retrieval' after uploading every files. Otherwise, it still gonna generate quries.
2, If 'Bypass Embedding and Retrieval' is off, enabling 'Using Focused Retrieval' (the full context mode) should completely bypass RAG for the current file. However, the backend continues to embed the file, leading to a significant increase in upload time and wasted embedding tokens.
@Classic298 commented on GitHub (Oct 1, 2025):
No! Using Focused Retrieval means using RAG.
Turn the file to full context mode.
@Zijie-wang1125 commented on GitHub (Oct 1, 2025):
Thank you for clarifying my misunderstanding regarding 'Using Focused Retrieval.' However, as far as I know, the only way to enable full context mode in Open WebUI is by toggling 'Bypass Embedding and Retrieval' in the admin panel under Settings > Documents. This enables full context mode globally, not just for specific files. If I'm not mistaken, the problem is that even after toggling 'Bypass Embedding and Retrieval,' RAG queries are still being generated. I can disable qurey generation in admin panel as well, but the status of rag will still displayed in the interface.
@rgaricano commented on GitHub (Oct 1, 2025):
Yes, you are right.
That query is generated because is enabled the Retrieval Query Generation, you can disable it in adminSettings/Interface, but it should by "autodisabled" if bypass...
@Zijie-wang1125 commented on GitHub (Oct 1, 2025):
Yes i know that, and in fact, i have disabled that. As you can see from my screen shot, there is no new query generated, but the status of querying is still displayed. And, just as you said, it should be 'autodisabled' for better practice
@Classic298 commented on GitHub (Oct 1, 2025):
you can also upload a file, click on the file, enable full context mode.
good catch that is a separate problem.
The bug fix in 0.6.32 was only for full context mode inside the chat, but not if it is set to full context mode in the admin panel
@rgaricano commented on GitHub (Oct 1, 2025):
No, I can't see it in your screenshots, I'm referering to: