Describe the bug
Why does the index and and distance calculations become all zeroes?
Steps to reproduce
index = Index(ndim=3)
a = np.uint8([
[0, 0, 1],
[0, 1, 2],
[1, 2, 3],
])
index.add([0,1,2], a)
for i in range(3):
print(index[i])
pd.DataFrame([r for r in index.search(a, 4)])

Expected behavior
If you do this with DuckDB:
df = pd.DataFrame({"idx": [0,1,2], "vec": [v for v in a]})
duckdb.sql("""
SELECT a.idx, b.idx, LIST_DISTANCE(a.vec, b.vec)
FROM df a JOIN df b ON 1=1
""").df()

USearch version
2.17.7
Operating System
Amazon Linux
Hardware architecture
x86
Which interface are you using?
Python bindings
Contact Details
No response
Are you open to being tagged as a contributor?
Is there an existing issue for this?
Code of Conduct
Describe the bug
Why does the index and and distance calculations become all zeroes?
Steps to reproduce
Expected behavior
If you do this with DuckDB:
USearch version
2.17.7
Operating System
Amazon Linux
Hardware architecture
x86
Which interface are you using?
Python bindings
Contact Details
No response
Are you open to being tagged as a contributor?
.githistory as a contributorIs there an existing issue for this?
Code of Conduct