spotify / voyager

🛰️ An approximate nearest-neighbor search library for Python and Java with a focus on ease of use, simplicity, and deployability.
https://spotify.github.io/voyager/
Apache License 2.0
1.26k stars 51 forks source link

Implement index load with no explicit params in Java #31

Closed dylanrb123 closed 10 months ago

dylanrb123 commented 10 months ago

Now that we can load metadata from the file header we want to expose Index.load(filename) and Index.load(inputStream). These already existed in the JNI interface but were not implemented, leading to UnsatisfiedLinkError when trying to call them. This implements those missing methods and adds new convenience methods to StringIndex to leverage them.