mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-22 11:44:11 -05:00
[GH-ISSUE #21120] issue: Built in Tools ignore Model configuration and access ALL Knowledge Bases #34917
Reference in New Issue
Block a user
Originally created by @Blenderpics on GitHub (Feb 3, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21120
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.7.2 (digest: sha256:000b87a6ae726aa7f6611a0064ba528ba1a6aff6ead5fb3b6c89fd4a5717eb8a)
Ollama Version (if applicable)
No response
Operating System
Ubuntu 24.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Models respect their assigned Knowledgebases, even if Tool Calling = native and Built in Tools = true.
Only Knowledgebases that are assigned to the model can be queried by the build in tools.
Actual Behavior
The Model ignores its configuration and searches every Knowledge Base reachable by the user account, returning data it should not have access to.
Steps to Reproduce
search_knowledge_files) and correctly returns "123", proving it accessed "KB_Restricted" despite it not being configured for this Agent.Logs & Screenshots
When "Built-in Tools" is activated for a model, the model gains the ability to query Knowledge Bases. However, the scope of this query is incorrectly set to ALL Knowledge Bases the current user has access to, completely ignoring the specific Knowledge Bases configured (attached) to that model.
We have several models. Some use public hosted LLMs, some use self hosted LLMs.
The public LLMs must not have access to internal company data.
Therefore only the self hosted models use knowledge bases that contain sensitive data.
Due to this bug, even the public models gained access to the knowledge bases they where not supposed to.
This is quite a big deal!
Additional Information
No response
@owui-terminator[bot] commented on GitHub (Feb 3, 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:
#20703 issue: Some Knowledge Bases dont work(?)
by Nels2 • Jan 15, 2026 •
bug#20568 issue: Custom model did not configure Knowledge but still defaults to calling function
by ChGoh7 • Jan 11, 2026 •
bug#20851 issue: view_knowledge_file builtin tool not injected in Native mode (Builtin Tools enabled)
by jaza089 • Jan 21, 2026 •
bug#20676 issue: Cloud models fail to use native tools
by 0x7CFE • Jan 15, 2026 •
bug#20549 issue: Native tools are injected when models are used over the openwebui API.
by LysanderdeJong • Jan 10, 2026 •
bugShow 2 more related issues
#17514 issue: Workspace Models: Knowledge being ignored when created in older Open WebUI version
by lindner-tj • Sep 17, 2025 •
bug#20641 issue: Web Search and Builtin Tools permissions break search
by HenkieTenkie62 • Jan 13, 2026 •
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 (Feb 3, 2026):
Why is this expected?
Even if i assign a knowledge base to a model, i can always attach additional knowledge bases to that model using the button in the chat interface.
As intended - that's what it's supposed to do.
Not a bug.