attu icon indicating copy to clipboard operation
attu copied to clipboard

Show vectors with correct precision

Open yhmo opened this issue 1 year ago • 3 comments

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:

  1. create a collection
  2. insert some data, load the collection
  3. observe the "Data" page in Attu

Attu version: 2.3.8

Attu version:

yhmo avatar Apr 30 '24 09:04 yhmo

https://github.com/milvus-io/milvus/discussions/32737

yhmo avatar Apr 30 '24 09:04 yhmo

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.

yhmo avatar Apr 30 '24 09:04 yhmo

I don't think attu should handle this. milvus should handle this.

shanghaikid avatar May 08 '24 01:05 shanghaikid