[GH-ISSUE #18583] feat: Option to set "Full context mode" for file upload and knowledge retrieval individually. #34171

Closed
opened 2026-04-25 08:05:13 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @deliciousbob on GitHub (Oct 24, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18583

Check Existing Issues

  • I have searched all existing open AND closed issues and discussions for similar requests. I have found none that is comparable to my request.

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:

  • Settings -> Documents -> "enable full context mode" -> enable Option
    - 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.
Image

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

Originally created by @deliciousbob on GitHub (Oct 24, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/18583 ### Check Existing Issues - [x] I have searched all existing open AND closed issues and discussions for similar requests. I have found none that is comparable to my request. ### 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: - **Settings -> Documents -> "enable full context mode"** -> enable Option - **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. <img width="1123" height="286" alt="Image" src="https://github.com/user-attachments/assets/2e266351-746e-492f-9a8e-a92f5091f83a" /> 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_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#34171