Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Issue while inserting/searching for a single vector #93
I'm currently experimenting with HNSW and having a hard time figuring how to insert a single entry which is a numpy vector of dimension 512. Basically my computed vector have the following shape:
My insertion code looks like the following:
My lookup code:
The following exception is thrown when searching: RuntimeError: Cannot return the results in a contigious 2D array. Probably ef or M is to small
Summing up, if you add 3 new elements, the exception will disappear.