Connecting Open WebUI to an existing vector database

Pointing Open WebUI at an existing Qdrant, Milvus or pgvector index can avoid re-ingesting documents, but the feature is experimental and needs careful planning around access, storage and ownership of embeddings.

On this page

Why teams want Open WebUI to reuse an existing vector database

Teams that already hold embeddings in Qdrant, Milvus or pgvector usually want Open WebUI to query that index directly, so documents are not parsed, chunked, embedded and uploaded a second time. The short answer is that this is possible only when the index is one Open WebUI supports and the team accepts that the feature is experimental. Open WebUI's features documentation lists retrieval support for 13 vector databases, including ChromaDB, PGVector, Qdrant, Milvus and Elasticsearch, alongside hybrid BM25 plus vector search and cross-encoder reranking. Support for a database in that list does not, by itself, mean that an index built elsewhere can be attached to a knowledge base without changes.

The first decision is whether the existing index was built with the same embedding model that Open WebUI will use for queries. Vectors produced by a different model, or by the same model with different settings, will not match query vectors in a meaningful way, and retrieval results can look plausible while being wrong. Confirm the model name, vector dimension and distance metric on both sides before any test. Then check how the index stores document metadata, such as source, owner or department, because Open WebUI's knowledge base permissions do not automatically map to collection-level permissions in the vector database. Anyone whose access depends on those fields needs a written answer on what Open WebUI enforces and what the index itself enforces.

The feature's experimental status means behavior can change between releases, so the upgrade plan belongs in the design. The latest Open WebUI release named in the supplied facts is v0.12.3, and the release notes for each version should be read for changes to external vector store handling before an upgrade. Plan a pilot against a copy of the index rather than the production collection, and keep a fallback path that re-ingests documents if the connection fails. Teams that expect several Open WebUI replicas will need an external vector database in any case, so the pilot also tests whether the chosen index fits that future design.

Which external index fits which situation

This table compares Qdrant, Milvus and pgvector as the existing index behind an Open WebUI knowledge base, based on what your team already runs and what each option asks for in access control and storage. Read each row against your own environment, and treat the Milvus and pgvector rows as points to confirm with your vendor or DBA before you commit.

Decision factorQdrantMilvuspgvector
Team already runs itChoose if your team already operates Qdrant or can run it as a dedicated serviceChoose if you already operate Milvus and have capacity to support another collection workloadChoose if your DBA already manages PostgreSQL and the extension is approved for your database
Storage requirementBlock-level POSIX storage on SSD or NVMe; NFS and S3 are not supportedConfirm supported storage classes and object storage needs with the Milvus documentation for your versionStorage sits in the main PostgreSQL data files, so plan disk and backups with the database
Access controlAPI keys, read-only keys, TLS and per-collection JWT permissions are available, but a default install has no authenticationConfirm the authentication, role and TLS options for your release with the vendorAccess follows PostgreSQL roles and grants; confirm how your DBA scopes Open WebUI's database user
Production topologyThree nodes recommended for quorum; the community Helm chart lacks zero-downtime upgradesConfirm the reference architecture and operator options with the vendor before sizingConfirm high availability and replica design with your DBA, since it inherits the PostgreSQL setup
Audit loggingJSON audit logging of authenticated API operations is available from v1.17.0Confirm audit logging options for your versionConfirm whether database audit logging meets your review requirements
Poor fitTeams that cannot provide SSD or NVMe block storage or cannot run a secured, clustered serviceSmall knowledge bases where a dedicated cluster adds more operations work than the workload needsLarge collections or heavy vector query load that would compete with the main application database

Setting up the connection step by step

