mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #18431] feat: Option to define default mode for file uploads #18597
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 @Master-Pr0grammer on GitHub (Oct 19, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18431
Check Existing Issues
Problem Description
When uploading files in a chat, all files are first required to be split up and processed for rag before you can do anything, even if you only intend to use them as a full file without using rag at all.
This process can take a while especially for local models because the current LLM needs to be unloaded (deleting prompt cache), then load in the embedding model, process the document, then reload the LLM, and reprocess the entire chat history because the prompt cache has been reset, which can take very long for longer chats.
It is also quite annoying to have to remember to switch it to use the whole file.
Currently, there is no way to have it default to "Using Entire Document" Vs "Using Focused Retrieval" for a regular file upload in the chat UI, without completely disabling RAG for the entire service as a whole by turning on "bypass RAG" in the admin panel. RAG is a very useful feature, but isn't always needed.
Desired Solution you'd like
An option in settings to set the default mode for chat file uploads where you can select it to default to "Using Entire Document" Vs "Using Focused Retrieval".
Alternatives Considered
No response
Additional Context
No response
@silentoplayz commented on GitHub (Oct 20, 2025):
Closing this issue; further discussion can continue on the related request here: https://github.com/open-webui/open-webui/issues/12228
Here's how:
The two posts are about the same underlying pain-point (Open-WebUI always insists on locally parsing / chunking / embedding every file that is dropped into a chat) but they describe two different use-cases and therefore ask for two different knobs.
First post (yours)
– User persona: “I’m a normal chat user, I just want to send the file as-is to the model 90 % of the time and only occasionally use RAG.”
– Requested knob: A per-user default that says “when I drop a file, start in Entire Document mode instead of Focused Retrieval.”
– Scope: UI-only, no server-level change; RAG stays enabled globally.
Second post (https://github.com/open-webui/open-webui/issues/12228)
– User persona: “I’m running a custom pipeline that needs the raw bytes of the uploaded file; I never want Open-WebUI to open, OCR, chunk or embed anything.”
– Requested knob: A server-level switch that completely bypasses the content-extraction pipeline and exposes an URL from which the pipeline can fetch the original file.
– Scope: Admin / back-end; RAG is disabled for the whole instance.
So the root cause (“Open-WebUI always extracts text”) is identical, but the remedies are orthogonal:
In short: same river, two bridges.
Also related - https://github.com/open-webui/open-webui/issues/15964
@sanchitbhavsar commented on GitHub (Oct 24, 2025):
@silentoplayz what is the update here, as when i upload file i need to process them in full context as default. Right now it is only possible when user click on the uploaded file and enable the toggle option for full context but it should achievable through some system settings or configurations.
@silentoplayz commented on GitHub (Oct 24, 2025):
You can also click on an attached knowledgebase collection or a note to a model and toggle on

Using Entire Documentfor selected attached files/documents.A global toggle already exists in the admin settings to toggle

Full Context Modetoo.@sanchitbhavsar commented on GitHub (Oct 24, 2025):
@silentoplayz Thanks for sharing. I am aware of these settings but we do not want to have full content enabled for all. you want your RAG to works as default and do the full context on file uploads. The KB flag is for the files attached to the model but to the files that are dropped in the chat.
@adhusch commented on GitHub (Oct 29, 2025):
@silentoplayz i am quite surprised that this was closed after your nice and detailled analysis. Its pretty clear both bridges are needed and brige one should be the default highway. Why should anyone in 2025 (with the context sizes we have now) want RAG as default on simple document attachement upload? RAG is for cases that overshoot context, but thats not the default anymore, but a tool to deal with very large docs or knowlege bases. A full bypass (2) does btw not fully solve this basic requirement, one wants the document to be converted to markdown and injected to the context, not a binary stream injection.
@adhusch commented on GitHub (Nov 26, 2025):
Hello,
i have a question to the community: How is anyone using openwebui with RAG enabled in production without this feature? For me the only option is to disable RAG globally, as users will absolutly need full-context mode for normal single-file uploads as default. It will otherwise complety break user experience?
Cheers
@wsomm commented on GitHub (Apr 19, 2026):
Continued from discussion #18632.
@Classic298
So we have two situations which lead to problems:
"focused retrieval": Nothing found on small PDF files. User confusion. You tell them to choose "full context".
"full context": Context overflow on a PDF file with 20000 pages. You tell them to choose "focused retrievel".
I my opinion, the users that use small ones, are the less educated.
It is far more easy to tell a user who throws in a bunch of PDFs or large ones, to change the option,
than the occasional user, who just wants translation of a document.
And shouldn't it be the responsibility of the admin, to know its user base and choose what is the best fit?
I would be more than thankful for a global option for this. Patching is an option, but really only the the second best.
@d1ffuser commented on GitHub (Apr 19, 2026):
Completely agree. Users shouldn't have to disable RAG just to have the convenience of uploading docs for queries without clicking through submenus every single time.
Tbh, the analysis is sound. In the long term, the handling of documents in owui has to change. But short term, a user setting to choose a default upload mode is the way to go.