mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #18583] feat: Option to set "Full context mode" for file upload and knowledge retrieval individually. #18642
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 @deliciousbob on GitHub (Oct 24, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18583
Check Existing Issues
Problem Description
Focus Retrieval mode does not work well on uploaded documents, we noticed that switching to full context / full document mode at the uploaded document fixed that issue and requests give good answers.
As discussed in the Issue https://github.com/open-webui/open-webui/issues/18581 the Option would be to enable full context mode:
- this is then also disabling RAG + Hybrid Search (reranking)
If you upload a single document in the chat, it still showes that focused retrieval mode is active (maybe a bug)
It does the "Retrieval Query Generation" still, but actually it pass the full document context to the LLM.
Just checked the LiteLLM Logs. Showed me 65K tokens on the request. That is what we want, nice!
BUT..... for Knowledge Collection this is causing a retrieval of ALL Documents from the Collection.

This is somehow expected as the RAG + Hybrid Search is disabled too.
So the "enable full context mode" does actually work for Document upload (only shows wrong if you click onto the file)
But i cannot activate it, as it would cause RAG for Knowledge Collections to not work anymore.
Desired Solution you'd like
So, having an option to set that individually for file uploads and knowledge collections would be a feature i would desire a lot.
Thx, best regards, Robert
Alternatives Considered
We could also discuss if disabling RAG on Knowledge Collections makes sense at all (maybe made sense some early versions) ?
Cannot imagine using Knowledge collections with passing all documents to the LLM makes any sense to anyone.
So maybe it would be wise to rename the Option from "full context mode" to "full context mode for uploaded files" and only apply that to the file upload retrieval without touching the RAG + Hybrid Search Options for Knowledge Collections.
Additional Context
No response