Choosing a vector database for scaled Open WebUI

The embedded ChromaDB cannot serve several workers or replicas, so a scaled Open WebUI needs an external vector store. This page compares the options and what each one asks of your team.

On this page

Choosing a vector database for scaled Open WebUI: when the default stops working

If you are moving Open WebUI from one container to several workers or replicas and retrieval has started to fail, the likely cause is the embedded ChromaDB. The Open WebUI scaling guide warns that the default ChromaDB will crash in multi-process setups, so once several workers or replicas run, you must replace it with an external vector database. The fix is a planning decision, not a tuning change.

Open WebUI's retrieval features support 13 vector databases, including ChromaDB, PGVector, Qdrant, Milvus and Elasticsearch, and the Open WebUI features documentation lists the full set. The choice affects operations as much as search quality. Each option brings its own backup and restore method, upgrade cadence, access controls, storage requirements and failure behavior, and those differences decide how much your team must run and monitor after launch. Confirm the exact connection settings for your chosen store against the current Open WebUI documentation for your release, since configuration keys can change between versions.

This page covers only the vector store. It does not cover Redis, shared file storage or PostgreSQL sizing, which have their own pages in this group. Before you choose, record which store your team can back up, restore and upgrade without a vendor dependency, which skills already exist in-house, and whether the store must stay inside a network boundary you control. Ask each candidate for its supported deployment topology, its authentication model and the storage type it requires. Those answers narrow the list far more reliably than benchmark claims, and they set the work a partner would scope for you.

Which vector database fits which team

If your organization already runs PostgreSQL for Open WebUI's core data, the vector store question is partly about whether you extend that database or add a separate engine. Using pgvector keeps one database engine in your backup, monitoring and access processes, but its version support and supported configuration with Open WebUI must be confirmed in the Open WebUI docs before you commit. PostgreSQL itself is released under the PostgreSQL License, a liberal license similar to BSD or MIT, so there is no license fee for the engine.

  • Operational burden: You inherit the PostgreSQL work you already do, including backups, point-in-time recovery, connection limits and planned major upgrades.
  • Support window: PostgreSQL 14 is supported to November 12, 2026, and 18 is the newest release, supported to November 14, 2030. Plan the major version you run against that window.
  • Ownership: Your team owns capacity planning, connection pool sizing across replicas and the failover tooling, since PostgreSQL does not detect a failed primary or promote a standby on its own.
  • Shared load: Vector queries share resources with the relational workload, so measure both before you place them on the same instance.

Before choosing this path, confirm with the Open WebUI docs which pgvector version and configuration the current release supports.

Vector database options for scaled Open WebUI compared

This table compares pgvector, Milvus, Qdrant, MariaDB Vector and ChromaDB in HTTP mode across license, deployment, storage, security defaults, clustering and day-to-day operation. Read the cells for Milvus, MariaDB Vector and ChromaDB as open questions to confirm with each project before you commit. The main takeaway is that pgvector adds the fewest new systems if you already run PostgreSQL for Open WebUI, while Qdrant needs more hardening and a clustering plan to run as a separate service.

Criterionpgvector (in PostgreSQL)Qdrant (separate service)Milvus, MariaDB Vector, ChromaDB HTTP
LicensePostgreSQL License, a permissive license similar to BSD or MITApache-2.0 for the open-source engine, free to self-hostConfirm each project's license and any commercial distribution terms
Deployment modelExtension inside the PostgreSQL database Open WebUI already usesSeparate service you run, or a managed or private cloud offering priced by Qdrant salesConfirm supported install methods and whether each runs as a standalone server in your setup
Storage requirementsUses PostgreSQL storage and its backup tooling, so sizing follows your database planBlock-level storage with a POSIX file system on SSD or NVMe; NFS and S3 object storage are not supportedConfirm supported storage backends and whether network file systems are allowed
Security defaultsInherits PostgreSQL authentication, including SCRAM, certificates, LDAP and OAuthInsecure by default: listens on all interfaces with no authentication until you configure API keys and TLSConfirm default bind addresses, authentication and TLS settings for each project
Clustering and scaleScales with PostgreSQL replication and external failover tools, since PostgreSQL does not detect failures itselfDistributed mode uses Raft and sharding; the docs recommend at least three nodes for production quorumConfirm clustering model, minimum node count and failover behavior
Vendor support of the integrationConfirm with the Open WebUI docs which options the core team maintainsConfirm with the Open WebUI docs which options the core team maintainsConfirm with the Open WebUI docs which options the core team maintains
What your team operatesPostgreSQL sizing, connection limits, extension upgrades and backups for the vector dataA second stateful service with its own backups, upgrades, key management, TLS and cluster healthA separate stack to confirm for each project, including its upgrade and recovery procedures

