attu
attu copied to clipboard
Show vectors with correct precision
Describe the bug: Currently, Attu always shows vector data as float64. For example, a value 0.001 is displayed as 0.0010000000474974513
Steps to reproduce:
- create a collection
- insert some data, load the collection
- observe the "Data" page in Attu
Attu version: 2.3.8
Attu version:
https://github.com/milvus-io/milvus/discussions/32737
A proposal: display the value according to field type. If the vector field is FloatVector, round the decimal to 7 places. If the vector field is Float16Vector, round the decimal to 16 places. If the vector field is BFloat16Vector, round the decimal to 3 places.
I don't think attu should handle this. milvus should handle this.