Environment Variables about MILVUS_DATABASE has no document #4991

Closed
opened 2026-02-21 18:08:55 -05:00 by yindo · 4 comments
Owner

Originally created by @lordk911 on GitHub (Aug 11, 2024).

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Provide a description of requested docs changes

If we do not specify the MILVUS_DATABASE environment variable, milvus' default DATABASE will be used, which is not easy to manage.
Changing MILVUS_DATABASE after this will result in an error: the corresponding collection cannot be found in the corresponding database:

RPC error: [insert_rows], <DescribeCollectionException: (code=100, message=can't find collection[database=dify][collection=Vector_index_76b027c1_9d46_403f_af38_d8a1a976b899_Node])>

Originally created by @lordk911 on GitHub (Aug 11, 2024). ### Self Checks - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Provide a description of requested docs changes If we do not specify the MILVUS_DATABASE environment variable, milvus' default DATABASE will be used, which is not easy to manage. Changing `MILVUS_DATABASE` after this will result in an error: the corresponding collection cannot be found in the corresponding database: `RPC error: [insert_rows], <DescribeCollectionException: (code=100, message=can't find collection[database=dify][collection=Vector_index_76b027c1_9d46_403f_af38_d8a1a976b899_Node])>`
yindo added the 📚 documentation label 2026-02-21 18:08:55 -05:00
yindo closed this issue 2026-02-21 18:08:55 -05:00
Author
Owner

@crazywoola commented on GitHub (Aug 11, 2024):

https://github.com/langgenius/dify/blob/c436454cd45d208c2494556d1d21311aaaaa3494/api/configs/middleware/vdb/milvus_config.py#L1-L40

These are required if you are setting the milvus vector db.

@crazywoola commented on GitHub (Aug 11, 2024): https://github.com/langgenius/dify/blob/c436454cd45d208c2494556d1d21311aaaaa3494/api/configs/middleware/vdb/milvus_config.py#L1-L40 These are required if you are setting the milvus vector db.
Author
Owner

@lordk911 commented on GitHub (Aug 11, 2024):

What I mean is there's nothing in the documentation about this environment variable :
https://docs.dify.ai/getting-started/install-self-hosted/environments

@lordk911 commented on GitHub (Aug 11, 2024): What I mean is there's nothing in the documentation about this environment variable : https://docs.dify.ai/getting-started/install-self-hosted/environments
Author
Owner

@crazywoola commented on GitHub (Aug 11, 2024):

image
@crazywoola commented on GitHub (Aug 11, 2024): <img width="1033" alt="image" src="https://github.com/user-attachments/assets/861b5edb-93bb-44a8-bb17-26fbabdf819b">
Author
Owner

@lordk911 commented on GitHub (Aug 11, 2024):

351321f2-3bf8-4934-92ff-03f62b8b1d80

@lordk911 commented on GitHub (Aug 11, 2024): ![351321f2-3bf8-4934-92ff-03f62b8b1d80](https://github.com/user-attachments/assets/5b98453a-4c05-48fd-804c-75e494b0dd23)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#4991