From f0a5c05d91ee05605eb0de6602298796e68bd74c Mon Sep 17 00:00:00 2001 From: codingjaguar Date: Sun, 2 Feb 2025 09:33:02 +0800 Subject: [PATCH] Update dify_with_milvus.md to fix the MILVUS_URI setting. --- site/en/integrations/dify_with_milvus.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/site/en/integrations/dify_with_milvus.md b/site/en/integrations/dify_with_milvus.md index d12678b6f..ee9002bd1 100644 --- a/site/en/integrations/dify_with_milvus.md +++ b/site/en/integrations/dify_with_milvus.md @@ -39,15 +39,14 @@ Change the value `VECTOR_STORE` in the `.env` file ``` VECTOR_STORE=milvus ``` -Change the Milvus configuration in the `.env` file +Make sure the Milvus configuration in the `.env` file has the following line: ``` -MILVUS_URI=xxx -MILVUS_TOKEN=xxx +MILVUS_URI=http://host.docker.internal:19530 ``` -In this setup, please use the external URI of the server, e.g.`http://172.16.16.16:19530`, as your `MILVUS_URI`. +Note that by specifying `VECTOR_STORE=milvus`, Dify will bring up a Milvus Standalone server in docker. Even though you can access the server from outside of the Docker through `http://localhost:19530`, for other Dify containers to talk to it inside Docker environment, they need to connect to the special DNS name `host.docker.internal`. Thus we set `http://host.docker.internal:19530` as `MILVUS_URI`. -For the `MILVUS_TOKEN`, if you have not set a token for your Milvus server, you can set it to an empty string like `MILVUS_TOKEN=`, otherwise, you need to set it to your Milvus token. For more information about how to set token in Milvus, you can refer the [authenticate page](https://milvus.io/docs/authenticate.md?tab=docker#Update-user-password). +For production deployment you may want to customize the authentication. For more information about how to set token or username and password in Milvus, you can refer the [authenticate page](https://milvus.io/docs/authenticate.md?tab=docker#Update-user-password). ## Start the Docker Containers @@ -72,4 +71,4 @@ Open your browser and go to the Dify installation page, and you can set your adm `http://localhost/install` , And then log in the main Dify page for further usage. -For further usage and guidance, please refer to the [Dify documentation](https://docs.dify.ai/). \ No newline at end of file +For further usage and guidance, please refer to the [Dify documentation](https://docs.dify.ai/).