You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then we can save and reload the `Prebuilt` Annoy indices.
125
-
Note the caveats on `knncolle::Prebuilt::save()` - specifically, the files are not guaranteed to be portable between machines or even different versions of **knncolle_annoy**.
125
+
Note the caveats on `knncolle::Prebuilt::save()` -
126
+
specifically, the files are not guaranteed to be portable between machines or even different versions of **knncolle_annoy**.
126
127
127
128
```cpp
128
-
std::string path_prefix = "anno/location/here_";
129
+
std::string path_prefix = "annoy/location/here_";
129
130
an_index.save(path_prefix);
130
131
auto reloaded = knncolle::load_prebuilt(path_prefix);
131
132
```
132
133
134
+
For custom Annoy-related types and distances, users can define their own saving and loading methods.
0 commit comments