How to set up an external vector store for Open WebUI

This sequence moves retrieval off the embedded ChromaDB onto a shared external vector store that every Open WebUI replica can reach, with access controls in place before the store is exposed to the network.

  1. Confirm version and supported vector store

    The platform team checks the Open WebUI version in use against the release history on the project's GitHub releases page, then confirms in the Open WebUI features documentation that the chosen store (Qdrant, pgvector, Milvus, MariaDB Vector or ChromaDB in HTTP mode) is listed as supported for retrieval. Confirm the exact configuration key name, which is expected to be VECTOR_DB, against the current Open WebUI docs before writing any configuration. Done when the team has a written record of the version, the store and the key name, and a note that the embedded ChromaDB is being replaced.

  2. Size the store on SSD or NVMe

    The platform team sizes the store's storage on locally attached SSD or NVMe, because Qdrant requires block-level storage with a POSIX-compatible file system and cannot run on NFS or S3-style object storage. Ask the store's vendor or documentation which storage types it supports for your chosen engine, and plan capacity with the expected number of uploaded documents and embedding dimensions in mind. Done when the storage class, the volume size and the file system are written down and the volume is provisioned and mounted in the cluster.

  3. Deploy the store in a cluster you control

    The platform team deploys the vector store inside infrastructure the organization operates, using the vendor's documented production path. For Qdrant, that means choosing between the managed cloud, the community Helm chart or the enterprise operator, and noting that the community chart lacks enterprise features such as zero-downtime upgrades and automatic shard rebalancing. Done when the store's pods or nodes are running, their health endpoint responds from inside the cluster, and the deployment is recorded in configuration management.

  4. Enable API keys and TLS before exposure

    Before any network route to the store is opened, the platform team enables API key authentication and TLS for both REST and gRPC, following the store's security documentation. Qdrant's documentation states that self-deployed instances listen on all interfaces with no authentication by default, so this step must be completed first. Check that an unauthenticated request to the store is refused, and that a request over plain HTTP is not accepted on the production endpoint. Done when unauthenticated calls return an error, the key is stored in your secrets manager and TLS certificates are valid for the service name.

  5. Point Open WebUI at the store

    The platform team sets the vector database configuration in every Open WebUI replica to the same external endpoint, using the key name confirmed in the Open WebUI docs and the API key from the secrets store. All replicas should share one PostgreSQL database and the same secret key, so they read the same vector settings. Restart the replicas in a rolling pattern and watch the logs for connection errors. Done when every replica starts cleanly and the logs show a successful connection to the external store rather than the embedded ChromaDB.

  6. Test retrieval from every replica

    The QA or platform engineer uploads a test document through one replica, waits for indexing to finish, then runs a knowledge-base query through a different replica and confirms the document is returned with its citation. Repeat with the roles reversed and with each replica behind the load balancer. Also confirm the uploaded file is reachable from every replica, since shared file storage is a separate requirement. Done when every replica returns the same test result, and the test is recorded with the replica names, the store endpoint and the query used.

  7. Record the configuration and operating runbook

    The platform team writes down the final configuration, including the store version, storage class, authentication method, TLS certificate source, backup or snapshot approach and the owner for each. Confirm snapshot and restore options in the vendor documentation and schedule a restore test in a non-production cluster. Done when the runbook is stored with the infrastructure records and the team has a documented way to reproduce the setup.

