nmslib / hnswlib

Header-only C++/python library for fast approximate nearest neighbors
https://github.com/nmslib/hnswlib
Apache License 2.0
4.31k stars 633 forks source link

AlgorithmInterface should have loadIndex #452

Open DavidGOrtega opened 1 year ago

DavidGOrtega commented 1 year ago

It has saveIndex but loadIndex is missing (among others) In general I find the interface a bit limited in design not being able to properly use the iface. I.E.

private:
  hnswlib::SpaceInterface<float> *space_;
  hnswlib::AlgorithmInterface<float> *index_;
  bool normalize_;
yurymalkov commented 1 year ago

Yeah, good catch!