mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-05 16:28:32 -05:00
[GH-ISSUE #22329] issue: Query Generation not functional #123013
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 @lbatalha on GitHub (Mar 6, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22329
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.8.8
Ollama Version (if applicable)
No response
Operating System
Linux
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When the
search_webtool is called, the search query used should be generated by the model defined in Admin Settings -> Interface -> Task ModelActual Behavior
The Task Model is not called to generate the query, even though it is called to generate Titles/Tags/Followups (when enabled)
Steps to Reproduce
Setup:
Docker Compose:
Using
llama-proxy/llama.ccpas the backend model runners, configured in Configured in Admin Settings -> Connections as openapi endpointsModel available in one of the backends chosen as both Local and External Task model:
Retrieval and Web Search Query Generation Enabled in UI (have also tried enabling via env variables), prompts left at default, but have tested with a customized
Query Generation Prompt:Title generation is functioning correctly -> Calls the listed model automatically and returns titles correctly. (Can see activity in llama and a OWUI log
2026-03-06 17:43:04.167 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 192.168.88.13:0 - "POST /api/v1/tasks/title/completions HTTP/1.1" 200)When a model calls the
search_webtool during a chat, the prompt used appears to be generated by the model itself (ie: small dumb models produce terrible queries, and large models produce good complete queries).There is no activity seen on the selected Task Model and nothing in logs that indicates it was ever called.
I have tested with selecting various local models as the task model.
The models are set to
PublicandLocalLogs & Screenshots
Examples:
Additional Information
There are no Web Console logs shown during prompting of the model (the model calls the
search_webtool during this)OWUI Container logs when triggering the question as per screenshots:
(The model search query was "current month" and no request was made to the task model outside of generating a Title)
@Classic298 commented on GitHub (Mar 6, 2026):
"Expected behaviour" here is inaccurate - when native tool calling is used, then the model in the chat calls the tool. By calling the tool, the model in the chat also has to provide the parameters for the tool (incl. the search query)
the task model should not do it in native tool calling mode. the task model is not used for tool calling in native tool calling mode.
@lbatalha commented on GitHub (Mar 6, 2026):
Thank you for the clarification!
I did a lot of searching the docs and old issues/discussions, but it wasn't obvious to me that this was the expected behavior. Maybe adding a notice box to https://docs.openwebui.com/features/chat-conversations/web-search/agentic-search noting this would make it clear that it is intended?
@Classic298 commented on GitHub (Mar 6, 2026):
more information can be found here: https://docs.openwebui.com/features/extensibility/plugin/tools/#tool-calling-modes-default-vs-native