Where the vector store sits relative to replicas and shared state

The diagram starts with users reaching a load balancer, which fans requests out to several Open WebUI replicas. Each replica depends on the same PostgreSQL database, the same Redis store and the same shared file storage, so no replica holds state of its own. The external vector database sits inside a trust boundary with its own API keys, and every replica reaches it over the network. Check that each replica points at the same vector store endpoint, that the store is not reachable without credentials, and that no replica falls back to the embedded ChromaDB.

Every replica shares one external vector store, behind its own credentials.

Securing the vector store and its data

A self-hosted Qdrant instance holds embedded user documents, so its network exposure, authentication, transport encryption and backups need the same attention as the application. The cards below cover the controls to set before Open WebUI reads from or writes to the store.

Close the unauthenticated default listeners

Self-deployed Qdrant listens on all network interfaces and has no authentication configured by default, so a fresh install is open to any host that can reach its ports. Before connecting Open WebUI, bind the service to the interfaces it needs and enable API keys. Check the listener addresses from a host outside the application network, because a default install that works in testing is often reachable everywhere else too.

Qdrant security docs

Separate admin and read-only API keys

Qdrant supports admin and read-only API keys, so the credential Open WebUI uses for search does not need to create or delete collections. Keep the admin key out of the application configuration and in your secrets manager. Confirm which operations the Open WebUI integration performs during indexing and retrieval, then assign the narrower key wherever the workload allows it.

Keys and TLS added
v1.2.0

Encrypt REST and gRPC traffic

Qdrant supports TLS for both its REST and gRPC interfaces, and Open WebUI traffic to the store crosses the network on every chat that uses retrieval. Issue certificates from your internal authority, configure both interfaces, and verify that the client settings in Open WebUI trust that authority. Test each protocol separately, since a working REST check does not prove the gRPC path is encrypted.

Scope permissions per collection

JWT-based access control lets you grant read or write permissions per collection, which matters when several knowledge bases share one cluster. Map each Open WebUI deployment or tenant to its own collections and tokens, and confirm that a token for one collection cannot read another. Ask your vendor or test environment to confirm the exact claim format for your Qdrant version before writing the policy.

Per-collection permissions
v1.9.0

Keep audit logs of store operations

JSON audit logging of authenticated API operations records who called the store and what they did, which supports incident response and access reviews for documents that users uploaded. Set the log destination, retention and shipping to your central logging system before go-live. Decide who reviews the logs and how often, because logs that no one reads do not show an exposure.

Audit logging added
v1.17.0

Back up and restore embedded documents

Vector collections contain derived copies of user documents, and losing them forces re-embedding of every knowledge base, while stale copies can outlive a deleted file. Use Qdrant snapshots on a schedule, store them encrypted in a location separate from the cluster, and test a restore into a non-production instance. Include the deletion path in your review, so removing a file in Open WebUI also removes its vectors and snapshots age out under your retention rules.

Qdrant snapshots

Place the store where only Open WebUI reaches it

Put Qdrant on a private network segment with firewall rules that allow connections only from the Open WebUI replicas and the administrators who maintain the cluster. Block direct access from user networks and from other application tiers, and check the rules after each infrastructure change. Confirm the network design with the team that owns the cluster, because cloud security groups and Kubernetes network policies often differ from what the diagram shows.

Questions teams ask before choosing a vector database

What does a scaled vector database actually cost?

The open-source engine itself carries no licence fee for self-hosting, but the total cost is the infrastructure it runs on, the people who operate it and any vendor support or cloud contract you add. Infrastructure is recurring: each cluster needs compute, block storage on SSD or NVMe, backups and monitoring, and a distributed Qdrant setup duplicates data according to its replication factor. Vendor managed services, Hybrid Cloud and Private Cloud are quoted through the vendor's sales team, so ask for a written quote that states what is included, the uptime commitment, support response terms and any minimum spend. Qdrant's pricing page lists a free single-node cloud tier, but it is limited and not a production sizing guide.

