We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It's weird, but I get completely different results when running the first example of the documentation:
import numpy as np from voyager import Index, Space # Create an empty Index object that can store vectors: index = Index(Space.Euclidean, num_dimensions=5) id_a = index.add_item([1, 2, 3, 4, 5]) id_b = index.add_item([6, 7, 8, 9, 10]) print(id_a) # => 0 print(id_b) # => 1 # Find the two closest elements: neighbors, distances = index.query([1, 2, 3, 4, 5], k=2) print(neighbors) # => [0, 1] print(distances) # => [0.0, 125.0]
0 1 [0 0] [0. 0.]
It seems when querying, a neighbor is being considered more than once. My device is Mac M1Pro, Python 3.12.
The text was updated successfully, but these errors were encountered:
miclegr
No branches or pull requests
It's weird, but I get completely different results when running the first example of the documentation:
It seems when querying, a neighbor is being considered more than once.
My device is Mac M1Pro, Python 3.12.
The text was updated successfully, but these errors were encountered: