[GH-ISSUE #20971] issue: File Context new feature is not using RAG but injecting all or partial knowledge when native tool calling is disable #58015

Closed
opened 2026-05-05 22:10:40 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @jeancamlap on GitHub (Jan 27, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20971

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

7.0.2

Ollama Version (if applicable)

No response

Operating System

ubuntu

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

Before moving to 7.X version of open web ui
I had agents with with native tool and functions that use knowledge that was in my rag.
I expect to have the option to still have the rag search and native tool calling at the same time like it was before. Without calling any tool to retrieve data from the rag like it was like this =>
Image

Actual Behavior

File Context new feature is not using RAG but injecting all or partial knowledge when native tool calling is disable

When I am using gpt-oss:20b and 120b from my ollama.
Before moving to 7.X version of open web ui
The rag was working well and function calling native at the same time.
Now I updated and when I am in this configuration :

Image And activate native tool calling that I have no longer this RAG search running : Image

Steps to Reproduce

Enable native tool calling
Use gpt oss from ollama
Disable built-in tools and enable File Context
Image

Logs & Screenshots

Image Image

Additional Information

No response

Originally created by @jeancamlap on GitHub (Jan 27, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/20971 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version 7.0.2 ### Ollama Version (if applicable) _No response_ ### Operating System ubuntu ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior Before moving to 7.X version of open web ui I had agents with with native tool and functions that use knowledge that was in my rag. I expect to have the option to still have the rag search and native tool calling at the same time like it was before. Without calling any tool to retrieve data from the rag like it was like this => <img width="706" height="65" alt="Image" src="https://github.com/user-attachments/assets/4d9ff4e6-71c8-403e-8fa0-5d97a5cd49e5" /> ### Actual Behavior File Context new feature is not using RAG but injecting all or partial knowledge when native tool calling is disable When I am using gpt-oss:20b and 120b from my ollama. Before moving to 7.X version of open web ui The rag was working well and function calling native at the same time. Now I updated and when I am in this configuration : <img width="1398" height="72" alt="Image" src="https://github.com/user-attachments/assets/fc5896c5-d110-4326-bdf5-30569c8f90ba" /> And activate native tool calling that I have no longer this RAG search running : <img width="706" height="65" alt="Image" src="https://github.com/user-attachments/assets/4d9ff4e6-71c8-403e-8fa0-5d97a5cd49e5" /> ### Steps to Reproduce Enable native tool calling Use gpt oss from ollama Disable built-in tools and enable File Context <img width="1398" height="72" alt="Image" src="https://github.com/user-attachments/assets/fc5896c5-d110-4326-bdf5-30569c8f90ba" /> ### Logs & Screenshots <img width="1398" height="72" alt="Image" src="https://github.com/user-attachments/assets/fc5896c5-d110-4326-bdf5-30569c8f90ba" /> <img width="706" height="65" alt="Image" src="https://github.com/user-attachments/assets/4d9ff4e6-71c8-403e-8fa0-5d97a5cd49e5" /> ### Additional Information _No response_
GiteaMirror added the bug label 2026-05-05 22:10:40 -05:00
Author
Owner

@owui-terminator[bot] commented on GitHub (Jan 27, 2026):

🔍 Similar Issues Found

I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:

  1. #20558 issue: RAG Knowledge file when modify/update, older data is available
    by n4gY1 • Jan 10, 2026 • bug

  2. #20851 issue: view_knowledge_file builtin tool not injected in Native mode (Builtin Tools enabled)
    by jaza089 • Jan 21, 2026 • bug

  3. #20661 issue: RAG threshold and chat file include bug
    by n4gY1 • Jan 14, 2026 • bug

  4. #20549 issue: Native tools are injected when models are used over the openwebui API.
    by LysanderdeJong • Jan 10, 2026 • bug

  5. #17733 issue: RAG queries still generated even if all files are in full context mode
    by Classic298 • Sep 25, 2025 • bug

Show 2 more related issues
  1. #20033 issue: RAG not working when file uploaded through chat
    by abhishek-paradkar-sndk • Dec 18, 2025 • bug

  2. #19281 issue: RAG Template applied with "Bypass Embedding and Retrieval" enabled
    by lucyknada • Nov 19, 2025 • bug


💡 Tips:

  • If this is a duplicate, please consider closing this issue and adding any additional details to the existing one
  • If you found a solution in any of these issues, please share it here to help others

This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.

<!-- gh-comment-id:3806372106 --> @owui-terminator[bot] commented on GitHub (Jan 27, 2026): 🔍 **Similar Issues Found** I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions: 1. [#20558](https://github.com/open-webui/open-webui/issues/20558) **issue: RAG Knowledge file when modify/update, older data is available** *by n4gY1 • Jan 10, 2026 • `bug`* 2. [#20851](https://github.com/open-webui/open-webui/issues/20851) **issue: view_knowledge_file builtin tool not injected in Native mode (Builtin Tools enabled)** *by jaza089 • Jan 21, 2026 • `bug`* 3. [#20661](https://github.com/open-webui/open-webui/issues/20661) **issue: RAG threshold and chat file include bug** *by n4gY1 • Jan 14, 2026 • `bug`* 4. [#20549](https://github.com/open-webui/open-webui/issues/20549) **issue: Native tools are injected when models are used over the openwebui API.** *by LysanderdeJong • Jan 10, 2026 • `bug`* 5. [#17733](https://github.com/open-webui/open-webui/issues/17733) **issue: RAG queries still generated even if all files are in full context mode** *by Classic298 • Sep 25, 2025 • `bug`* <details> <summary>Show 2 more related issues</summary> 6. [#20033](https://github.com/open-webui/open-webui/issues/20033) **issue: RAG not working when file uploaded through chat** *by abhishek-paradkar-sndk • Dec 18, 2025 • `bug`* 7. [#19281](https://github.com/open-webui/open-webui/issues/19281) **issue: RAG Template applied with "Bypass Embedding and Retrieval" enabled** *by lucyknada • Nov 19, 2025 • `bug`* </details> --- 💡 **Tips:** - If this is a duplicate, please consider closing this issue and adding any additional details to the existing one - If you found a solution in any of these issues, please share it here to help others *This comment was generated automatically by a bot.* Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
Author
Owner

@Classic298 commented on GitHub (Jan 27, 2026):

I am not sure what the issue is, you will need to word it a bit better so I can understand what you are trying to say is the issue

but when file context is turned on, files are processed the exact same way as they have always been - through RAG. More here: https://docs.openwebui.com/features/rag/#file-context-capability

<!-- gh-comment-id:3806386502 --> @Classic298 commented on GitHub (Jan 27, 2026): I am not sure what the issue is, you will need to word it a bit better so I can understand what you are trying to say is the issue but when file context is turned on, files are processed the exact same way as they have always been - through RAG. More here: https://docs.openwebui.com/features/rag/#file-context-capability
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#58015