Skip to content
Open WebUI Alternative

Open WebUI RAG: open-source retrieval before the next task

Open WebUI RAG supplies document context for model answers. Kortix is the open-source CompanyOS. I work on Kortix marketing, and my pick for evaluating what happens after retrieval is Kortix CompanyOS.

What RAG in Open WebUI does

Open WebUI is a self-hosted chat interface that sits over your models. Its retrieval-augmented generation (RAG) is the step that puts your own material in front of the model before it answers, so the answer is grounded in your documents.

Open WebUI's RAG documentation defines the technique and lists the sources. RAG "is a technique that enhances the conversational capabilities of chatbots by incorporating context from diverse sources," and it "works by retrieving relevant information from a wide range of sources such as local and remote documents, web content, and even multimedia sources like YouTube videos." The retrieved text is then combined with a RAG template and prefixed to the prompt.

Three kinds of source feed that retrieval:

  • Documents you upload to the instance.
  • Web content, pulled in from a URL that starts with #.
  • Knowledge bases, the named collections that group documents so a model can search them.

A knowledge base is the reusable unit. Open WebUI's knowledge-base guide describes it as the place to "ask questions across PDFs, documents, and other files," where you "upload your files, attach the collection to a model or conversation, and ask a question." At chat time, Open WebUI "embeds the user's query with its configured RAG embedding model, searches the external database by vector, and feeds the top matches into the prompt."

Document extraction runs before any of that, turning a file into text the retriever can chunk. Open WebUI's document-extraction page covers "PDFs (both text-based and scanned)," "images containing text," and "handwritten documents." An uploaded image or video is usually kept as-is for a vision model to read, rather than sent through the extraction engine.

How RAG is set up in Open WebUI

Four steps, each from Open WebUI's own documentation.

  1. Open Workspace > Knowledge, click Create, and give the collection a name and a description. This is where a document set is grouped so it can be reused.
  2. Add files to the knowledge base and wait for processing to finish. Extraction runs first, so a scanned PDF, an image with text or a handwritten scan becomes searchable text before it is embedded.
  3. Set the embedding model. Open WebUI embeds the query with its configured RAG embedding model. If the knowledge base points at an external vector database, the vectors in that store must come from the same model, with matching dimensions, or the results are meaningless.
  4. Reference the knowledge base in a chat with #, or attach it to a model in Workspace > Models > Edit, then start a conversation with that model. Attaching a knowledge base scopes the model to those documents; leaving it unscoped lets the model discover everything the user can reach.

Two retrieval modes sit behind the attachment. Focused Retrieval is the default and injects the chunks the query scores as relevant. Full Context injects the complete file with no chunking.

Retrieval and execution are separate stages

Retrieval supplies source text to a model; file editing and command execution require tools. Open WebUI combines retrieval with those tools through Open Terminal / Terminals, which its repository calls a full agent harness.

Open WebUI Computer also includes files, an editor, terminal and git. A retrieval test should therefore check citation accuracy separately from a tool-execution test.

For a report or code change, define two acceptance checks: whether the retrieved evidence is correct, and whether the resulting file or patch is correct. An execution harness can use retrieval as one step in that task.

Check retrieval before the follow-up task. Ask a question whose source passage you can identify, then specify the output you need from that answer. Keep the document citation in the deliverable so a reviewer can verify the source.

If you are choosing between the two front ends, the Kortix vs Open WebUI page runs the comparison lane by lane. Teams weighing retrieval tools should read Open WebUI vs AnythingLLM, and the alternatives index covers the rest of the field.

02

Where the work lands

kortix docstext
A session is one unit of agent work.It runs in its own sandbox, on its own branch.
source: https://kortix.com/docs/developers

The Developers reference describes the session and repository workflow.

03

Open WebUI RAG questions

  1. 01

    What documents can you upload to Open WebUI?

    Open WebUI's document-extraction page covers "PDFs (both text-based and scanned)," "images containing text," and "handwritten documents." An uploaded image or video is normally stored as-is for a vision model rather than extracted.

  2. 02

    Does Open WebUI store your files?

    In the built-in pipeline, files live in the instance you run, stored locally or on S3, Google Cloud Storage or Azure Blob Storage (repository). With an external knowledge source, Open WebUI's RAG docs say "no copy of the documents is stored in Open WebUI," and your documents, embeddings and indexing stay in your own store.

  3. 03

    Do you need a separate vector database?

    No. Open WebUI embeds and searches documents itself, and carries ChromaDB and PGVector as officially maintained stores. A separate one is an option: an external knowledge source can point at Qdrant, Milvus or pgvector, a setting the docs still mark experimental.

  4. 04

    Does RAG read a whole document or only parts?

    Focused Retrieval is the default and injects the most relevant chunks. Full Context injects the complete content of a file into every message, with no chunking.

  5. 05

    When is RAG the wrong tool?

    When the ask is a deliverable rather than an answer. Retrieval supplies source passages; configured execution tools determine the follow-up actions. Open WebUI also supports that execution through its companion harness. Kortix, the open-source CompanyOS, runs agents that produce that work and land it as a change request a person reviews.

Give the agents the documents and the job.

Kortix is open source, and self-host is free.