Open WebUI with Milvus for large knowledge collections
Milvus is a deliberate choice for teams whose knowledge bases keep growing or whose Open WebUI deployment runs several replicas or workers. Open WebUI's retrieval features support 13 vector databases, and Milvus is one of them, alongside ChromaDB, PGVector, Qdrant and Elasticsearch. The default ChromaDB is not suitable here: the scaling guide warns that it will crash in multi-process setups, so any deployment with several workers or replicas needs an external vector database. Milvus earns its place when you need scale and isolation for large collections, not because it is the default. If your collections are small and you run a single instance, a simpler store may serve you better, and that trade-off belongs in the decision.
This section frames the decision and the questions to answer before you commit. Confirm which Open WebUI release you run and whether the Milvus integration and its settings match that release, since the vector store options and their configuration keys can change between versions. Confirm how your Milvus version is deployed and who operates it, because a dedicated vector database adds a service that needs backups, upgrades and capacity planning alongside Open WebUI, PostgreSQL, Redis and shared file storage. Ask the vendor or your own test environment for the Milvus version your target release supports, and do not assume it from the feature list alone.
The rest of this page works through the Milvus-specific steps: enabling multitenancy mode, using native hybrid search from Milvus 2.5, and the one-time migration that arrived in Open WebUI 0.12. This section does not state Milvus performance figures, because none have been verified for your hardware or data. Before you plan capacity, run a representative load test on your own documents and query patterns, and record the results. Check the Open WebUI scaling guide for the shared-state requirements that apply to every replica, whichever vector store you choose.
Which Milvus configuration fits which collection
This table compares the main Milvus configuration choices for Open WebUI: a shared collection or multitenancy, hybrid search, and where Milvus runs. Read each row against the size of your knowledge collections, your isolation requirements and the team that will operate the database. The main takeaway is that multitenancy and hybrid search both add operational conditions you should confirm before you commit.
| Choice | When it fits | Operations cost | What to confirm |
|---|---|---|---|
| Single shared collection | Small or medium knowledge base, one trust boundary, a team that accepts shared access controls at the application layer | Simplest to back up, monitor and size; one collection to re-index if the embedding model changes | Exact Milvus connection settings in the current Open WebUI documentation |
| Multitenancy mode | Large collections with many separate groups or departments that must stay isolated inside one Milvus instance | More collections and partitions to track; tenant growth changes sizing and query behavior | Whether multitenancy is supported for your Open WebUI version and how tenant identifiers are assigned |
| Hybrid search enabled | Users rely on exact terms, product codes or identifiers alongside meaning-based search | Depends on Milvus native hybrid search, which requires Milvus 2.5 or later; index and memory use grow | Your Milvus version and the Open WebUI setting that switches Milvus hybrid search on |
| Hybrid search left off | Older Milvus versions, or when vector-only retrieval already answers your evaluation questions | Lower index and memory overhead; no version dependency for search features | Whether Open WebUI falls back to its own BM25 path and how that affects answer quality |
| Self-managed Milvus in the same cluster as Open WebUI | Test or small production setups where one platform team already runs Kubernetes and storage | Shared failure domain and shared capacity; upgrades must be scheduled with Open WebUI | Resource requests, storage class and backup approach agreed with the platform team |
| Dedicated Milvus instance | Large collections, separate upgrade cadence or stricter isolation for the knowledge store | Separate monitoring, backups, network policy and upgrade windows to staff and maintain | Network path, credentials handling and who owns on-call response for the vector store |
When Milvus fits compared with other vector stores
A single Open WebUI instance serving a small team is the situation where Milvus adds the most operational weight relative to what it returns. The scaling guide accepts SQLite for single-replica deployments and small teams, provided the database file sits on locally attached SSD or NVMe storage. A pilot is usually better served by keeping the stack small enough that one or two people can run it, and by using the pilot to learn which documents, chunking and embedding choices matter.
- Extra service to run: Milvus brings its own components, storage, monitoring and upgrade cycle, which a pilot team may not have time to maintain.
- Default store first: Test the built-in options against your real document volume. The scaling guide's warning about ChromaDB applies to multi-process setups, so a single-process pilot may not hit it.
- Cheap moment to change direction: Changing the embedding model later means re-indexing every knowledge base, so use the pilot to settle that choice before the collections grow.
- Skills on day two: Pick the store your team can back up, restore and upgrade without outside help.
Before adding Milvus to a pilot, check whether the expected document volume and growth plan justify a second stateful service.
Once Open WebUI runs several replicas or workers, an external vector database becomes mandatory, because the scaling guide warns that the default ChromaDB will crash in multi-process setups. Milvus is a reasonable candidate when collections grow large and many knowledge bases need clear separation. The trade-off is a distributed system your platform team must size, back up and upgrade alongside PostgreSQL, Redis and shared file storage, all of which the scaling guide requires for multiple replicas.
- Shared state first: Redis, PostgreSQL and shared file storage must exist whichever vector store you choose, so Milvus is one dependency among several.
- Isolation model: Confirm how knowledge base separation maps onto Milvus features in the Open WebUI release you run, including multitenancy mode.
- Hybrid search: Native hybrid search in Milvus 2.5 may matter for retrieval quality, but confirm whether your Open WebUI version uses it and measure the result on your own questions.
- Governance of derived data: Vectors are derived from source documents, so they need the same access, retention and deletion rules as the originals.
- Load evidence: Ask for a test on your own document set and query pattern before committing to a sizing.
Confirm these items with your platform and security teams before the architecture review, because they decide whether Milvus is the right store for your production setup.
If the organization already runs Milvus, or another supported store such as Qdrant, pgvector or Elasticsearch, the decision shifts toward reuse. Open WebUI's retrieval features support 13 vector databases, so the choice does not have to be made from scratch. Reusing a store your team already operates usually matters more than any feature difference, but reuse only helps if the existing service meets the governance needs of the knowledge it will hold. Connecting Open WebUI to an existing index is an experimental feature with limits that should be confirmed before relying on it.
- Operational familiarity: Existing runbooks, on-call rotations, backup tests and upgrade practice for Milvus reduce the new operational surface.
- Data governance fit: Check whether the current cluster's tenancy, encryption, access logging and retention settings match the classification of the knowledge that will be stored.
- Other supported stores: Qdrant, pgvector and Elasticsearch are also supported. A team that already runs PostgreSQL well may find pgvector easier to operate, though it has its own sizing and backup questions.
- Migration cost: Moving between stores later usually means re-indexing, so plan the path before the first knowledge base is loaded.
- Shared service limits: A shared Milvus cluster used by other applications needs capacity and isolation agreements that cover Open WebUI's load.
Ask the platform team to show a tested restore for the existing store and confirm how it would handle Open WebUI's collections before choosing it.
How Milvus sits beside Open WebUI, Redis and PostgreSQL
The request starts at a user's browser and reaches one of several Open WebUI replicas through a reverse proxy. Each replica shares PostgreSQL, Redis and shared file storage, so sessions and uploads work from any replica. Document chunks and queries leave the replicas for the external Milvus service, and the embedding endpoint sits inside the trust boundary. Check that every replica points at the same Milvus collections and that the embedding endpoint is reachable only from Open WebUI. This is a schematic, not a reference architecture.
Schematic of request, shared state and retrieval paths for Open WebUI with Milvus.
How to set up Milvus as the Open WebUI vector store
This sequence connects Open WebUI to a Milvus instance you operate and confirms the connection works before staff depend on it. Each step closes with a check you can run, so a fault surfaces on a test knowledge base before users see it. The result is a Milvus-backed retrieval path with verified results and verified separation between tenants.
Confirm the Open WebUI and Milvus versions
The platform engineer reads the release notes for the Open WebUI version you plan to run, starting from the project's GitHub releases page, and records the Milvus version range that release supports. Check the notes for any vector database changes, including those in the 0.12 line, and for migration steps that apply to your current version. If the notes do not state a Milvus range, ask the maintainers or your implementation partner before you choose a Milvus version. Done when a written version pairing, with the release note sections you read, is approved by the platform owner.
Provision Milvus with access control and storage
The infrastructure team deploys Milvus in your environment with authentication enabled, a dedicated service account for Open WebUI, and TLS on client connections. Storage for the Milvus data and its object or disk backend is sized for your expected collection growth, and backups are scheduled and tested before go-live. Decide in advance who may administer collections and who may read the service account credentials. Done when a client on the Open WebUI network segment connects with the service account, and an unauthenticated connection attempt is refused.
Point Open WebUI at Milvus
The platform engineer sets the Milvus connection values through environment variables or the admin settings, using the variable names in the configuration reference for your Open WebUI version. Store the Milvus password in your secrets manager and inject it at runtime rather than writing it into compose files or images. If you run several replicas, confirm PostgreSQL, Redis and shared file storage are in place as the scaling guide describes. Done when the admin settings show Milvus as the active vector database and the startup logs contain no Milvus connection errors.
Ingest a test knowledge base
An administrator creates a non-production knowledge base with a small, known document set. Include several documents with distinctive phrases that appear nowhere else, so retrieval can be checked precisely. Upload the files and wait until Open WebUI reports indexing is complete for every document. Done when the Milvus collection for the knowledge base exists and the number of indexed items is consistent with the documents you uploaded, which you verify against the document list in Open WebUI and the collection statistics in Milvus.
Verify retrieval quality on known questions
The test team writes a list of questions whose correct answers are in the test documents, then asks each one in a chat that uses the knowledge base. Check that the citations point to the expected source document and that the answer reflects its content. If you enable hybrid search, rerun the same list with that setting, because keyword and vector matching can rank results differently. Record every miss with the question, the returned source and the setting in use. Done when all expected sources appear in citations, or each miss has a documented cause and an agreed fix.
Test per-tenant isolation
The test team creates two users in different groups, each with a separate knowledge base containing distinctive phrases. Confirm from the Open WebUI configuration reference how multitenancy mode partitions data in your version, then query each user's knowledge base for the other tenant's phrases. Review Milvus access logs to confirm reads and writes come only from the Open WebUI service account. Done when no query returns sources from another tenant, and the logs show no access paths outside the expected account.
Record the setup and schedule retests
The platform owner documents the version pairing, the Milvus settings without secrets, the service account scope, the backup schedule and the test set. Store the test questions and expected sources so the same checks can run after any Open WebUI or Milvus upgrade. Before you promote the configuration, rerun the full sequence on a staging copy. Done when the runbook is approved and a staging retest passes with results saved for audit.
Security controls for the Milvus connection
A Milvus connection holds every embedding Open WebUI creates from your documents, so it deserves the same controls as the source material. The six controls below cover network path, credentials, encryption, tenant isolation, logging and deletion. Confirm each one against your Milvus version and deployment method before you sign off the design.
Private network path only
Open WebUI should reach Milvus over a private network segment, with no public endpoint on the Milvus gRPC port or its management interfaces. Restrict which hosts or pods can connect with firewall rules or network policies, and confirm the Open WebUI replicas are the only permitted clients. Test the path from outside the segment to confirm it is closed. Check how your Milvus deployment exposes its ports, since defaults vary by install method.
Credentials and rotation
Treat the Milvus connection credential as a secret, stored in your secrets manager and injected into Open WebUI at runtime rather than written into configuration files. Give Open WebUI its own Milvus user with the narrowest privileges that allow collection and index operations. Confirm with your Milvus version how user creation, password changes and role grants work, and plan a rotation procedure that updates every Open WebUI replica together.
Encryption in transit and at rest
Enable TLS between Open WebUI and Milvus, and confirm that the client settings in your Open WebUI version accept the certificate chain you issue. Vector data is derived from your documents, so it is sensitive even though it is not stored as plain text. Encrypt the volumes or object storage that hold Milvus data and its backups, and confirm where the vendor's documentation says encryption at rest is provided by the platform and where you must supply it.
Tenant isolation in multitenancy mode
When multitenancy mode is on, each knowledge collection should map to a tenant boundary that Open WebUI enforces on every query. Test with two users in different groups that one cannot retrieve chunks from the other's knowledge base, including through hybrid search and reranking paths. Confirm how Open WebUI's per-resource permissions and Milvus partitioning or database scoping interact in your release, because a mismatch here is a data exposure, not a performance issue.
Logging retrieval and admin actions
Collect Milvus server logs and Open WebUI audit records for collection creation, deletion, index changes and admin access to vector settings. Record which user and knowledge base triggered each retrieval where Open WebUI exposes that field, and confirm the retention period that matches your policy. Logs can contain query text, so restrict who can read them and check whether they are shipped to a central log store with the same access controls.
Deletion of embedded content
Deleting a user, a knowledge base or a single file in Open WebUI should also remove the matching vectors from Milvus, and the removal should reach backups on your schedule. Test each deletion path in a staging environment and query Milvus directly to confirm no orphaned vectors remain. Ask your Milvus and Open WebUI versions how deletion of a collection differs from deletion of entities inside it, and document the behavior for your privacy team.
Open WebUI featuresWhat the one-time migration in 0.12 changes for existing knowledge
Teams already running Open WebUI with knowledge held in another vector store need to plan a one-time migration before they move to the release that introduces Milvus support. Open WebUI v0.12.0 was published on October 10, 2026 and v0.12.3 followed on October 16, 2026, according to the project's releases page. Use those dates as the start of your planning window, not as a deadline. Confirm which patch release you will land on, because the migration behavior you read about in the notes should match the exact version you deploy.
Take a full backup and prove you can restore it before anything changes. Back up the main Open WebUI database, whether PostgreSQL or a SQLite file, and the file storage that holds uploads and knowledge documents. Then back up the current vector store itself, such as the ChromaDB data directory or the pgvector tables. Restore all three onto a separate copy of the environment and open a knowledge base there. Schedule the backup in a window where no one is uploading files or editing knowledge, because a backup taken mid-write can capture a database and vector store that disagree with each other.
Before you schedule any work, read the 0.12 release notes and confirm four things: the exact migration steps and whether they run automatically at startup or as a separate command, whether existing embeddings move across or must be regenerated, the rollback path if the migration fails partway, and whether the embedding model must stay the same. If re-embedding is required, the cost is mostly compute time and downtime for large collections, so ask your implementation partner for a written scope that states how that work is estimated and who runs it. Record the answers before the change window opens.
Limits to confirm before you commit to Milvus
Milvus adds capability to Open WebUI, but each capability depends on a specific version pairing, a configuration choice or an upgrade behavior. The cards below are the checks to complete with the vendor or in your own test environment before you commit collections, users or data to the design.
Native hybrid search version and setting
Confirm that the Open WebUI release you plan to run supports native Milvus hybrid search, which Milvus added in version 2.5, and find out exactly how it is enabled. Ask whether it is a configuration key, an environment variable or an admin setting, and whether it applies to existing collections or only to newly created ones. Test one knowledge base with and without it before you roll it out.
Open WebUI featuresSupported Milvus version range
Ask which Milvus server versions the Open WebUI connector supports, and whether that range matches the Milvus release your platform team already runs or plans to adopt. A connector that works with the server you test against may not cover the patch or minor release you deploy six months later. Get the range in writing and retest after each Milvus upgrade.
Multitenancy coverage across features
Check whether multitenancy mode covers every knowledge feature your users rely on, such as per-user knowledge, shared team knowledge, file uploads and retrieval from chat. Confirm how tenant isolation is enforced when a user belongs to several groups. Any feature that bypasses the tenant boundary becomes a data exposure risk, so test it with two accounts that must not see each other's data.
Behavior of existing collections on upgrade
Ask what happens to collections created before an Open WebUI upgrade or the one-time migration in 0.12. Confirm whether data is rewritten, reindexed, left in place or made unreadable, and how long a rollback path remains available. Take a backup of the vector store and the Open WebUI database before the upgrade, and record document counts per knowledge base so you can compare after the change.
Fixed embedding dimension per collection
Confirm the embedding model you plan to use, its output dimension and whether a Milvus collection locks that dimension at creation. Changing the embedding model later usually means a new collection and a full re-index of every knowledge base, so the choice is effectively permanent. Ask the vendor whether the dimension is validated at ingest and what error an operator sees when the model changes.
Operational load of a separate service
Milvus is a separate stateful service with its own storage, backup, monitoring, capacity and upgrade needs on top of Open WebUI's database and file storage. Confirm who in your organization will own its backups, restore tests, resource sizing and version tracking, and whether your platform team already runs a supported Milvus deployment. If not, weigh that ongoing effort against a simpler store such as pgvector for smaller collections.
Questions teams ask before adopting Milvus with Open WebUI
How much does a Milvus integration for Open WebUI cost?
The cost has three parts: the implementation work, the infrastructure you run, and any support you buy afterward. If you hire DeployOpen, the work is fixed-scope and quoted from a written scope, and DeployOpen does not publish a price list. Infrastructure stays in your environment: Milvus nodes, object storage for its data, and the compute for the embedding model and for the Open WebUI replicas. Costs rise with the number of knowledge bases, total document volume, retention and backup requirements, high availability needs, and whether you add a retainer for upgrades and testing. Design, configuration, migration and testing are one-time costs. Infrastructure, retainers and upgrade work recur. Ask any quote to separate these lines and state what is excluded.
How long does a Milvus rollout for Open WebUI take?
The timeline depends mostly on what already exists in your environment. The main variables are whether Milvus already runs for you, whether PostgreSQL and Redis are ready for multiple replicas, whether shared file storage is reachable from every replica, how large the document collections are, and how many access groups must be mapped. Retrieval testing against sample questions and the security review of the setup also add time. DeployOpen does not publish a fixed duration. The written scope sets milestones and dates before work starts, so ask for a schedule that lists each dependency on your teams, such as cluster access, identity configuration and approvals.
What does our team need to provide for the work?
Your team provides access and decisions, not only attention. Expect to supply cloud or cluster access in the environment where the work runs, a named owner for the Milvus cluster and its backups, and an identity provider administrator for SSO and group mapping. Someone must approve the embedding model and the document sources, and the business owners of each knowledge base need to supply representative documents and test questions so retrieval quality can be judged. Security and compliance reviewers also need time before production use. Confirm in the scope which environments, accounts and people are needed and how quickly approvals return.
Can our internal team build this without an implementation partner?
Yes, a capable internal team can do this alone if it already runs Kubernetes or Docker Compose, operates stateful services such as PostgreSQL, and can own a vector database in production. The harder parts are sizing Milvus for your collections, setting Open WebUI's vector database configuration correctly, and proving that retrieval quality holds. The Open WebUI scaling guide warns about failure modes in multi-process setups, so the team must understand the replica model before it designs anything. Weigh your engineers' time against the knowledge transfer a partner provides. A partner-led build should end with runbooks your own team can operate.
Do we need Milvus at all for Open WebUI knowledge?
Not always. Milvus fits when knowledge collections are large, when you need stronger isolation between tenants, or when your organization already operates Milvus. Open WebUI's retrieval features support 13 vector databases, including ChromaDB, PGVector, Qdrant, Milvus and Elasticsearch. The default ChromaDB is not suitable for multiple workers or replicas, so a scaled deployment needs an external vector store. For smaller collections, PGVector inside an existing PostgreSQL may be simpler to run, and Qdrant is a strong option when filtering and metadata search matter most. Choose based on collection size, isolation requirements and the operating skills you already have. The Open WebUI features documentation lists the supported options.
How does changing the embedding model affect the Milvus store?
Changing the embedding model forces a full re-index of every knowledge base. Vectors from different models are not comparable, and the vector dimension stored in each Milvus collection must match the new model. Treat the change as a project. Choose the model before loading large collections, test it on a copy of a representative document set, schedule re-embedding with enough compute to finish it, and keep the old index until retrieval tests pass. Confirm how your Open WebUI version handles an embedding change for existing collections before you edit the setting, because the behavior depends on the release you run.
What does the one-time Milvus migration in Open WebUI 0.12 involve?
Open WebUI 0.12 includes a one-time migration for Milvus, so plan it as part of the upgrade rather than as routine maintenance. Read the release notes for the exact version you run, because migration steps change between releases. The project published v0.12.0 on October 10, 2026 and v0.12.3 on October 16, 2026, according to its GitHub releases page. Back up the database and the vector store, rehearse the upgrade on a staging copy, and run test searches against known documents afterward. Confirm from the release notes whether the migration needs downtime.
How DeployOpen works on this
DeployOpen plans, builds, documents and supports Open WebUI with Milvus inside your own infrastructure, so your team keeps control of the vector store, the knowledge data and the access model. The work starts with a written scope that fixes what Milvus holds, who can reach it and how the Milvus and Open WebUI versions are validated together.
How we scope
- Confirm whether Milvus will serve one knowledge collection, many tenants or both, before any build starts
- Record the Open WebUI version, Milvus version and hosting model your environment will run
- Agree in writing which knowledge bases migrate, which are re-ingested and who approves the one-time migration step
How we build
- Deploy Milvus and Open WebUI in your accounts, data centers or air-gapped network with access restricted to the services that need it
- Configure multitenancy and hybrid search settings, then test retrieval quality on a sample set of your own documents
- Test the upgrade path from your current Open WebUI release to the 0.12 line in a staging copy before any production change
How we hand over
- Deliver the written configuration, network map, credential locations and backup and restore procedures for Milvus and Open WebUI
- Provide a runbook for re-indexing, adding collections and reviewing tenant access, written for your platform team
- Walk your engineers through verification steps so they can repeat the checks after handover
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer, scoped to the Milvus and Open WebUI versions you run
- Plan Milvus and Open WebUI upgrades as separate, tested changes with rollback steps written before they start
- Retest retrieval and access controls after each significant change to the vector store or the Open WebUI release

