elixir-nx / hnswlib

Elixir binding for the hnswlib library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clarify how `knn_query` works

a-alhusaini opened this issue · comments

The example in the README shows how to use knn_query but it isn't clear how to retreive the the data I am storing in the index. Can we get a more clear example?

knn_query returns the index. You need to keep the index of your data and associate the two. :)

A PR to improve the docs is welcome btw!