Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loading multiple indexes #10

Open
yeus opened this issue Dec 18, 2023 · 0 comments
Open

loading multiple indexes #10

yeus opened this issue Dec 18, 2023 · 0 comments

Comments

@yeus
Copy link

yeus commented Dec 18, 2023

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 multiple indexes in parallel and read the saved index from indexeddb or diskemscripten FS using readIndex, Webassembly errors get thrown around. I don't get a specific error message. Just "webassembly.exception"

like this:

image

The error message doesn't have any real information attached to it.

--> my solution right now is to add a pause of 500ms before loading another index. And that seems to mitigate the issue for now.

here is the code if you're interested:

https://github.com/Xyntopia/taskyon/blob/5bf6076ad4b3d456f05185bc5fbeac728c740a99/src/modules/vectorSearch.ts#L49

This works. But I want to throw that in here. Maybe there is an easy solution to this. My workaround is quiet dirty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant