-
Notifications
You must be signed in to change notification settings - Fork 102
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
Feature: SQLite WASM builds #375
Comments
I think we should update the |
If we get this, my app for local rag would be solved. Although am concerned about data persistence, my use case is users upload textbooks and can perform vector similarity on individual textbooks instead of lets say a user uploads 10,000 textbooks, my project atm will do textbook by textbook to avoid overloading the memory. How would 1: data persistance and 2: memory be handled with wasm + sqlite + usearch based approach? Conceptually I would like something like Query: who are the authors I've read OPFS + wasm may be a great solution to this but in general will the entire db will all be populated in memory. There seems to not be a single non-memory solution to vector search in browser. Disk-ANN works in C and other languages, im assuming solely due to file system and non browser restrictions. However, I assume a browser-js native implementation can work complete with hnsw and vector search but without multithreading as i believe multithread is not possible in browser-js. Given OPFS is files and supports reading the bytes its basically gives freedom to talk to unum indexes, avoiding the posisblitiy of using wasm all together. Similar projects I've found are here: They allow client based vector search by being js native And heres how they persist data However for sqlite approach theres also this repo that saves sqlite Theres also work by the official sqlite team to address this persisting storage Given this information perhaps we can just have native js browser based OPFS solution to query unum files Interested in more discussion here |
While it’s still being developed, it appears this library https://github.com/asg017/sqlite-vec will support vector search with sqlite in wasm. I hope usearch sqlite extensions support wasm in the future too! |
Describe what you are looking for
Run usearch extensions for SQLite in the browser with SQLite wasm like https://github.com/nalgeon/sqlean.js
Can you contribute to the implementation?
Is your feature request specific to a certain interface?
Other bindings
Contact Details
Ping me in Discord
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: