Switching Open WebUI vector databases

Moving Open WebUI off embedded ChromaDB means re-indexing knowledge bases on a new vector store, not copying vectors, and planning a maintenance window for the cutover.

On this page

Why switching Open WebUI vector databases is a re-indexing job

Most teams reach this point because the default embedded ChromaDB works for one instance and fails once Open WebUI runs several workers or replicas. The move to an external vector store is a re-indexing project, not a data copy, because Open WebUI stores the chunks, embeddings and collection metadata in its own structures, and the target engine builds its own index. The effort depends on three things you can measure before you start: the size of your knowledge bases, whether you keep the same embedding model, and how much downtime your users will tolerate during the rebuild.

The Open WebUI scaling guide is explicit that the default ChromaDB will crash in multi-process setups, so an external vector database is required once you run several workers or replicas. Before you pick an engine, confirm which vector databases your Open WebUI release supports and how it selects the target, since the retrieval settings and environment variables differ by backend. Check this against the release you run, because the supported list changes between versions.

Qdrant, pgvector and Milvus are open-source engines that you can self-host without a license fee, so the recurring cost sits in the infrastructure, storage and the people who operate it. Managed and enterprise options are priced separately. For example, Qdrant offers a free single-node cloud tier, usage-priced and premium cloud tiers, and Hybrid and Private Cloud deployments that are quoted through its sales team. Ask any vendor for a written quote that states the node count, storage, backup and support terms, and whether it covers your own infrastructure.

What maps cleanly from ChromaDB and what does not

This table compares how the ChromaDB data Open WebUI creates maps onto pgvector, Qdrant and Milvus, row by row. Read the rows marked as re-index or confirm first as the work you plan, since vectors cannot be copied across stores and the embedding model must stay the same. Confirm each target's behavior against the retrieval settings in your Open WebUI version before cutover.

ElementpgvectorQdrantMilvus
Vector data from ChromaDBNot portable, re-embed source documentsNot portable, re-embed source documentsNot portable, re-embed source documents
Embedding modelMust match the original model and dimensionsMust match the original model and dimensionsMust match the original model and dimensions
Collection namingTable layout set by Open WebUI, confirm per versionCollection names set by Open WebUI, confirm per versionCollection names set by Open WebUI, confirm per version
Metadata filters on knowledge baseConfirm filter behavior in your Open WebUI versionConfirm filter behavior in your Open WebUI versionConfirm filter behavior in your Open WebUI version
Hybrid BM25 plus vector searchKeyword side runs in Open WebUI, confirm the setting per targetKeyword side runs in Open WebUI, confirm the setting per targetKeyword side runs in Open WebUI, confirm the setting per target
Knowledge base source filesKept in file storage, retained through the switchKept in file storage, retained through the switchKept in file storage, retained through the switch
Shared state for multiple replicasNeeds PostgreSQL in Open WebUI, not a separate storeNeeds external service reachable by every workerNeeds external service reachable by every worker

Documented paths for each target vector store

Each target store has a different configuration path and a different level of documented support for moving data. Open WebUI does not provide a documented vector-to-vector copy between stores, so the cards below separate what is configured in Open WebUI from what can move existing vectors.

PGVector as the target

PGVector runs inside the PostgreSQL instance you may already operate for the Open WebUI database, which keeps the number of stateful services down. Confirm the exact configuration keys and extension setup against the Open WebUI features documentation for your release before you change the vector database setting. Check that the extension is available on your PostgreSQL version and that backups cover the vector tables.

Open WebUI features docs

Qdrant as the target

Qdrant is a separate service with its own storage, API keys and backup needs. The open-source engine is Apache-2.0 licensed and free to self-host, but it needs block storage with a POSIX file system, so it cannot sit on NFS or S3. Plan its authentication before cutover, because self-deployed instances listen on all interfaces with no authentication by default.

Latest Qdrant release
v1.19.2
Qdrant security docs

Qdrant snapshots and migration tool

For Qdrant, the snapshot and migration tool documentation is the only documented route for moving stored vectors rather than regenerating them. Snapshots capture a collection on one cluster, but you still need to confirm that the embedding model, dimensions and collection settings in Open WebUI match the snapshot. Test a restore on a non-production instance first.

Qdrant snapshot docs

Milvus as the target

Milvus is listed among the supported vector databases in the Open WebUI features documentation, so the configuration path exists. Milvus has its own deployment, storage and access model that your platform team must run and back up. Confirm the setup keys, connection details and any authentication settings for your Open WebUI release, because the steps are not reproduced here.

Open WebUI features docs

Re-indexing from source documents

Open WebUI does not provide a documented vector-to-vector copy between stores, so the default route is re-indexing. Keep the original uploaded files, the extraction engine settings and the embedding model unchanged, then trigger re-indexing into the new store. Plan for embedding compute time and for knowledge bases that users have changed since the last index.

Planning the cutover window

Re-indexing runs on the source data, so the cutover window depends on how many knowledge bases exist and how long they take to embed, not on the vector store itself. Freeze uploads to affected knowledge bases, record the old vector store settings for rollback, and verify retrieval against a fixed set of test questions before reopening access.

How the parallel run and cutover are sequenced

This sequence moves Open WebUI knowledge retrieval from embedded ChromaDB to an external vector store without losing knowledge bases or users' access during the work. Each step produces a check that gates the next, so the cutover happens only after retrieval results are verified and a rollback path is proven.

  1. Inventory knowledge bases and source files

    List every knowledge base, its owner, the collections behind it, the source files and their storage locations, and the embedding model and chunking settings used to index each one. Confirm which knowledge bases are still in use and which are stale. Also record the Open WebUI version, the current vector database setting, and whether the deployment runs one replica or several. The output is a written inventory signed off by the knowledge base owners, because re-indexing only reproduces what the source files and settings describe. Ask the vendor or your own administrators to confirm that every source file is still reachable from the running instance.

  2. Stand up the target vector store

    Deploy the target store (pgvector, Qdrant or Milvus) in the infrastructure you control, with authentication and TLS enabled before any data arrives. Qdrant, for example, listens on all interfaces with no authentication by default, so access controls must be set during deployment. Confirm the storage type the vendor requires; Qdrant, for instance, needs block-level storage and cannot use NFS or S3. The check that closes this step is a connectivity and authentication test from an Open WebUI test instance, with the credentials stored in your secrets manager rather than in plain configuration.

  3. Pilot re-indexing on a copy of one knowledge base

    Choose one knowledge base that represents your typical content, such as a mix of PDFs and text documents. Run it against a copy of the production data in a non-production Open WebUI instance configured for the target store, then re-index it from its source files. Do not copy vectors out of ChromaDB, because the embedding and chunking settings must match what the new index expects and the source files are the reliable input. Confirm that the chunk count, search behavior and access permissions match the original. Record any extraction or indexing errors so they can be fixed before the full run.

  4. Re-index all knowledge bases while ChromaDB serves users

    Once the pilot passes, re-index the remaining knowledge bases into the new store while the production instance continues to read from ChromaDB. Keep the source files unchanged during this window, or record changes so they can be re-indexed later. Track progress per knowledge base against the inventory from the first step. The check is that every inventory item reports a completed index with a chunk count, and that the failures are either fixed or documented with an owner. Users see no change during this step because production retrieval still uses the original store.

  5. Run a parallel comparison of retrieval results

    Build a fixed set of test questions drawn from real user needs for each knowledge base, and run each question against the ChromaDB-backed and the new-store-backed instances. Compare the retrieved sources, their ranking and the final answers, and note where the retrieval set differs. Involve the knowledge base owners in judging the results, since they know which answers are correct. Agree on acceptance criteria before the comparison starts, and record the outcome for each knowledge base. The step is done when every knowledge base has an accepted result or a documented exception.

  6. Prepare the Redis and PostgreSQL dependencies for multiple replicas

    If the deployment will run multiple replicas, the same plan must cover the shared state services. Open WebUI's scaling guide requires PostgreSQL instead of SQLite for multi-instance deployments and Redis for sessions, websocket connections and application state, plus shared file storage so uploads and knowledge stay reachable from every replica. Without Redis, signing out does not revoke tokens, which remain valid until they expire, by default after 4 weeks. Confirm that these services are in place and tested before the cutover window, because a replica that cannot reach them will fail in ways that look like retrieval problems.

  7. Execute the cutover in a planned window with rollback ready

    Schedule a maintenance window agreed with the business owners. Before the window opens, take a backup of the Open WebUI database and data directory and keep the ChromaDB data untouched so it remains a working fallback. During the window, stop writes to knowledge bases, switch the vector database setting to the new store, restart the instances, and run a smoke test of retrieval on every knowledge base. Rollback means reverting the setting to ChromaDB and restarting, which is only safe if the ChromaDB data was not modified. The step is complete when the smoke tests pass and the rollback procedure has been rehearsed or reviewed by the operator.

  8. Decommission ChromaDB data after a stable period

    Keep the ChromaDB data available until the business owners confirm that retrieval is stable in production and the rollback window has closed. Then remove the ChromaDB data directory according to your retention policy, and record the date, the owner and the backup location in the change log. Remove the unused ChromaDB configuration from the deployment files and secrets. The output is a closed change record showing that the new store serves all knowledge bases, that the old data is removed or archived under policy, and that the parallel run results are retained as evidence.

How Open WebUI re-indexes knowledge bases into a new store

Knowledge base content is not moved between vector stores. It is rebuilt from the source files. The vectors in ChromaDB are derived data: each uploaded file was extracted, split into chunks, embedded with a specific embedding model and written to the store. When you switch to pgvector, Qdrant or Milvus, the practical path is to point Open WebUI at the new backend and re-run that pipeline against the original files, which must still be present in the file storage the instance uses. Before you start, confirm that the uploaded files and the knowledge base records are intact on the source system, because a missing source file cannot be re-indexed and will simply be absent from retrieval afterward.

The most important rule is to keep the embedding model unchanged during the switch. Vectors produced by one embedding model are not comparable with vectors from another, so changing the model at the same time as the database turns a storage migration into a full rebuild with new retrieval behavior. Record the embedding engine, model name and any related settings from the source instance, and confirm them in the admin settings of the target before triggering indexing. If you do want a different model, treat it as a separate project with its own test set, since every chunk must be re-embedded and the results will not match the old ones.

Even with the same model, retrieval results can shift after a rebuild because the store, its index parameters and the ordering of ingested chunks can differ. Recheck the settings that shape the final answer set: hybrid BM25 plus vector search, the top-k values, the relevance threshold and cross-encoder reranking. Use a fixed set of test questions with known source documents, run them on the old and new configurations, and compare which chunks come back. Ask your Open WebUI and vector store documentation owners to confirm how the target backend's index is configured for your expected knowledge base size, since those options differ by product.

What drives the cost and duration of the switch

This table lists the cost and schedule drivers for moving Open WebUI from embedded ChromaDB to a new vector store, and shows who pays for each one and whether it is one-time or recurring. Read it before asking for a quote, because the same target store can cost very different amounts depending on how many knowledge bases you re-index and how long you run both stores in parallel.

DriverWhy it changes cost or effortHow to keep it down or what to ask for
Number and size of knowledge basesEvery knowledge base is re-extracted, re-chunked and re-embedded, so total work grows with document count and volumeInventory collections and document counts first; ask the quote to price re-indexing per knowledge base
Document types and extraction engineScanned PDFs, mixed formats and OCR need more processing time and may need a different extraction engine than the one in use todaySort content by type; confirm which extraction engine the quote assumes and whether OCR is included
Embedding model choice and speedEmbedding is usually the largest compute cost in re-indexing, and changing the model means every vector is regeneratedKeep the existing embedding model unless quality requires a change; ask for measured throughput on your corpus
Target store: self-hosted QdrantSoftware is free to self-host under Apache-2.0, but you pay for compute, block storage, backups and operator timeAsk for sizing based on vector count and dimensions, plus the cost of your own cluster administration
Target store: Qdrant Cloud or Hybrid CloudManaged tiers are usage-priced, and Hybrid Cloud and Private Cloud are quoted through Qdrant sales, so the bill depends on tier and scaleRequest a written quote from Qdrant sales with expected vector volume, uptime requirement and whether SSO or private links are needed
Target store: Milvus or pgvector on existing PostgreSQLpgvector reuses an existing PostgreSQL service, while Milvus adds a separate system to deploy and operateConfirm whether your PostgreSQL can carry the vector load; ask the integrator to price Milvus as a new platform if chosen
Replicas and high availabilityMulti-replica Open WebUI needs an external vector store, and Qdrant distributed mode needs at least three nodes for production quorum, which multiplies compute and storageAsk for node count, replication factor and storage per replica, since a replication factor of 2 doubles storage
Required downtime windowLonger cutover windows raise the cost of staffing and the business impact of outages, and affect whether a parallel run is practicalAgree the acceptable window in writing and ask how the plan keeps the old ChromaDB store available until cutover
Parallel run durationRunning old and new stores side by side means duplicate hosting and extra checks on answer qualitySet an exit criterion for the parallel run and ask the quote to state who pays for each day it continues
One-time migration workCovers planning, re-indexing, retrieval testing, cutover and rollback rehearsal; paid once per migrationAsk for a fixed-scope breakdown with deliverables, acceptance tests and any re-indexing reruns included
Recurring hosting and upkeepCovers compute, storage, backups, upgrades of the vector store and Open WebUI, monitoring and access reviews; paid every periodAsk for a monthly operating estimate and whether upgrades and continuous testing are covered by a retainer

What usually goes wrong during a vector store switch

Most failed vector store switches come from a handful of predictable mistakes: mixing embedding models, exposing a new service, running it on the wrong storage, and skipping the identity and rollback steps. Each card below names one failure and the check that prevents it before cutover.

Changing the embedding model mid-migration

If the new vector store is populated with a different embedding model than the one used for the original index, queries will compare vectors from two incompatible spaces and return poor matches. Keep the embedding model and its settings fixed for the whole move, and record them in the change plan. Re-index every knowledge base with that same model, then run a set of known test questions against old and new results before any model change is considered.

Open WebUI features

Unsecured Qdrant on all interfaces

A self-deployed Qdrant instance listens on all network interfaces and has no authentication configured by default. Anyone who can reach the port can read or delete vectors, and vectors can reveal the content of source documents. Bind the service to the private network only, enable an API key before loading any data, and enable TLS for REST and gRPC. Confirm the firewall rules from the Open WebUI host before the first import.

Qdrant security docs

Qdrant placed on NFS or S3

Qdrant needs block-level storage with a POSIX-compatible file system and cannot run on network file systems such as NFS or object storage such as S3. Placing its data directory on those backends can produce unreliable writes and failed starts. Provision local SSD or NVMe volumes, and confirm the storage class with the platform team before the import begins. Object storage remains suitable for snapshots and backups, not for live Qdrant data.

Qdrant installation docs

Redis missing during cutover

Without Redis, signing out of Open WebUI does not revoke tokens, which stay valid until they expire, by default after 4 weeks. During a cutover, when sessions are reset and users are asked to sign in again, a token copied from the old environment can remain usable. Deploy Redis as the shared session store before the new stack serves users, and check that a sign-out invalidates an existing token in a test session.

Retrieval quality drift

Even with the same embedding model, changes in chunking, metadata fields, distance metric or search settings can shift which passages are returned. Users may notice answers that are plausible but cite the wrong documents. Freeze chunk size, overlap and metadata before re-indexing, and compare a fixed question set against the old system with named reviewers who approve the results. Record the reviewed answers so later tuning can be measured.

Rollback that is not written down

Teams often plan the forward move but not the return path. If the new store fails after users have added knowledge bases, the old ChromaDB data may be stale or missing those changes. Write down the exact freeze point, keep the original data directory untouched until acceptance, state who decides to roll back and within what window, and rehearse the reverse switch on a copy. Confirm that the Open WebUI database and the vector store are restored to the same point.

Questions buyers ask before switching Open WebUI vector databases

What does it cost to switch Open WebUI vector databases?

The cost is mostly labor, plus the infrastructure for the new vector store, and no researched figure covers the total. The main cost components are the migration work itself (inventory, re-indexing, verification, cutover and rollback planning), the target infrastructure (a PostgreSQL instance with the pgvector extension, or Qdrant nodes with block storage), and the downtime or parallel running you schedule. Most of the cost is one-time. Recurring costs come from the infrastructure you keep running and any support retainer. Costs rise with the number of knowledge bases, the size of the document corpus, the number of embedding models in use and how many replicas you run. Ask any provider for a written quote that lists each knowledge base in scope, the target database, the downtime window and the acceptance tests. For Qdrant managed plans, get pricing from Qdrant sales. Enterprise licensing questions go to Open WebUI sales.

How long does a vector database switch take?

Duration depends on the corpus size, the number of knowledge bases and the downtime window you can accept, and no researched figure gives a general timeline. Most of the calendar time goes to inventory, a test run on a copy of the data, re-indexing and verification, not to the configuration change itself. Re-indexing time scales with how many documents must be re-embedded and how fast your embedding model runs on your hardware, so measure it on a representative knowledge base before you commit to a window. Plan for a rehearsal, a cutover window and a rollback path. Ask the people doing the work to show a timed rehearsal and a written schedule with checkpoints.

Can vectors be copied from ChromaDB to the new database?

In general, no. Plan to re-index the source documents into the new database rather than copying stored vectors across. The reason is that a vector store holds embeddings produced by a specific embedding model and its settings, and the target store must use the same model and dimension to give consistent results. Re-indexing from the original files also lets you confirm that every knowledge base still maps to its source documents, which a raw vector copy does not check. Keep the original files, the embedding model name and version, and chunking settings recorded before you start. Confirm the exact export options with the vendor documentation for your Open WebUI release before you assume any export path exists.

Can our own team switch the vector database in-house?

Yes, if your team has the skills to operate the target database and to run Open WebUI against it, and many do. The work is mostly careful sequencing: configure the external store, make Open WebUI reachable to it, re-index each knowledge base, check retrieval quality on test questions, and cut over. The hardest parts are usually planning the downtime, verifying that every knowledge base came across and having a tested rollback. Ask whether your engineers have run the target database in production, whether they have a test environment that matches production and who signs off the cutover. An outside partner can take on the scoping, the rehearsal and the verification if those steps are not in your team's capacity.

What do we need to provide for the switch?

You need to provide a knowledge base inventory, access, a downtime window and a named sign-off owner. The inventory lists each knowledge base, its owner, its source documents, the embedding model and chunking settings in use and the number of documents. Access means credentials for the Open WebUI host, the database server, the target vector store, the object storage holding uploads and any cloud accounts involved. The downtime window must be agreed with the teams whose users depend on retrieval. Sign-off should name who accepts that retrieval works on agreed test questions and who approves the cutover and the rollback decision. Written acceptance criteria prevent disputes after cutover.

Does Qdrant Cloud or self-hosting change the effort?

Yes. Self-hosting shifts more work to you, and managed hosting shifts it to the provider, but the re-indexing step stays the same. With self-hosted Qdrant you own the cluster, storage, backups, upgrades and security settings. Qdrant's documentation says self-deployed instances listen on all interfaces with no authentication by default, so you must configure API keys, TLS and network restrictions before connecting Open WebUI. Qdrant requires block storage with a POSIX file system, and it cannot run on NFS or S3, so confirm your storage before choosing a node layout. Qdrant distributed mode needs at least three nodes for production quorum, and a replication factor doubles storage at factor 2. Qdrant Cloud has tiers with different uptime commitments and features, and Hybrid Cloud and Private Cloud are priced through Qdrant sales. Get managed pricing from Qdrant sales.

Do we need an Open WebUI Enterprise License for this work?

Not for the vector database switch itself. Open WebUI's retrieval features support several vector databases, including ChromaDB, PGVector, Qdrant and Milvus, and the switch is a configuration and data-handling exercise. The Open WebUI License requires branding to stay unchanged in deployments above 50 users in any rolling 30-day period unless you hold an enterprise license or written contributor permission, and that rule applies to your deployment regardless of the switch. An Enterprise License adds white-labeling and dedicated support options. Ask Open WebUI enterprise sales for pricing with your expected seat count, and check the license terms with your legal team before you decide.

Why does the default ChromaDB need replacing for multi-replica setups?

The Open WebUI scaling guide warns that the default ChromaDB will crash in multi-process setups, so an external vector database is required when you run several workers or replicas. If you run one replica for a small team, the embedded store may still work, but the scaling guide treats it as a constraint once concurrency grows. The switch also gives you a store that your backup and monitoring processes can reach independently of the application host. Decide the target database before you add replicas, because re-indexing twice costs more time and more risk than doing it once.

How the parts fit during the switch

The diagram starts with source documents entering Open WebUI's extraction and embedding pipeline, which writes new vectors to the target vector store while the existing ChromaDB stays in place as the rollback path. Open WebUI replicas share PostgreSQL for application data and Redis for sessions and websocket state, so every replica reads the same knowledge base once cutover happens. Check that the new store is the only write target before retiring ChromaDB, and that every replica points at the same store.

Re-indexing flows into the target store while ChromaDB remains available for rollback.

How DeployOpen works on this

DeployOpen scopes the switch from the existing Open WebUI installation, including which knowledge bases, users and retrieval settings must carry over. We then build the target vector store inside your infrastructure, re-index knowledge bases from source files, test retrieval against your own queries, and hand over the runbook, the cutover plan and the rollback steps in writing.

How we scope

  • Inventory every knowledge base, its source files, embedding settings and the users who depend on it.
  • Agree the target vector database, where it runs and who operates it before any build starts.
  • Set the downtime window, cutover steps and rollback conditions in a written, fixed-scope agreement.

How we build

  • Deploy the chosen vector store in your infrastructure with access controls and storage that meet its documented requirements.
  • Re-index knowledge bases from original files in a staging copy of Open WebUI, not by copying vectors.
  • Compare retrieval results on a set of representative questions agreed with your team before cutover.

How we hand over

  • Deliver a runbook covering configuration, re-index steps, cutover checks and the rollback procedure.
  • Document the connection settings, credentials handling and the backups kept for the new vector store.
  • Walk your platform and operations staff through the cutover and the post-switch verification checklist.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the switch is complete.
  • Review the vector store version and Open WebUI release changes before each planned upgrade.
  • Confirm with your team which support scope, response expectations and maintenance windows apply after handover.

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.