Skip to content
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

Show vectors with correct precision #493

Open
yhmo opened this issue Apr 30, 2024 · 3 comments
Open

Show vectors with correct precision #493

yhmo opened this issue Apr 30, 2024 · 3 comments

Comments

@yhmo
Copy link

yhmo commented Apr 30, 2024

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
Copy link
Author

yhmo commented Apr 30, 2024

milvus-io/milvus#32737

@yhmo
Copy link
Author

yhmo commented Apr 30, 2024

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.

@shanghaikid
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants