-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when i insert vector to milvus,i get zero results, but the code is copied and pasted over. #260
Comments
The interface for obtaining the number of milvus data in the code example is inaccurate. As long as there is no error during operation, it is inserted. |
@junjiejiangjjj |
The data has been inserted successfully. You can use the following code to view the actual number. from pymilvus import MilvusClient
client = MilvusClient(
uri="http://localhost:19530"
)
res = client.query(
collection_name="you collection name",
output_fields=["count(*)"]
)
print(res) Or you can also view information through this project: https://github.com/zilliztech/attu |
@junjiejiangjjj |
RPC error: [query], <MilvusException: (code=1, message=query expression is empty)>, <Time:{'RPC start': '2024-09-12 15:23:42.587309', 'RPC error': '2024-09-12 15:23:42.587895'}> |
Update pymilvus. I can run it with version 2.4.4 of pymilvus. |
@junjiejiangjjj During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Maybe you are using an older version of milvus. Try this: https://milvus.io/api-reference/pymilvus/v2.4.x/ORM/Collection/flush.md |
@junjiejiangjjj |
I mean the milvus version, not pymilvus |
@junjiejiangjjj |
When i configured the environment, i copy the code and still get zero results? i don't know...how to say..
i am performing the operation to insert the vector into milvus collection..get zero?
The text was updated successfully, but these errors were encountered: