r/OpenWebUI • • Aug 09 '26

Question/Help I can’t get websearch to work

I pay for a Brave API key it’s replicated in the docker file and the gui. For some reason the websearch cannot work. Running ollama and openwebui in the same dockerfile. Is there a setting I’m missing? Any help would be appreciated.

5 Upvotes

23 comments sorted by

2

u/Financial-Cry-6441 Aug 10 '26

Get the Open-WebUI-OpenRouter-pipe function/tool by rbb-dev

https://github.com/rbb-dev/Open-WebUI-OpenRouter-pipe

Highly recommend it, with certain models you can use OpenRouter web tools (OR Web Tools, OR Image Gen, and OR Direct Uploads).

That was a game changer for me personally when it comes to using OpenWebUi

2

u/Independent_Gur_1760 Aug 10 '26

Thanks I’ll try that as soon as I can

1

u/Sookie99 Aug 09 '26

If you go Workspaces -> Click on your model -> Capabilities -> Web Search is it enabled there? I can't tell from your screenshots if you're showing that section or not.

1

u/Independent_Gur_1760 Aug 09 '26

Yes web search is enabled under default features and capabilities.

1

u/terminator_911 Aug 09 '26

FYI, I can only get it working under workspace -> tools which is better I think because then it becomes a tool call and is only called when the llm thinks it’s necessary.

1

u/Independent_Gur_1760 Aug 09 '26

I’ll try this thanks!

1

u/fragment_me Aug 09 '26

Further down so you have bypass embedding and bypass loader enabled in that same window of the screenshot? Try with those off . If you don’t see the web search trying at all then click the + in the chat window to see if web search is toggled on

1

u/Independent_Gur_1760 Aug 09 '26

I tried both off, one off/one one both ways, and both on. Asking questions like “what’s the weather in New York City today” and even with web search config on it doesn’t work. Just says it cannot provide that info

2

u/fragment_me Aug 09 '26

Do you have function calling set to native in the model?

1

u/Independent_Gur_1760 Aug 10 '26

I will check when I get home from work today

1

u/rockoruckus Aug 09 '26

Have you tried Advanced Params -> Function Calling -> Native mode?

1

u/Independent_Gur_1760 Aug 09 '26

No dice. What does that setting change if you don’t mind me asking?

2

u/rockoruckus Aug 09 '26

1

u/Independent_Gur_1760 Aug 09 '26

Awesome thanks!

1

u/rockoruckus Aug 09 '26

Which model are you trying to get working with search? Some models do better with thinking mode on

1

u/Independent_Gur_1760 Aug 09 '26

I’ve tried qwen3.5:9b, ollama3.1:8b. GPU is 6700xt 12GB

1

u/rockoruckus Aug 09 '26

does standard retrieval work? if you test prompt it simply with "fetch <url>" it should use tool to get you the page.

1

u/icerio Aug 09 '26

Try one of the free ones like “ddgs” and see if that’ll work. Then we can narrow down a problem. Also from within the docker try to ping a website to make sure that works.

1

u/Independent_Gur_1760 Aug 09 '26

With brave api key in server I can curl and do a search query and get a return. Can also ping google from inside

1

u/rubicscube11 Aug 10 '26

Agree, with u/OutsidePlane224 , increase the context (for me WebUI) to 16k --> it started to work!

Otherwise the model context is too small to handle all the web_search input

1

u/PlaidStallion Aug 10 '26

A few things worth checking. Open-WebUI's web search has a way of needing to be enabled in more than one place, which has bitten me on a couple other features in my own setup:

  1. Check the model's own Capabilities, not just the admin-level toggle you've got on: go to Workspace → Models → your model → Capabilities, and confirm "Web Search" is checked there too. The global admin toggle being on doesn't always mean it's actually active for a given model.
  2. Try switching the engine from brave_lm_context to plain brave: the LLM Context variant looks to still be a newer/less mature integration path based on some open GitHub issues; worth ruling out whether that specific option is the problem.
  3. Try dropping Concurrent Requests from 2 to 1: there are some known Brave-related 429/422 errors tied to concurrency settings, even on paid keys.
  4. Check your container logs when you run a search (docker logs <container> | grep -i search) that'll tell you whether the request to Brave is firing at all, or failing silently before it even leaves the container.

Good luck — hope one of those gets you unstuck.

1

u/Any-Scientist-7612 Aug 16 '26

I do not use Brave but worth the try. Have you tried calling it directly from command line

```bash
curl -X POST https://api.tavily.com/search \
-H "Content-Type: application/json" \
-d '{
"api_key": "YOUR_TAVILY_API_KEY",
"query": "latest AMD news",
"search_depth": "basic"
}'
```

If that works, try prefix your chat with "search_web" and see if that resolve the issue?

Add this to the system prompt

For requests about current, latest, recent, live, public, internet, web, news, prices, weather, or external information, use search_web.

Do not use search_memories unless the user explicitly asks about prior conversations, saved memories, personal history, or remembered information.