Closed NickTaylor- closed 6 months ago
Can you send a PR please?
yup! just wanted to document it in case I forgot 😅
It also showed up in https://elixirforum.com/t/unable-to-add-items-to-saved-index-of-hnswlib/56652
P.S. good calling it out José, much higher chance I actually write the PR now
Hi @NickTaylor-, v0.1.4 is out now, and this issue should be fixed in that one.
In other parts of the code a max size of 0 is interpreted to an unbounded size (e.g. in loading a saved index), however when creating an index a size of 0 will mean that the index is unable to used at all.
vs.
This is the error thrown by hnswlib: https://github.com/nmslib/hnswlib/blob/master/hnswlib/hnswalg.h#L1090-L1092