mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[GH-ISSUE #20971] issue: File Context new feature is not using RAG but injecting all or partial knowledge when native tool calling is disable #106344
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 @jeancamlap on GitHub (Jan 27, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20971
Check Existing Issues
Installation Method
Docker
Open WebUI Version
7.0.2
Ollama Version (if applicable)
No response
Operating System
ubuntu
Browser (if applicable)
No response
Confirmation
README.md.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 =>
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 :
Steps to Reproduce
Enable native tool calling

Use gpt oss from ollama
Disable built-in tools and enable File Context
Logs & Screenshots
Additional Information
No response
@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:
#20558 issue: RAG Knowledge file when modify/update, older data is available
by n4gY1 • Jan 10, 2026 •
bug#20851 issue: view_knowledge_file builtin tool not injected in Native mode (Builtin Tools enabled)
by jaza089 • Jan 21, 2026 •
bug#20661 issue: RAG threshold and chat file include bug
by n4gY1 • Jan 14, 2026 •
bug#20549 issue: Native tools are injected when models are used over the openwebui API.
by LysanderdeJong • Jan 10, 2026 •
bug#17733 issue: RAG queries still generated even if all files are in full context mode
by Classic298 • Sep 25, 2025 •
bugShow 2 more related issues
#20033 issue: RAG not working when file uploaded through chat
by abhishek-paradkar-sndk • Dec 18, 2025 •
bug#19281 issue: RAG Template applied with "Bypass Embedding and Retrieval" enabled
by lucyknada • Nov 19, 2025 •
bug💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
@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