---
id: 8224
lang: en
title: "Open WebUI and llama.cpp: How to Set Up Local Web Search with Qwen and Docker on Windows"
published_at: "2026-05-01 22:34:09"
source_name: "Habr AI"
source_url: "https://habr.com/ru/articles/1027676/?utm_campaign=1027676&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/8224"
categories: ["llm"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# Open WebUI and llama.cpp: How to Set Up Local Web Search with Qwen and Docker on Windows

> **Краткая суть (BLUF):** If web search in Open WebUI has been giving you junk, the problem is probably not the interface itself but how the RAG pipeline is configured. The author walks through a working setup built on llama.cpp, with Qwen models for answers, embedding, and reranking, plus Tika, Docker, and Brave Search.  On Windows 10 with an RTX 3090, this setup produces noticeably more coherent results, although loading the models still takes up to a minute.

Open WebUI can run local models through llama.cpp and can even perform web searches, but without manual tuning the results are often weak. The author of a hands-on guide shows how to build a working setup on Windows with Qwen, Docker, and dedicated models for embedding and reranking, so that search starts returning meaningful answers.

## How the stack fits together

The basic idea is simple: llama.cpp runs a local server hosting several GGUF models, and Open WebUI sits on top of it as the interface. For main generation, the author uses two versions of the same large model, Qwen3.5-27B-UD-Q4_K_XL — one with reasoning and one without. Separately, the setup runs a compact Qwen3.5-2B for utility tasks, Qwen3-Embedding-4B for vectorization, and Qwen3-Reranker-4B for re-sorting search results.

This arrangement is necessary because web search in Open WebUI effectively depends on a RAG pipeline. With the default settings, the system may technically find pages but does a poor job of extracting meaning, loses relevant chunks of text, and produces weak answers. According to the author, this is exactly what made search nearly useless in the default configuration.

The guide targets fairly specific hardware: Windows 10 22H2, an RTX 3090 with 24 GB of VRAM, and 32 GB of RAM. Even on this machine, the large model doesn't load instantly: the first response can take up to a minute, and loading extra models in parallel quickly eats up video memory.

## Key settings

The article's most important point is that you need to tune not just the chat model but the entire infrastructure around it. The author moves the models into llama-server and connects Open WebUI to it via a local URL through Docker.

* Main model for answers: Qwen3.5-27B-UD-Q4_K_XL, in separate instruct and thinking modes.
* Utility model: Qwen3.5-2B-BF16, which generates chat titles and handles small background tasks faster than the large model.
* Web search uses dedicated Qwen3-Embedding-4B-f16 and Qwen3-Reranker-4B-f16 models.
* Apache Tika serves as the content extraction engine, and Open WebUI itself runs via Docker Compose.
* Brave Search is the chosen search provider; the author also mentions Exa, Tavily, Serper, Linkup, and Valyu.

The llama.cpp parameters deserve separate attention. In the config, the author disables mmap, caps the number of simultaneously loaded models with `--models-max 1`, sets up timeout-based unloading from VRAM, and splits the context across parallel requests. These aren't cosmetic tweaks: loading a second heavy model alongside the main one makes performance drop sharply.

The Open WebUI interface has its own critical spots. In the admin panel, you need to explicitly enter the URL of the local model server, then select the small model for local and external interface tasks, and in the Documents section connect Tika, the embedding model, and an external rerank endpoint. Only then does web search start working as a full pipeline rather than a nominal layer on top of a browser query.

## Limitations and caveats

Even after tuning, this setup doesn't turn a local stack into a replacement for paid cloud services. The author states plainly that the results still fall short of proprietary solutions, but they may be good enough if you care about privacy, an offline environment, or the ability to run unrestricted models without external APIs.

There are practical trade-offs too. If you assign a reasoning model to the interface's utility tasks, Open WebUI starts spending far too much time even on generating a chat title. Web search also loads the embedding and reranking models, so VRAM pressure and latency climb even further. The author recommends checking llama-server logs to see what is currently loaded.

The article also offers several extensions for those who want to go further. Instead of Tika, you can try Docling for more complex documents. SearXNG works as a local search engine, though its backends can get temporarily banned. The author got the Playwright-based web loader running, but it was far too slow — latency was measured in minutes rather than seconds.

Later, he also reduced the main model's context to 32768 tokens. This eliminated freezes while a chat tab was open, because the model stopped taking up more free VRAM than the system could reliably handle.

## What this means

The guide shows clearly that a local AI stack can already be built from open components today, but quality depends less on a single "best model" than on getting generation, embedding, reranking, and content extraction to work together properly. For developers, it's a practical recipe: if Open WebUI's web search is performing poorly for you, the place to start is not swapping the model but rebuilding the entire RAG configuration.

---
- **Первоисточник:** [Habr AI](https://habr.com/ru/articles/1027676/?utm_campaign=1027676&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/8224
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
