Connecting Dify knowledge bases to an external Qdrant cluster
Dify selects its vector database through the VECTOR_STORE setting and reads Qdrant connection values from QDRANT_ settings, so moving knowledge bases to an external cluster is a configuration change, not a plugin install. The bundled qdrant service in Dify's Docker Compose file is started for use only when VECTOR_STORE is set to qdrant, which means a team can run Dify with Weaviate (the default) or another store and never touch that container. Teams that have outgrown the bundled container need to decide, before cutover, which Qdrant deployment will hold their knowledge base vectors and who operates it.
The bundled service ships with a default API key in the Compose file. That key is a published default, not a secret, and it must not be carried into production. Replace it with a key generated for the external cluster, store it in your secrets manager, and confirm that the Qdrant instance itself has authentication enabled, because a self-deployed Qdrant has no authentication configured until you add it. Check the key and endpoint settings against the current Dify environment reference and the Qdrant security documentation for the version you run, since Dify's configuration keys can change between releases.
Treat the Dify host and the Qdrant cluster as one system for planning purposes. Dify's SSRF proxy blocks outbound requests to internal and private IP ranges by default, so confirm that the Qdrant address you configure is reachable from the Dify API and worker containers under those rules rather than assuming the proxy will allow it. Decide early whether Qdrant traffic runs over gRPC or REST, whether TLS is required inside your network, and who owns the cluster's snapshots and upgrades, because those answers shape the configuration and the move plan that follow.
What you need before changing Dify's vector store
Switching Dify from its bundled vector store to an external Qdrant cluster touches the Dify release you run, the host it runs on, the Qdrant cluster, the network between them and the credentials that connect them. Confirm each item below before you edit any configuration, because a change made to a running knowledge base is harder to reverse than one made to a fresh install.
Dify release and Compose version
Confirm the exact Dify release you run and read its release notes before editing VECTOR_STORE or the QDRANT_ settings, because the variable names are read from the release's own configuration. Dify minor releases arrive roughly monthly, so a configuration copied from an older guide may not match. Docker Compose 2.24.0 or later is required for the Docker Compose deployment, so check docker compose version on every host that runs the stack.
Host sizing for the Dify stack
The Dify Docker Compose deployment needs at least 2 CPU cores and 4 GB of RAM before you add an external vector store. That minimum covers the api, worker, web, plugin daemon, PostgreSQL, Redis, Nginx, the code sandbox and the SSRF proxy, and it does not cover Qdrant. Confirm the host has headroom for the embedding and indexing load that knowledge base uploads will create.
- Stated minimum
- 2 cores, 4 GB
Qdrant cluster on block storage
Qdrant must run on block-level storage with a POSIX-compatible file system, and it cannot run on NFS or S3-style object storage. SSD or NVMe drives are recommended. Confirm the disks your Qdrant nodes use before you point Dify at them, because a cluster built on a network file system is a deployment that Qdrant's own installation rules do not support.
Qdrant installation docsThree-node cluster for quorum
Qdrant's distributed deployment docs recommend at least three nodes for production so quorum survives a node failure. Plan the shard count as a multiple of the node count, and set the replication factor deliberately, since a factor of 2 doubles stored data. A single-node Qdrant can work for testing, but it has no node-failure tolerance, so treat it as a non-production setup.
- Recommended minimum
- 3 nodes
Network routes from Dify to Qdrant
The Dify api and worker containers must reach the Qdrant REST and gRPC ports, so check routes, DNS names and firewall rules between the Compose host and every Qdrant node. Qdrant listens on all interfaces by default with no authentication, so restrict the ports to the Dify hosts. Confirm that the SSRF proxy settings in Dify do not block this internal traffic.
Certificates and API keys
Create the Qdrant API key Dify will send, and decide whether it is an admin key or a read-only key for the collections Dify uses. If you enable TLS for gRPC, prepare the certificate chain and confirm that the Dify containers trust the issuing CA. Store the key in your secrets manager and plan rotation, since the key value will sit in Dify's environment configuration.
Qdrant security docsHow to configure Dify for an external Qdrant cluster
This sequence points a Dify installation at a Qdrant cluster you run, so knowledge base vectors are written outside the bundled container. Each step ends with a check you can run on the Dify side or the Qdrant side before you move on.
Create a dedicated Qdrant API key for Dify
The Qdrant administrator creates a separate API key for Dify on the external cluster, so Dify's credentials can be rotated and revoked without touching other clients. Dify has to create collections and write vectors, so a read-only key will not be enough. Qdrant supports admin and read-only keys, and JWT-based access with per-collection read or write permissions since v1.9.0. Confirm in the Qdrant security documentation which permission model your cluster version supports. Check: a collections request sent with the new key succeeds, and the same request with a wrong key is rejected.
Confirm the QDRANT_ settings for your Dify release
The engineer who manages the Dify deployment opens
api/configs/middleware/vdb/qdrant_config.pyin the Dify release tag you run and lists everyQDRANT_setting with its default. Cross-check the names against the Dify environment variable reference before you edit anything, because key names can change between releases. Note which settings the file exposes for the URL, the API key, the gRPC option and the timeout, since those are the values this sequence depends on. Check: each key you plan to set appears in the file for that exact tag, and the reference describes it the same way.Set the vector store and Qdrant values
Set
VECTOR_STOREtoqdrantin the environment file that Docker Compose reads for the Dify stack, then add the Qdrant URL and API key under theQDRANT_names you confirmed in the previous step. Keep the API key out of version control and out of shared chat or tickets, and restrict read access to the file on the host. Use the URL that the Dify api and worker containers can reach over the network, which may differ from the address you use in a browser. Check: rendering the Compose configuration shows the expected values forVECTOR_STOREand the Qdrant settings, with no leftover default key.Stop the bundled Qdrant service
Dify's Compose file includes an optional
qdrantservice that uses thelanggenius/qdrant:v1.8.3image and a default API key, and it is used only whenVECTOR_STOREis set toqdrant. Check whether your deployment or profile starts that service, and stop it or remove its block so nothing listens with the default key on the Dify host. Keep the other core services, including Weaviate, running unless your own design says otherwise. Check:docker compose psshows no running Qdrant container from the Dify stack, and the default key is not used anywhere in your configuration.Restart the api and worker services
Restart the
apiandworkercontainers so they read the new vector store settings, then check their startup logs for connection or authentication errors against the Qdrant URL. If the logs show errors, correct the URL, the port, or the API key before going further. The Compose stack also depends on a supported Docker Compose release for your Dify version, so confirm that version is in place before the restart. Check: the api logs show a clean startup, the worker reports ready, and the Dify console loads in a browser.Test the knowledge base and confirm vectors land
Create a test knowledge base in Dify, upload a small document and wait until its indexing job reports completion. Then list the collections on the Qdrant cluster with the Dify key or an administrator key and confirm that a new collection exists, with a point count that matches the chunks Dify indexed. Changing the vector store does not by itself move vectors that were already indexed elsewhere, so plan existing datasets as a separate task and confirm how your Dify release handles them. Check: the indexing job finishes in Dify, and the collection and its points are visible on the Qdrant side.
How Dify talks to Qdrant and where the replication factor applies
Dify's api service answers retrieval queries from knowledge bases, and its worker service indexes uploaded documents. Both open network connections to Qdrant, so the external cluster must be reachable from both containers, and the settings must be in the environment file that starts them. Dify selects the backend with VECTOR_STORE set to qdrant, then reads the QDRANT_ settings for the endpoint and credentials. Confirm the exact key names, the timeout and any gRPC switch and port in your Dify version against the Dify Qdrant configuration file before you write them down. REST is the simpler path to test, because a plain HTTP call confirms reachability and the API key. Consider gRPC only when Dify exposes a gRPC option, the Qdrant nodes have it enabled, and your team can manage TLS on that second listener. Qdrant supports TLS for both REST and gRPC from v1.2.0.
The replication factor is a Qdrant setting applied to each collection, not something the Dify console manages. Dify creates collections through the Qdrant client, so the factor reaches the cluster only if your Dify version passes one through. Confirm whether your version exposes a replication setting for the collections it creates. If it does not, decide how the factor will be applied and verify it on each collection through Qdrant's API after Dify creates it. A factor of 2 keeps two copies of the data, so storage doubles, and disks should be sized for the raw vectors, payloads and indexes multiplied by the factor. Dify does not replace Qdrant's distributed mode. Shard placement, replication and quorum are handled inside the cluster, and the three-node minimum that the Qdrant distributed deployment docs recommend for quorum to survive a node failure applies whether Dify or another client is connecting.
Point Dify at a stable endpoint, such as a load balancer in front of the cluster nodes, so retrieval can continue when one node goes down. Confirm how Dify behaves when the configured address stops responding, since a client may keep using the address it was given at startup. Before go-live, create a test knowledge base, check the collection's replication factor and shard layout through Qdrant's API, stop one node, and run a retrieval query. Record the results with the cluster configuration so the failover plan is verified and the next Dify upgrade has a baseline to compare against.
Where the Dify containers, Qdrant nodes and trust boundaries sit
The diagram starts at the Dify api and worker in the application network, which reach the sandbox and the vector store through their own settings. The hand-off to Qdrant crosses a boundary where the API key and TLS apply, into a separate data network holding the three Qdrant nodes. The bundled qdrant service is shown as removed, so Dify should never send vector traffic to it. Check that the API key and TLS are enforced at every node, and that the data network accepts traffic only from the Dify application network.
Dify reaches an external Qdrant cluster across an API key and TLS boundary.
Dify settings mapped to Qdrant values
This table maps each Dify setting that points at Qdrant to the Qdrant value it refers to, who sets it, and where to verify it. Read it before changing any value, because the Dify side and the Qdrant side must agree on URL, port, key and collection behavior. The main takeaway is that Dify controls collection names, so access rules should follow the naming pattern your Dify release actually creates.
| Dify setting | Qdrant value it refers to | Owner who sets it | Where to verify |
|---|---|---|---|
| VECTOR_STORE | Selects Qdrant as the backend for knowledge base vectors. Dify uses its bundled Weaviate by default. | Platform team running the Dify deployment | Dify environment variable reference, then a test knowledge base upload |
| QDRANT_URL | Address of your separately managed Qdrant cluster, including scheme and port, reachable from the Dify api and worker containers. | Platform team, with input from the Qdrant cluster owner | Network route from the Dify containers, then a Qdrant REST health check |
| QDRANT_API_KEY | Must match a Qdrant API key with rights to create and write collections. Do not reuse the bundled default key. | Qdrant administrator issues it, Dify operator stores it | Qdrant security docs for key roles, then a failed call with a read-only key |
| QDRANT_GRPC_ENABLED and QDRANT_GRPC_PORT | Whether Dify uses gRPC and the port that Qdrant exposes for gRPC. Qdrant supports TLS on gRPC, so the port must be open end to end. | Platform team and network team | Qdrant installation and security docs, then the Dify Qdrant configuration file for supported keys |
| Collection names created by Dify | Qdrant collections holding knowledge base vectors, named by Dify, not by you. Access rules must match these names. | Dify sets the names, Qdrant administrator writes the rules | List collections on the cluster after creating a test knowledge base, and confirm the pattern in your release |
| Replication and shard settings | Qdrant replication factor and shard count applied to collections created by Dify, which affect storage and failure tolerance. | Qdrant cluster owner, since Dify may not expose these values | Qdrant distributed deployment docs, then collection info after a test write |
| Existing datasets | Vectors already stored in Weaviate or the bundled Qdrant container, which do not move automatically when VECTOR_STORE changes. | Dify operator with the data owner | Re-index a test dataset and compare chunk counts before switching production |
Moving existing Dify datasets from Weaviate or the bundled Qdrant
Datasets indexed in Dify's default vector store were written to Weaviate, which means the vectors live in a different system with its own schema and collection naming. Dify stores the document text, chunks and metadata in its metadata database and file storage, and the vector index is what Weaviate holds. Switching VECTOR_STORE to Qdrant points new indexing and retrieval at the Qdrant cluster, but it does not by itself copy the existing Weaviate vectors across. The supported and confirmed path is to re-index the knowledge base in Dify after the switch, so Dify writes the vectors through its own Qdrant integration.
- No direct copy is assumed: this guide does not confirm a supported export from Weaviate into Dify's Qdrant collections, so plan for re-indexing.
- Source material must still exist: re-indexing needs the original documents in Dify's file storage and metadata database, so confirm they were kept and backed up.
- Embedding model stays the same: keep the same embedding model and settings used originally, or results will differ from the existing dataset.
- Old Weaviate data stays until verified: keep the Weaviate volume until retrieval on the Qdrant side is tested against representative queries.
- Qdrant migration tool does not apply here: the Qdrant Migration Tool supports Weaviate as a source, but Dify's own collection layout and embeddings should be rebuilt through Dify.
Before cutover, confirm with Dify's documentation or your own test instance that re-indexing produces the expected chunk count and retrieval results.
If Dify already ran with the bundled qdrant service, the vectors sit in the container's storage volume at the bundled version (the image is langgenius/qdrant:v1.8.3). Moving them to a separately managed cluster is a Qdrant data movement problem and a version problem at the same time. Qdrant snapshots are tar archives of a collection on one node, and a snapshot can be restored only to a cluster running the same minor version or the next minor version. Confirm the source version before choosing a path, because a snapshot taken from v1.8.x cannot be assumed to restore into a current cluster that is several minor versions ahead.
- Check the source version first: confirm the exact running version in the bundled container before planning any snapshot restore.
- Snapshot restore is version-bound: Qdrant allows restore only to the same or next minor version, so step through intermediate versions or re-index if the gap is too large.
- Collection names must match: Dify expects its own collection naming, so a restored collection must match what Dify's configuration will look for.
- Single-node snapshots only for full storage: full-storage snapshots work only on single-node deployments, so use collection snapshots when the target is a cluster.
- Migration tool as a fallback: the Qdrant Migration Tool streams data in batches and resumes interrupted runs, but Qdrant is the source only in the reverse sense, so confirm supported source handling with Qdrant before relying on it.
Where the version gap or collection layout cannot be confirmed, re-indexing from Dify's source documents is the lower-risk path.
Some datasets should be re-embedded instead of moved, even when a copy path exists. Re-embedding applies when the embedding model is changing, when chunking settings need to change, or when the old vectors came from an unknown or unmanaged model. In these cases the vectors do not match the new query embeddings, so retrieval quality can fall silently. Re-embedding through Dify keeps the document, chunk and vector records aligned in one workflow and avoids carrying forward stale or mismatched index entries.
- Change of embedding model: vectors from different models are not comparable, so the whole dataset must be re-embedded.
- Change of chunking: new chunk boundaries produce new vectors, so re-indexing is required.
- Unknown provenance: if the original embedding configuration is undocumented, rebuild rather than trust the old index.
- Scheduling and cost: embedding calls are billed by your model provider, so estimate token volume and request a provider quote before starting; this is a cost you pay the provider, not Qdrant or DeployOpen.
- Staged rollout: re-index one knowledge base at a time and compare answers with the old index before retiring it.
Confirm the embedding model name, dimensions and chunk settings for every dataset before starting, and record them alongside the new Qdrant collection.
Securing the Dify to Qdrant connection
Dify's bundled Qdrant service ships with a default API key, and a self-hosted Qdrant instance ships with no authentication, so the connection between the two needs deliberate controls. The cards below cover the key, the access scope, the transport, the network path, the Dify settings that must stay intact, and the audit trail. Confirm each control against the Qdrant version you run before you treat it as in place.
Replace the default bundled key
Dify's compose file includes an optional Qdrant service with a default API key, which applies only when VECTOR_STORE is set to qdrant. When you point Dify at an external cluster, that bundled key should not be carried over. Generate a new key for the Dify connection and store it in your secrets manager, then confirm that no environment file or compose override still contains the default value.
Scope keys to knowledge base collections
Admin keys can change any collection, which is more access than a retrieval workload needs. Qdrant offers admin and read-only API keys, and JWT-based granular access control with per-collection read or write permissions. Where your Qdrant version supports JWT scoping, limit the Dify credential to the knowledge base collections and confirm that a write-scoped token cannot reach unrelated collections.
- JWT scoped access
- v1.9.0
Encrypt the connection with TLS
Dify sends embeddings, document chunks and search queries to Qdrant, and those payloads often contain sensitive business text. Qdrant supports TLS for REST and gRPC, so enable TLS on the port Dify uses and confirm which protocol the Dify version expects. Check that certificates are issued by a CA your Dify containers trust, and plan rotation before expiry.
- TLS support added
- v1.2.0
Restrict Qdrant to the Dify network
A self-deployed Qdrant instance listens on all network interfaces by default. Place it on the same private network as the Dify api and worker containers, and block direct access from user networks and the internet with firewall rules or security groups. Confirm the bound address and that the ports for REST and gRPC are reachable only from the Dify hosts and your administration path.
Qdrant security docsKeep SECRET_KEY and SSRF_PROXY intact
Changing SECRET_KEY after deployment logs out all users, and it is also used to encrypt OAuth credentials, so it must be backed up with the rest of the Dify configuration. Separately, SSRF_PROXY settings route outbound requests through a proxy that blocks internal and private IP ranges. Do not disable the proxy or point Qdrant traffic through it to work around connection errors, and confirm the Qdrant host is reachable through the internal network path you designed.
Audit authenticated Qdrant operations
Qdrant can write JSON audit logs of authenticated API operations, which gives you a record of which key touched which collection. Dify's own logs show application activity, but they do not replace the Qdrant record. Turn on Qdrant audit logging, ship the log to your central store, and test that a search and an insert both appear. Confirm the feature exists in your Qdrant version before you rely on it.
- Audit logging added
- v1.17.0
How to test the Dify and Qdrant integration before users rely on it
How do I test that Dify uploads land in the right Qdrant collection?
Upload a small, known document to a test knowledge base in Dify, then confirm that vectors appear in the Qdrant collection you expect and nowhere else. Use the Qdrant dashboard or the collection info endpoint to read the point count, and compare it with the number of chunks Dify reports for that document. Passing looks like this: the collection name matches your planned naming, the point count matches the chunk count, and payloads carry the document identifiers you need for later deletion. Repeat the upload with a second knowledge base to confirm that collections stay separate. If the vectors land in a collection you did not plan, stop and check the Qdrant settings in your Dify environment file before any real data is loaded.
What does a retrieval test with a known answer prove?
A retrieval test proves that the question-to-answer path works end to end, from embedding through Qdrant search to the model's response. Write five to ten questions whose answers appear in one test document, then ask each one in a Dify app that uses that knowledge base. Passing looks like this: the source document appears in the retrieved context for each question, the answer contains the expected facts, and the same questions return the same sources on repeated runs. Also ask one question the document does not answer, and confirm the app says it does not know rather than inventing an answer. Record the results so you can rerun the same set after every change.
How do I run a failover test with one Qdrant node stopped?
Run this test only on a cluster that has the replication factor and node count you plan to use in production, because a single-node test proves nothing about failover. Stop one Qdrant node, then repeat the retrieval test and an upload test from Dify. Passing looks like this: searches still return correct sources, uploads succeed or fail with clear errors rather than corrupting data, and cluster status shows the affected shards recovering when the node returns. The Qdrant distributed deployment documentation recommends at least three nodes so quorum survives a node failure, so confirm that your cluster meets that recommendation before you rely on the result. Check the Qdrant documentation for your version before you test shard recovery steps.
How should a Qdrant API key rotation test be designed?
A key rotation test checks that you can change the Qdrant API key without breaking Dify or leaving the old key active. Create a new key in Qdrant, update the QDRANT_API_KEY value in the Dify environment, restart the affected Dify services, and then run the upload and retrieval tests. Passing looks like this: Dify connects with the new key, requests with the old key are rejected by Qdrant, and no restart is needed beyond the services you planned. Confirm that the default key in the bundled Dify compose file is not in use on the external cluster. Also check that the secret is stored outside plain configuration files in your secrets manager, and that the rotation steps appear in your runbook with a named owner.
How do I test a Qdrant upgrade on a copy of the environment?
Clone the Dify and Qdrant environment, including a snapshot of a representative collection, and perform the upgrade only on the copy. Passing looks like this: the Qdrant upgrade follows the one-minor-version-at-a-time path described in its documentation, Dify still connects and passes the upload and retrieval tests, and search results match the pre-upgrade baseline for your known-answer questions. Confirm that the Qdrant version you move to is compatible with the Dify release you run, and check the Dify and Qdrant release notes for breaking changes. Qdrant snapshots can be restored only to clusters on the same or the next minor version, so the copy must be built on a version your snapshot supports. Keep the rollback steps tested as well.
Can my own team run these tests, or do we need a partner?
Your team can run these tests if it already operates Dify and Qdrant and has a staging copy of both. The work is mostly sequencing and record keeping: writing the known-answer questions, running the failover and rotation steps in a controlled window, and comparing results with the baseline. A partner is useful when no one has built a staging copy, when the failover test needs a multi-node cluster that does not exist yet, or when auditors expect documented test evidence. DeployOpen plans and runs these checks as part of a fixed-scope engagement with written deliverables, and the scope and timeline are agreed in writing before work starts. Ask any partner to show the test plan, the pass criteria and the evidence format before you sign.
What drives the cost and time of this testing work?
The main cost drivers are the number of environments you must build, the number of Qdrant nodes in the test cluster, and how many knowledge bases, embedding models and Dify apps the tests must cover. Staging copies of a multi-node cluster cost more to run than a single node, and every additional upgrade path adds rerun time. Testing cost is one-time for the initial plan and recurs each time you upgrade Dify, Qdrant or the embedding model. When you ask for a quote, request a line item for environment setup, test design, test execution, evidence capture and retesting after fixes, and ask which items repeat on each release. Avoid comparing quotes that do not state how many environments and test cycles they include.
Why Dify cannot reach Qdrant or retrieval returns nothing
This table lists the failures teams most often hit when Dify is pointed at an external Qdrant cluster, with the likely cause and the fix for each. Work down the rows in order, because the first two checks (the vector store setting and the API key) account for most empty or failed knowledge base queries. Confirm each fix against the Qdrant and Dify settings in your own environment before changing production.
| Symptom | Likely cause | Fix |
|---|---|---|
| Dify still queries Weaviate | VECTOR_STORE was not changed to qdrant, so Dify keeps using its default vector store and never reads the Qdrant settings. | Set VECTOR_STORE to qdrant in the Dify environment file, then restart the api and worker services so both pick it up. |
| Authentication errors on knowledge base calls | QDRANT_API_KEY is missing or does not match the key the Qdrant node was started with. Self-deployed Qdrant has no authentication by default, so a key is only enforced once you configure one. | Set QDRANT_API_KEY to the exact key configured on the Qdrant side, use an admin key for Dify, and confirm the key works with a direct API call before retesting Dify. |
| Default Dify Qdrant key still in use | The Dify compose file ships an optional Qdrant service with a default API key. Teams that copy the file and point Dify at a separate cluster sometimes keep that placeholder value. | Replace the placeholder with a newly generated key on your cluster, and remove the bundled qdrant service from the compose file if you are not using it. |
| TLS handshake or certificate errors | QDRANT_URL uses https while the certificate is issued for a different hostname, or a private certificate authority is not trusted inside the Dify api and worker containers. | Match the hostname in QDRANT_URL to the certificate subject, mount your CA certificate into the Dify containers, and check the certificate chain from inside the container, not from your workstation. |
| gRPC port not reachable | Dify's Qdrant client uses the gRPC port when gRPC is enabled, but only the REST port is open between the Dify network and the cluster, or a firewall or load balancer blocks the gRPC port. | Open the gRPC port between the Dify containers and every Qdrant node, confirm the port in the cluster configuration, and test connectivity from the Dify api container before changing the Dify setting. |
| Collection creation fails or knowledge base never becomes ready | The collection was created with a replication factor higher than the number of nodes that can hold replicas, so the cluster cannot satisfy the request. Replication factor 2 doubles storage, and the docs recommend at least three nodes for production quorum. | Check the node count and the replication factor setting for the cluster, reduce the factor to what the cluster can satisfy, or add nodes before retrying. Recreate the knowledge base after the change, since the factor is set when the collection is created. |
| Retrieval returns no results after a dataset move | Vectors were copied with a different embedding model, dimension or distance setting than the one the knowledge base now queries, or the collection name differs from the one Dify expects. | Confirm the embedding model, vector size and distance metric match the original dataset, verify the collection name and point count in Qdrant, then run a test query with a known document. |
| Stale or duplicate vectors after a move | The dataset was reindexed in Dify while old points remained in the Qdrant collection, or a partial migration was resumed without clearing the target collection. | Compare point counts with the Dify document list, remove or recreate the affected collection, and re-run the migration or reindex from a clean target so the collection holds one current copy of each chunk. |
Questions buyers ask about running Dify on external Qdrant
Does the Dify Community edition support an external Qdrant cluster?
Yes, the vector store is a configuration choice, so Dify Community can point its knowledge bases at a Qdrant server you run instead of the bundled container. The Community edition is free to self-host but is limited to a single workspace, so the limit applies to how many workspaces you create, not to which vector store you use. Confirm the current setting names and the bundled service behavior against the Dify environment variable reference and your Dify release before you commit, because the bundled Qdrant service in the Compose file uses a default API key that you must replace or disable once Qdrant is external.
What drives the effort and cost of moving Dify to external Qdrant?
The main cost components are the Qdrant cluster itself, the network and TLS work between Dify and Qdrant, the re-indexing of existing knowledge bases, and testing. Cluster cost depends on whether you run the open-source engine on your own infrastructure or buy a managed option, and on how many nodes, shards and replicas you need, which follows from data volume and availability goals. Replication roughly doubles storage at a replication factor of 2, so storage sizing is a direct cost driver. Ask any provider for a quote that itemizes cluster sizing, network and certificate work, data migration, retesting and any recurring support, and state which items are one-time and which recur.
How long does a typical move to external Qdrant take?
The duration depends on the number of knowledge bases, the total number of chunks and vectors to move or re-embed, the size of the Qdrant cluster you stand up, how many environments need testing, and whether your security team has to review network paths and certificates. Qdrant migration tooling can stream data in batches and resume interrupted runs, which helps with large datasets, but it does not remove the need to verify collection names and payloads. No fixed duration is set by the supplied sources, so ask for a timeline based on a written scope and a count of datasets and environments.
What do we need to provide before the work starts?
You need to provide the Dify version and deployment layout, a target environment for Qdrant with block-level storage, and a decision on whether Qdrant runs on Docker, Kubernetes or another platform you already operate. Qdrant cannot run on network file systems or object storage, so confirm that the storage backend meets the platform rules before provisioning. You also need named owners for network changes, certificate issuance from your internal CA, secret storage for API keys, and access to a staging Dify instance for testing. Ask the provider to list every input in writing so gaps are visible before the schedule is set.
Can our internal team set up external Qdrant for Dify without a partner?
Yes, a team with Docker or Kubernetes experience, Dify administration skills and someone who can manage certificates and network policy can do this alone, provided it has time to test. The work is mostly configuration, but the risk sits in the details: a default API key left in place, an unauthenticated Qdrant listening on all interfaces, a collection naming mismatch after moving data, or a cluster sized without replication in mind. The Qdrant security documentation states that self-deployed instances are not secure by default, so an internal team should plan hardening tasks explicitly. A partner is most useful when the scope is large, the timeline is short or an independent review is required.
How do the Qdrant license and Dify license terms apply to this setup?
Qdrant is licensed under Apache-2.0, so the open-source engine can be self-hosted at no license fee, and you should confirm the obligations with your legal team. Dify uses the Dify Open Source License, a modified Apache License 2.0 that forbids using the source code to operate a multi-tenant environment, where one tenant is one workspace, without written authorization. It also forbids removing or modifying the logo or copyright information in the Dify console. Running Dify with an external Qdrant does not change those Dify terms, so a multi-workspace deployment needs a separate license decision, and Dify Enterprise pricing is set through Dify sales.
What should we check after the cutover to external Qdrant?
Check that Dify knowledge base retrieval returns the same sources for a fixed set of test questions, that the bundled Qdrant container is not running with its default key, and that the external cluster rejects unauthenticated requests. Verify TLS on both REST and gRPC paths if you enable them, confirm the cluster is reachable only from the Dify services, and confirm a snapshot can be taken and restored in a test cluster. Record the Qdrant and Dify versions in your change log, because snapshot restore is limited to the same or next minor version and Dify releases arrive roughly monthly.
How DeployOpen scopes and delivers the Dify and Qdrant integration
DeployOpen plans, builds, tests and documents Dify with an external Qdrant cluster inside your own infrastructure, so the knowledge base settings, cluster design and access controls are agreed before anything changes. Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
How we scope
- Confirm which Dify version runs the knowledge bases and whether the bundled Weaviate or another vector store is being replaced.
- Document the Qdrant cluster design, including node count, shard layout, replication factor and where each node runs.
- Agree in writing how existing datasets move, which collections are in scope and what cutover and rollback look like.
How we build
- Configure the VECTOR_STORE and QDRANT_ settings, API keys, TLS and gRPC options in a version-controlled deployment.
- Set up Qdrant access controls, network exposure and audit logging so Dify reaches only the collections it needs.
- Test retrieval quality, filtered search and dataset migration on a staging copy before any production switch.
How we hand over
- Deliver runbooks for connection settings, key rotation, snapshot restores and the Qdrant upgrade sequence.
- Walk through the written test results, open findings and fixes with your platform and security teams.
- Document the ownership split between your team, DeployOpen and any Qdrant or Dify vendor support you hold.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Retainers can cover Dify minor releases, which arrive roughly monthly, and Qdrant minor version upgrades.
- Ask any quote to name the recurring items separately from the one-time build so the ongoing cost is visible.

