Save and load index from file #5
jlarmstrongiv
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’m glad to see that
hnswlib-wasm
supports saving and loading indexes via IndexedDB (IDBFS) 😄I also noticed plans for future NodeJS support in this comment
I’m curious though—is it possible to save and load indexes to and from a file? That would help a lot to avoid rebuilding the index on different machines or browsers. Plus, sharing indexes with the upcoming node version would be awesome.
For example, sql.js lets users save and load a database via:
and I’m implementing an example for
wa-sqlite
to save and load sqlite.db files to and from IndexedDB with the Web Streams API.Would you be open to adding save and load file functions to your package? Do you have suggestions on the best way for me to implement those?
Beta Was this translation helpful? Give feedback.
All reactions