hnswlib-wasm
hnswlib-wasm copied to clipboard
hnswlib-wasm attempts to create a browser friendly version of hnswlib
Hi, thanks for compiling hnsw to webassembly! I am using this library for several of my open source packages. I have found the following issue: When I try to load...
Hello, I'm trying to use your package to run hnswlib in a Chrome extension's background script. When I call loadHnswlib I get the error: ```import() is disallowed on ServiceWorkerGlobalScope by...
``` git clone [email protected]:ShravanSunder/hnswlib-wasm.git cd hnswlib-wasm yarn install make rebuild yarn build ``` results in these errors: ```zsh mkdir -p lib em++ -O3 -fwasm-exceptions -s ALLOW_MEMORY_GROWTH=1 -s ALLOW_TABLE_GROWTH=1 -s WASM=1...
Awesome work Shravan!!! ``` import "fake-indexeddb/auto"; ``` Put that at the top of dist/hnswlib-####.js and corresponding lib. This is a polyfill in backend if window is undefined. I am adding...