This is very minor, but since it caused a bit of confusion, I figured I'd open it.
When doing a (non-binary) Vector Similarity search, if the length of the vector doesn't match the collection's dimension, the generated exception repeats the passed in vector 8 times.
Is there an existing issue for this?
Describe the bug
This is very minor, but since it caused a bit of confusion, I figured I'd open it.
When doing a (non-binary) Vector Similarity search, if the length of the vector doesn't match the collection's dimension, the generated exception repeats the passed in vector 8 times.
This is happening in code here:
https://github.com/milvus-io/pymilvus/blob/1e3459b4198f931d960a09aff8e16609e515a56d/pymilvus/client/prepare.py#L323
It looks like that *8 is meant for the binary vector use case and not for the non-binary case.
Expected Behavior
The vector should be shown once in the error message
Steps/Code To Reproduce behavior
With milvus running at localhost, run the following which sets up a schema with dim=2, but then searches with a vector of dim=3
The output is:
Notice the passed in vector is repeated 8 times
Environment details
Anything else?
No response