mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #9995] web search using searxng: No search query generated #15725
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 @water2004 on GitHub (Feb 14, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/9995
Bug Report
Installation Method
I install open-webui using docker without ollama
And then install searxng using docker compose,
docker-compose.ymlis shown as belowsettings.ymladmin panel settings:
Environment
Open WebUI Version: latest
Ollama (if applicable): not installed
Operating System: host: ubuntu22.04
Browser (if applicable): latest edge on Windows10
Confirmation:
Behavior:
Firstly, it comes out "Error searching "
the logs show that the query string is empty
log of searxng:
after several tries, it comes out "No search query generated", and there are no logs from open-webui or searxng
@water2004 commented on GitHub (Feb 14, 2025):
searxng works well, I can get the result json file by browser
url:
***:8080/search?q=weather&format=json@Mavyre commented on GitHub (Feb 14, 2025):
This happens when the reponse generated by the LLM isn't correctly formatted as required by the web search (should be an array of queries). This error depends on the model used and its ability to respect its system prompt.
@technofox01 commented on GitHub (Feb 14, 2025):
I am having this exact issue and continue to get this error message (even though it will show that it received three search results):
SyntaxError: The string did not match the expected pattern.
I had no issues until after 5.9. I have no idea what go broken but it is definitely on OpenWebUI’s side and not Searxng because I have tested the API outside of OpenWebUI without issue.
@IndigoFloyd commented on GitHub (Feb 14, 2025):
Also here. However, I could not confirm whether SearXNG or Open WebUI goes wrong. If I run
http://searxng:8080/search?q=hello&format=json, it returns:It's weird because there are exactly some results while
number_of_resultsis0. But it seems not to be a fatal bug as https://github.com/searxng/searxng/issues/2457 just discussed.My Open WebUI and SearXNG docker instances run on WSL2. Expecting for any helpful fixes or anwsers.