mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #22719] feat: How to make web search trigger autonomously based on model judgment? #19796
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 @4LONpSPlKJit0 on GitHub (Mar 16, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22719
Check Existing Issues
Verify Feature Scope
Problem Description
When web search is enabled as a model Capability, it triggers broadly across most queries — including ones that clearly don't need external information, such as internal document lookups or general knowledge questions. There is currently no way to let the model intelligently decide whether web search is needed based on the query itself.
Environment: Open WebUI 0.7.2
Desired Solution you'd like
Expose web search as a callable Tool (alongside other tools like a knowledge base) so the model can choose whether to invoke it based on query context — similar to how custom Tools work today. This would allow the model to reason:
"This asks about real-time/external info → call web search"
"This asks about internal documents → call knowledge base only"
"This is a general question → answer directly, no tools needed"
Alternatives Considered
Tried adding priority rules to the system prompt and Tool Call Prompt (e.g., "only use web search for external/real-time queries"), but the built-in web search Capability bypasses tool call logic and does not reliably follow prompt instructions.
Additional Context
No response
@jndao commented on GitHub (Mar 16, 2026):
Hey!
I believe this is a feature already available in openwebui
https://docs.openwebui.com/features/extensibility/plugin/tools/#-native-mode-agentic-mode--system-function-calling--recommended
@Classic298 commented on GitHub (Mar 16, 2026):
use native function calling
https://docs.openwebui.com/features/chat-conversations/web-search/agentic-search