This sequence takes an existing Qdrant, Milvus or pgvector index from unverified to a knowledge base in Open WebUI that retrieves known content with the permissions you intended. Each step ends with a check so a failure is caught before the next layer is added.

  1. Confirm index version and embedding model match

    Before anything else, record the embedding model and its vector dimension used to build the existing index, and the database or engine version that holds it. Open WebUI must query with the same embedding model that wrote the vectors, or similarity scores will be meaningless. Your data or platform team should confirm this from the ingestion job's configuration, not from memory. Done means you have a written record of the model name, vector size, distance metric, collection or table name and engine version, and the Open WebUI embedding setting you will use matches it exactly.

  2. Secure the index with API keys and TLS

    A self-deployed Qdrant instance listens on all network interfaces with no authentication by default, so this step must happen before Open WebUI is pointed at it. Configure an admin key for the team that manages the index and a read-only key for Open WebUI, enable TLS for REST and gRPC, and restrict network access so only the Open WebUI host can reach the port. For pgvector, use a dedicated database role with rights limited to the relevant schema and tables. Done means an unauthenticated request is refused, the read-only key can query but cannot write, and the connection works over TLS from the Open WebUI host.

  3. Configure Open WebUI vector store settings

    In the Open WebUI administration settings, set the vector database type to match the index, then enter the endpoint, collection or table name, and the credentials for the read-only account. Keep the embedding model setting identical to the one confirmed in the first step. Because this integration is experimental, record the exact Open WebUI version and the settings used so you can reproduce them after an upgrade. Done means Open WebUI starts without errors in its logs and reports a successful connection to the store.

  4. Confirm Open WebUI reads without re-ingesting

    Check that the connection does not trigger a new embedding job. Watch the Open WebUI logs and the embedding service metrics while you attach the knowledge base to a test model, and confirm that no document upload or embedding requests are made for the indexed content. Also confirm that the write key is not used by Open WebUI. Done means the logs show retrieval calls only, and the existing index's point or row count is unchanged before and after the test.

  5. Run a test query against a known document

    Choose a document that is already in the index and whose key sentence you know. Ask a question whose answer appears only in that passage, using a model connected to the knowledge base, and check the cited source. Repeat with two or three questions across different documents so a single lucky match does not pass the test. Done means the answers cite the expected documents and quote content that matches the source text, and you have a short record of the questions and results.

  6. Verify permissions and metadata filtering

    Sign in as users from different Open WebUI groups and ask the same questions. Confirm that a user without access to a knowledge base cannot retrieve its content, and that any metadata or collection-level separation in the index behaves as your access model requires. Note that Open WebUI's own permissions do not automatically reflect permissions held in the vector store, so any filtering must be confirmed in both places. Done means each test account sees only the content it is entitled to, and the results are written up for the security reviewer.

  7. Document the settings and schedule a retest

    Record the final configuration, the index and embedding versions, the key owners and the test results in your operations runbook. Set a recurring check, scheduled according to your change process, that repeats the known-document queries after Open WebUI upgrades, index rebuilds or embedding model changes. Done means a named owner has the runbook, and the test set is stored so the same questions can be rerun without rebuilding them.

Securing the index before Open WebUI touches it

A self-hosted Qdrant instance is open by default, so the index needs its own access controls before Open WebUI connects. The cards below cover the default state, the key and permission model, audit logging, network placement and the ownership questions that a shared index raises.

Remove the open default first

A self-deployed Qdrant instance listens on all network interfaces and has no authentication configured by default. Before Open WebUI is pointed at it, confirm that the service is bound only to the private interface Open WebUI uses and that no unauthenticated port is reachable from user networks. Test this from outside the cluster or host, not only from inside the same network segment.

Qdrant security docs

Admin and read-only API keys

Qdrant supports admin and read-only API keys, and TLS for REST and gRPC since v1.2.0. Use the admin key only for the people who manage collections, and give the Open WebUI connection a credential that cannot delete or rebuild collections. Store keys in your secrets manager, not in Compose files or Helm values committed to source control.

Per-collection JWT permissions

JWT-based access control with per-collection read or write permissions arrived in v1.9.0. This lets a shared instance hold several knowledge collections while a service identity can write only to the collections it owns. Confirm the token lifetime and signing key rotation process with your security team before the first production load.

Audit logging of API operations

JSON audit logging of authenticated API operations has been available since v1.17.0. Route these logs to the same store your security team uses for other systems, and test that a write from Open WebUI produces a record identifying the calling identity. Without this record, it is hard to show which service changed or deleted vectors during an investigation.

Network placement and TLS

Place Qdrant on a private subnet reachable only from the Open WebUI workers and the administrators who manage it. Ask the Qdrant team or your platform owner to confirm whether the TLS settings you need apply to both REST and gRPC ports in your chosen install path. Block direct access to the storage volume from anything other than the Qdrant process.

Who owns the embeddings

Embeddings are derived from source documents and can reveal their content, so the index is sensitive data even though it contains no raw files. Decide who owns the collections, who can export them, how long they are kept, and what happens to vectors when a document is removed from the source system. Record these answers before the index is shared between teams.

Index access is not Open WebUI access

Open WebUI enforces its own role-based access and per-resource permissions for knowledge bases, but a user who can reach Qdrant directly can bypass those rules. Conversely, a valid Open WebUI user does not automatically get index-level rights. Test both paths: a user without knowledge access should fail in Open WebUI and in direct queries against the index.

Questions teams ask before connecting an external index

How much does it cost to connect Open WebUI to Qdrant?

The Qdrant engine itself is free to self-host because it is open source under Apache-2.0, so your cost is the infrastructure and the work around it. Compute, block storage, backups, monitoring and network traffic recur every month and grow with collection size and replica count. Managed options are priced differently. The Qdrant pricing page lists a free single-node tier with 0.5 vCPU, 1 GB RAM and 4 GB disk, a usage-priced Standard tier with a 99.5% uptime SLA, and a Premium tier with a minimum spend that adds SSO, private VPC links and a 99.9% uptime SLA. Hybrid Cloud and Private Cloud are priced through Qdrant sales. Ask any quote to separate one-time setup from recurring infrastructure and support, and to state who pays for each line.

How long does connecting an existing Qdrant index take?

