tantaraio / voy

πŸ•ΈοΈπŸ¦€ A WASM vector similarity search written in Rust
https://www.npmjs.com/package/voy-search
Apache License 2.0
867 stars 31 forks source link

Issues with ReactJs and create-wasm-app #57

Open DavidGOrtega opened 6 months ago

DavidGOrtega commented 6 months ago

πŸ‘‹

I have tried to use Voy for a quick test and was not successful.

create-wasm-app wait hangs loading the wasm. To reproduce

yarn install
yarn dev

in reactjs 18 the module seems not to be there. I have tried to await the module init.

const { Voy: VoyClient } = await import("voy-search");
const voyClient = new VoyClient({});

however I have the error

voy_search_bg.js:294 Uncaught (in promise) TypeError: wasm.voy_new is not a function
    at new Voy (voy_search_bg.js:294:1)
    at memoryTest (LLMs.js:114:1)
    at async callLLM (App.js:76:1)
jacobhq commented 3 weeks ago

I get this on the examples in the project too. I can't get any of them to work.