How long does a vector database migration take?

Duration depends on how many collections and documents you hold, how often the knowledge base changes, whether you re-embed or copy existing vectors, and how much testing your compliance process requires. The migration itself is usually the smaller part: provisioning the cluster, setting access controls, configuring Open WebUI, running a retrieval comparison and cutting over are where time goes. Ask for a timeline built from your data volume and change rate rather than a generic figure, and confirm which migration tooling the vendor documents for moving data between stores.

What does our team need to provide for the work?

You need an owner for the Open WebUI configuration, someone who can run the database and storage platform, and a security contact who will approve network, authentication and backup settings. On the infrastructure side, you provide the environment where the vector store runs, block storage that meets the vendor's file system rules, DNS and certificates, and access to your identity provider if API access is tied to SSO. Document the sample questions and corpora you will use for retrieval testing, because those tests decide whether the cutover is acceptable.

Can our own team implement this without a consultant?

Yes, if your engineers have operated PostgreSQL or a comparable distributed service, can read the vendor's security and deployment documentation, and have time for testing. The points that most often cause trouble are the default ChromaDB limits with several workers, network exposure and authentication of self-deployed vector stores, backup and restore of the vector data, and the quorum design of a multi-node cluster. Review those items against your own runbook before you commit to a design.

Does pgvector reduce the number of components we run?

It can. If PostgreSQL already serves as the Open WebUI database and Redis and shared storage are in place, pgvector keeps vectors in the same database, which removes one service to deploy, secure, back up and patch. The trade-off is that vector search load then shares resources and backup windows with the application database, so you should test retrieval latency and database capacity together. Check the pgvector release you plan to run against the PostgreSQL version your platform team supports, and confirm the Open WebUI release you target lists it as a supported option.

What breaks if we pick the wrong vector database?

The most common failure is a choice that works in a single-replica test and then fails under several workers or replicas. Other failures include exposing an unauthenticated vector API on a network, storing data on NFS or object storage where the engine does not run, undersized shards or memory, and restores that were never tested. Each of these is avoidable with a written checklist covering storage, authentication, TLS, backups and a retrieval test set that runs before every upgrade.

When is it worth hiring a consultant for this?

A consultant is worth considering when the vector store sits on a regulated workload, when your team lacks distributed database experience, when the deadline leaves no room for a failed cutover, or when audit evidence for access, logging and backups must be ready. DeployOpen implements and hardens self-hosted platforms in your own infrastructure under a written, fixed scope, and prepares systems and evidence for compliance assessments, but it does not issue audit reports or certifications. Ask any provider for the scope, the deliverables and the acceptance tests in writing before you compare quotes.

How DeployOpen scopes and delivers a vector store for Open WebUI

DeployOpen approaches the vector database decision as a scoped infrastructure change, not a database swap. We start from your Open WebUI replica count, document volume and the access rules your security team needs, then plan, build, test and document the chosen store inside infrastructure you control.

How we scope

  • Confirm which Open WebUI replicas, workers and document volumes the vector store must serve.
  • Record the chosen store (pgvector, Milvus, Qdrant, MariaDB Vector or ChromaDB in HTTP mode) and the reason for it.
  • Agree in writing who owns the store, its hosting, its backups and its upgrades after handover.

How we build

  • Deploy the vector store on block storage in your environment, not on network file systems where the vendor forbids them.
  • Configure authentication, TLS and access controls before any Open WebUI replica connects to the store.
  • Test reindexing, failover behavior and a knowledge base restore against the Open WebUI replicas you run.

How we hand over

  • Document connection settings, sizing assumptions, network paths and the exact versions deployed.
  • Provide runbooks for backup, snapshot restore, version upgrades and rotating store credentials.
  • Walk your platform and security teams through the configuration so they can review it against their own controls.

How we support

  • Offer ongoing support, upgrades and continuous testing for the vector store as a retainer.
  • Retest the store after Open WebUI or vector database upgrades that touch retrieval behavior.
  • Keep evidence of configuration, access and testing current for internal and external compliance reviews.

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.