Skip to content

Commit

Permalink
Merge pull request #3007 from codingjaguar/patch-13
Browse files Browse the repository at this point in the history
Update dify_with_milvus.md to fix the MILVUS_URI setting.
  • Loading branch information
AnthonyTsu1984 authored Feb 5, 2025
2 parents 2f05541 + f0a5c05 commit 07a8e57
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions site/en/integrations/dify_with_milvus.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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/).
For further usage and guidance, please refer to the [Dify documentation](https://docs.dify.ai/).

0 comments on commit 07a8e57

Please sign in to comment.