mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
issue: Model does not generate an answer after web search (shows raw <context> instead) #6790
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 @gamersalpha on GitHub (Oct 28, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.34
Ollama Version (if applicable)
0.12.6
Operating System
Debian 13
Browser (if applicable)
brave
Confirmation
README.md.Expected Behavior
The model should generate a normal answer using the retrieved web search context (RAG), for example: summarize the information found about the user question.
After the web search runs, I expect the assistant to reply in natural language.
Actual Behavior
The model does not generate an answer.
Instead, it only outputs the injected RAG context as raw XML-like text, for example:
No final answer is produced.
Steps to Reproduce
I am running Docker containers for:
open-webui (image: ghcr.io/open-webui/open-webui:main)
ollama (accessible at http://ollama:11434)
searxng (accessible at http://searxng:8080)
All services are on the same Docker network.
Environment variables for open-webui include:
In the UI, I select the model gemma3:270m from Ollama.
I ask a question that triggers web search, for example:
"Tell me what you can find about Ariana Grande’s latest album using web search."
Open WebUI successfully performs a web search through SearxNG.
I can see “Sources récupérées: 2”.
The logs show that documents were fetched, embedded, and added to a vector DB.
After that, instead of a summarized answer, the chat response from the model only prints the / / <user_query> block, and stops.
There is no actual generated answer.
Logs & Screenshots
Additional Information
Web search itself is working:
calling http://searxng:8080/search?q=test&format=json from inside the open-webui container returns valid JSON.
Retrieval/embedding also works: vectors are created and stored.
The only missing piece is generation: the model never turns the context into an answer.
Question:
Is this expected with small Ollama models (like gemma3:270m)?
@gamersalpha commented on GitHub (Oct 28, 2025):
OK i try with a model and works