diff --git a/README.md b/README.md index 553c314..beff1aa 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ This is a golang interface of [hnswlib](https://github.com/nmslib/hnswlib). For # Compile (Optional) ```bash -git clone github.com/evan176/hnswgo +git clone github.com/evan176/hnswgo.git cd hnswgo && make sudo cp libhnsw.so /usr/local/lib ldconfig diff --git a/hnsw_wrapper.cc b/hnsw_wrapper.cc index 4cdda44..1e7958c 100644 --- a/hnsw_wrapper.cc +++ b/hnsw_wrapper.cc @@ -29,6 +29,7 @@ HNSW loadHNSW(char *location, int dim, char stype) { HNSW saveHNSW(HNSW index, char *location) { ((hnswlib::HierarchicalNSW*)index)->saveIndex(location); + return ((hnswlib::HierarchicalNSW*)index); } void freeHNSW(HNSW index) {