elixir-nx / hnswlib

Elixir binding for the hnswlib library.
Apache License 2.0
52 stars 9 forks source link

specs HNSWLib.Index.save_index are not correct #16

Closed ndrean closed 9 months ago

ndrean commented 9 months ago

You have: {:hnswlib, "~> 0.1.4"}

@spec save_index(%HNSWLib.Index{dim: term(), reference: term(), space: term()}, Path.t()) ::
  {:ok, integer()} | {:error, String.t()}

However, this returns :ok (as in the Readme).

Failure mode unknown.