# Chat with your own documents in Open WebUI on a GPU-VPS

> Upload policies, contracts or documentation into Open WebUI and ask about them. The model answers from your documents, and the data never leaves your server in the Czech Republic.

Source: https://www.hukot.net/community/en/tutorials/chat-with-your-own-documents-in-open-webui-on-a-gpu-vps
Updated: 2026-11-25

Upload policies, contracts or documentation into Open WebUI and ask about them as you would a colleague. The model answers from your documents (RAG, Retrieval Augmented Generation), and none of it leaves your server.

For companies that can't send internal documents to the cloud, we recommend running it on a [Hukot.net GPU-VPS](https://www.hukot.net/en/gpu-vps/): the documents, the model and the answers stay in a datacentre in the Czech Republic.

## Prerequisites

::: tutorial 284 Before you start
Install Ollama and Open WebUI following this tutorial, then continue here on the same server.
:::

The settings in this tutorial are made by the Open WebUI administrator, that is, the first registered account.

## A multilingual model

Open WebUI splits documents into chunks and computes an embedding for each, a numeric fingerprint of the text's meaning. It uses these to find the chunks related to a question. The default embedding model (`all-MiniLM-L6-v2`) is meant for English, so for documents in other languages, set a multilingual model from Ollama.

1. On the server, download the multilingual model `bge-m3`:

   ```bash
   ollama pull bge-m3
   ```

2. In Open WebUI, open **Admin Panel** → **Settings** → **Documents**.
3. In **Embedding Model Engine**, choose **Ollama** and enter `http://127.0.0.1:11434` in **API Base URL**.
4. Enter `bge-m3` in **Embedding Model** and save the settings.

> [!WARNING]
> If you change the embedding model later, recompute the knowledge bases you've already uploaded with the **Reindex** button on the same page. Files attached directly to chats aren't recomputed; upload those again.

## Knowledge bases

A knowledge base is a set of documents on one topic, such as "Policies" or "Technical documentation".

1. Open **Workspace** → **Knowledge** and click **Create**.
2. Fill in the name and description. A new knowledge base is private (**Private**) until you share it.
3. In the **Add Content** menu, choose **Upload files** or **Upload directory** and upload the documents (PDF, Word, Excel, PowerPoint, text).

Open WebUI processes the documents and stores them on the server in the `open-webui` volume.

## Asking about the documents

1. In a new chat, type `#` in the message field and pick the knowledge base.
2. Ask your question, for example "What is the notice period under the framework contract?".

Attach a single file to one chat with **+** → **Attach Files**.

> [!TIP]
> On a GPU-VPS with 24 GB of VRAM, Ollama offers a context of 32,000 tokens by default, and from 48 GB of VRAM up to 256,000 tokens. That is enough for questions about documents. Check with `ollama ps` that the model runs fully on the GPU.

## Sharing with colleagues

1. Create accounts for colleagues in **Admin Panel** → **Users** and add them to a group in **Admin Panel** → **Users** → **Groups**, for example "Legal".
2. For the knowledge base, open **Access** in the **⋯** menu, click **Add Access** and add the group with **Read** rights, or **Write** if they should also add documents.

Anyone without access doesn't see the knowledge base in the `#` menu, and the model won't answer them from it.

## Better answers

- **Scanned PDFs** without a text layer can't be read by Open WebUI. Convert such documents in an OCR program first, or in **Admin Panel** → **Settings** → **Documents** choose a tool with OCR in **Content Extraction Engine**, such as Docling or PaddleOCR-vl. Docling runs as a separate service (the `docling-serve` container); enter its address in **Docling Server URL** in the same settings.
- **Exact terms** (contract numbers, product codes) are found more reliably with **Hybrid Search** in the same settings. It adds keyword search to the search by meaning.
- **Smaller knowledge bases** give better answers than one huge one. Split the documents by topic.

## Backups

Accounts, chats and knowledge bases are in the Docker volume `open-webui`. Create a backup file with:

```bash
sudo docker stop open-webui
sudo docker run --rm -v open-webui:/data -v "$PWD":/backup alpine tar czf /backup/open-webui-backup.tar.gz -C /data .
sudo docker start open-webui
```

The container is stopped during the backup, because the database inside the volume could be copied in an inconsistent state while it runs.

The archive `open-webui-backup.tar.gz` is created in the current directory. Store it off the server, for example on [Hukot.net Object Storage via rsync](tutorial:219).

> [!TIP]
> Before a bigger Open WebUI update, create a snapshot in your Hukot.net VPS administration. If something breaks after the update, you can restore the server to its previous state.

## Why choose our GPU-VPS?

Internal documents are among a company's most sensitive data. On a Hukot.net GPU-VPS, they are processed by a model on your own server in the Czech Republic and never reach any AI provider.

::: cta
## Want an AI that knows your documents?

Order a Hukot.net GPU-VPS and upload your first documents today.

[Choose a GPU-VPS configuration](https://www.hukot.net/en/gpu-vps/)
:::
