Closed bowenliang123 closed 8 months ago
🤖
From the error message you provided, it seems like the issue is related to the delete_by_ids
method in the milvus_vector.py
file. The error message indicates that the Milvus client failed to create an expression plan for the deletion operation. This could be due to a variety of reasons, such as an issue with the IDs you're trying to delete, a problem with the Milvus client, or a bug in the Dify code.
Here are a few steps you can take to troubleshoot this issue:
Check the IDs: Make sure the IDs you're trying to delete actually exist in the Milvus collection. You can do this by querying the collection with the IDs before trying to delete them. If the IDs don't exist, that could be the cause of the error.
Update the Milvus client: There might be a bug in the version of the Milvus client you're using that's causing this issue. Try updating to the latest version of the Milvus client and see if that resolves the issue.
Debug the delete_by_ids
method: If the above steps don't resolve the issue, you might need to debug the delete_by_ids
method in the milvus_vector.py
file. You can do this by adding print statements in the method to print out the values of the variables and the execution flow. This might help you identify where exactly the issue is occurring.
If none of these steps resolve the issue, it would be helpful if you could provide more information about your setup and the steps you're taking that lead to this error. Specifically, it would be helpful to know:
This information will help us better understand the issue and provide a more accurate solution.
For more information about the delete_by_ids
method and how it interacts with the Milvus client, you can refer to the Milvus Python SDK documentation.
I hope this helps! Let me know if you have any other questions or if there's anything else I can do to assist you.
Self Checks
Dify version
main/0.5.6
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
✔️ Expected Behavior
No response
❌ Actual Behavior
it's not able to be queried on or used
it's not working when deleting docs from index , when disabling docs. logs from the worker.