Open WebUI manages the chat interface and sends prompts to a local backend such as Ollama, where the chat model generates replies. For document search, an embedding model turns document text and search queries into vectors. That model can run inside Open WebUI or on the Ollama server, depending on which embedding engine you select.
The backend does the thinking
The interface talks to a model server over HTTP, either through Ollama’s API or through an OpenAI-compatible endpoint. The model and the hardware running it determine how quickly it generates replies. Open WebUI Quick Start
If the UI loads but no models appear, start with the Ollama connection fixes. If the connection checks out and the list is still empty, Open WebUI no models available covers unpulled models, filters and per-user access.
Open WebUI compared with LibreChat covers differences in setup, configuration and licensing when choosing a front end.
Model size, quantization and memory
A model needs memory for its weights and context. Quantization stores weights at lower precision to reduce memory use, with a possible tradeoff in accuracy. Hugging Face quantization overview
If Ollama offloads part of a model from the GPU to the CPU, generation can slow down. The Ollama documentation explains how to check the GPU and system memory split and how context length affects memory use. Ollama FAQ · Ollama context length
Budget memory for the chat model, the context of active conversations and any embedding model running on the same hardware. Use the VRAM and context sizer to estimate what will fit before pulling a model.
Context windows are a hard limit
The model’s context window limits how much it can work with at once, including the system prompt, conversation history, retrieved document text and space for the reply. The backend can reject a request that exceeds this limit. By default, Open WebUI forwards the conversation without trimming it. Its optional Context Compaction feature summarizes older messages. Open WebUI context window troubleshooting
If a model appears to forget earlier instructions or overlooks retrieved text, check the context length configured on the backend.
How document search actually works
When Open WebUI uses vector search, it splits document text into chunks and stores a vector for each chunk. At search time, it embeds the query with the same embedding model and looks for nearby vectors. Open WebUI adds the matching text to the prompt so the chat model can use it when writing the answer. Open WebUI Essentials · Open WebUI RAG guide
In the admin section of Settings → Documents, the embedding engine determines where the Embedding Model runs. Open WebUI settings reference
| Embedding engine | Where embeddings run | What goes in Embedding Model |
|---|---|---|
| Default (SentenceTransformers) | Inside the Open WebUI process | A SentenceTransformers model name, such as sentence-transformers/all-MiniLM-L6-v2 |
| Ollama | On the configured Ollama server, via its API | An embedding model available on that Ollama server, such as nomic-embed-text |
Switch the default Open WebUI embedding model and reindex
- As an administrator, open Settings → Documents. With Default (SentenceTransformers) selected, enter the new model name in Embedding Model and click Save. Save applies the new model setting and leaves the existing vectors in place. Open WebUI settings reference
- In the same Documents settings, click Reindex beside Reindex Knowledge and Memory Vectors and confirm. Open WebUI rebuilds knowledge-base and memory vectors using the current model. Run this after switching because vectors from the old model do not match queries embedded with the new one. Open WebUI RAG guide
Re-upload any files you added only to a chat to update their embeddings. Reindexing also extracts knowledge-base files again, so it can replace text you edited in the file viewer. Open WebUI RAG guide
Small chunks can lose surrounding context, while larger chunks take up more of the chat model’s context window. Scanned pages without a text layer yield no text with the default extractor and OCR off. Open WebUI RAG guide · Open WebUI document retrieval troubleshooting
For ingestion and the difference between chat files and reusable knowledge, see the Open WebUI document upload guide.
The procedure is based on the Open WebUI RAG guide and settings reference and was checked against the Open WebUI v0.13.5 Documents settings code. The steps were not run on a live instance.
Persistence and access
The application keeps its state in a data directory. Put it on a persistent volume so accounts, conversations and documents survive container recreation. Open WebUI Quick Start
The first account created becomes the administrator. If you expose the interface beyond your own network, use HTTPS and restrict access to authorized users. Open WebUI Quick Start · Open WebUI hardening guide
The Docker install guide covers the volume mount, image tags and reverse-proxy settings.
Common mistakes
- Sizing the hardware for the chat model alone when embeddings run on the same machine.
- Switching embedding models and skipping the reindex.
- Leaving the data directory on an ephemeral filesystem.
- Assuming that a reply is supported by your documents without checking the retrieved passages.