mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-10 23:55:15 -05:00
[GH-ISSUE #22624] issue: -Tools- Knowledgebase search uses up all context #123079
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 @frenzybiscuit on GitHub (Mar 12, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22624
Check Existing Issues
Installation Method
Docker
Open WebUI Version
Latest docker cuda image (0.8.10)
Ollama Version (if applicable)
N/A
Operating System
Linux with Docker
Browser (if applicable)
Firefox
Confirmation
README.md.Expected Behavior
When it finds the relevant knowledgebase it should use just that one
Actual Behavior
It's not doing that. Instead, tools knowledgebase search (regular knowledgebase search is fine) runs out of context.
See attached images.
Steps to Reproduce
Create several knowledgebases with large files.
When using tool search (not manually specifying the knowledgebase) watch as it runs itself out of context by searching through the knowledgebase.
Logs & Screenshots
Additional Information
No response
@frenzybiscuit commented on GitHub (Mar 12, 2026):
I renamed lore.txt to Stargate Lore.txt and it seems to have fixed the issue.. although, I don't really understand why this would matter, since the lore.txt is within a knowledgebase called stargate?
@Classic298 commented on GitHub (Mar 12, 2026):
no image attached (?)
If you mean search_ ... tool calls and view_knowledge_file for example, then you need to tell your model to avoid these tools (or only "query" the knowledge base, is sufficient as a prompt) as to avoid out of context errors.
Not really an open webui issue. Tools work as intended. Files are too large/model shouldn't use these tools in that case