No supplied duration applies to your environment, so treat any number you hear as unverified until it is tied to a written scope. Time depends on whether the index is healthy, how many collections and documents it holds, how many Open WebUI replicas will query it, and whether TLS, API keys and audit logging must be in place before go-live. Confirm the embedding model, vector size and distance settings early, because a mismatch with the existing index forces a rebuild. Ask for a plan with named milestones, a test against a non-production copy of the index and a documented rollback step. DeployOpen agrees timelines in writing once the scope is defined.

Can our own team connect Open WebUI to an existing Qdrant index?

Yes, if your team already administers Open WebUI and operates Qdrant and has someone who can own both sides. The connection is a configuration change, but the surrounding work takes more effort: a secured Qdrant endpoint, storage that meets Qdrant's requirements, a backup and restore path, and a verified test that existing documents are retrieved without re-ingestion. Teams new to Qdrant often find storage and access setup is the slower part. If you build it yourselves, record the Open WebUI and Qdrant versions you tested and repeat the retrieval test after every upgrade. DeployOpen can deliver the work as a fixed-scope engagement or support your team on a retainer.

What does our team need to provide for this work?

The work needs access, facts about the existing index and one owner who can approve decisions. Most requests come down to the following:

  • Administrative access to the Open WebUI deployment, including its database, Redis and file storage settings
  • A Qdrant instance or a plan for one, with network paths from every Open WebUI replica
  • The embedding model name, vector size and distance settings used to build the existing index
  • A named owner who can approve access, TLS certificates and maintenance windows
  • A non-production copy of the index for testing before any change reaches users
How does Qdrant cluster sizing change the effort?

Sizing sets how many components you deploy, configure and test, so it is one of the largest effort drivers. Qdrant's distributed mode uses Raft for cluster topology, splits collections into shards and keeps extra copies through a replication factor. The distributed deployment docs recommend at least three nodes for production so quorum survives a node failure, and a shard count that is a multiple of the node count. A replication factor of 2 doubles storage. The community Helm chart lacks enterprise features such as zero-downtime upgrades and automatic shard rebalancing, so a multi-node production cluster on it needs a clear upgrade plan. Ask for a written sizing worksheet before any build starts.

Is an external Qdrant instance secure enough for our documents?

Only after you secure it. The Qdrant security docs state that self-deployed instances listen on all network interfaces and have no authentication configured by default. Qdrant supports admin and read-only API keys, TLS for REST and gRPC, JWT-based access control with per-collection read or write permissions since v1.9.0, and JSON audit logging of authenticated API operations since v1.17.0. Restrict network access so only Open WebUI replicas and administrators can reach the port. Confirm which features your chosen release includes, since v1.19.2 was the latest GitHub release as of October 2026, and map the audit logs to your retention rules.

What does experimental status mean for our support plan?

Treat the connection as experimental until Open WebUI's documentation and release notes say otherwise for your version, and plan support around that. Pin both Open WebUI and Qdrant versions, record the combination you tested and repeat the retrieval test before every upgrade. Confirm with Open WebUI which configuration settings and versions are supported, and ask how changes to the feature will be announced. Your support model should name who handles incidents in each system and how a fallback to re-ingestion would work if the link fails. DeployOpen offers ongoing support, upgrades and continuous testing as retainers, and agrees the scope of any fix in writing.

Open WebUI queries the existing index across a trust boundary

The diagram starts with users in the user network signing in and sending chats to Open WebUI in the application tier. Open WebUI keeps accounts, chats and configuration in PostgreSQL, and keeps session state in Redis when several replicas run. For retrieval, it sends text to the embedding service, then queries the existing vector index across the index network boundary. Check that the index accepts connections only from the application tier, and confirm with your own test that existing collections are read without re-ingestion.

Trust boundaries between user, application and index networks, with the existing index left in place.

How DeployOpen works on this

DeployOpen starts by confirming which Qdrant, Milvus or pgvector index already holds your documents, and who owns it. The work then connects Open WebUI to that index without re-ingesting files, tests retrieval against your own questions, and leaves your team with a documented setup and a support path.

How we scope

  • The written scope names the existing index, its version, hosting location and the Open WebUI version in use.
  • Scope records which knowledge bases will point at the index and which must stay on the built-in store.
  • Scope states how embedding model and vector dimensions are checked against the existing data before any connection.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • Configuration covers the Open WebUI vector database settings, credentials and network paths to the index.
  • Test runs compare retrieval results from the existing index against known questions on a staging instance first.
  • Access controls on the index are set so that Open WebUI credentials cannot exceed the collections they need.
  • Work is performed inside your cloud accounts, data centers or air-gapped networks, with no data leaving your environment.

How we hand over

  • Handover includes a written record of the connection settings, the collections in use and the known limits.
  • Documentation states which features remain experimental and which steps to repeat after an Open WebUI upgrade.
  • Your team receives a retrieval test script and the steps to run it after embedding model or index changes.
  • A short walkthrough covers how to confirm that knowledge base queries still hit the external index.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the initial handover.
  • Retainer scope can cover Open WebUI and index version changes, including the checks after each upgrade.
  • Ask any partner to confirm how they handle index backups and restores before the connection goes live.
  • Support terms, response expectations and exclusions are written into the agreed scope before work starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.