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

Bug: index.keys behaves strangely #539

Open
2 of 3 tasks
beviah opened this issue Dec 2, 2024 · 0 comments
Open
2 of 3 tasks

Bug: index.keys behaves strangely #539

beviah opened this issue Dec 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@beviah
Copy link

beviah commented Dec 2, 2024

Describe the bug

>>> for k in index.keys:pass
... 

keeps running, so i interrupt

^C
KeyboardInterrupt

>>> print(k)
131959068520736

index has only 100k entries. when i try random nums, keeps giving me 2 random vectors, that keep repeating..

Steps to reproduce

I simply populate index with 100k vectors, and ids 0..99999

index = Index(
            ndim=self.vector_dim,
            metric=MetricKind.Hamming,
            dtype=ScalarKind.B1,
            view="dir"
        )
        
index.add(keys, vectors, threads=8)

Expected behavior

index.keys should contain only valid values, and not iterate to infinity!

USearch version

2.15.3

Operating System

Ubuntu 24.04.1 LTS

Hardware architecture

x86

Which interface are you using?

Python bindings

Contact Details

No response

Are you open to being tagged as a contributor?

  • I am open to being mentioned in the project .git history as a contributor

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@beviah beviah added the bug Something isn't working label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant