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

use Rust embeddings crate #58

Open
DougAnderson444 opened this issue May 1, 2024 · 5 comments
Open

use Rust embeddings crate #58

DougAnderson444 opened this issue May 1, 2024 · 5 comments

Comments

@DougAnderson444
Copy link

Hi 👋

I see that your Readme says you want to move away from js embeddings such as web-ai to a Rust embedding library. Perhaps something like fastembed would work?

You didn't have anything on your project roadmap about rust embeddings (https://github.com/orgs/tantaraio/projects/2) so I thought I'd ask. Seems like it would be much fast as wasm than in js?

@jacobhq
Copy link

jacobhq commented Jul 20, 2024

Sadly fastembed does not work in a webassembly context, and I'm not aware of any other ways to do this in rust, but it would be great if there was a way to do this. Let me know if you find anything, and I'd be happy to work on it in a PR.

@jacobhq
Copy link

jacobhq commented Jul 28, 2024

Ok I've just submitted a PR (huggingface/candle#2363) that fixes the web assembly example of candle, a rust ML framework that can work in the browser. So now it is possible to embed text in the browser with rust.

If there's interest, I could implement embeddings in voy using candle in a PR.

PS - will be on holiday, so may not be able to work on stuff for ~2 weeks

@DougAnderson444
Copy link
Author

@jacobhq that's great news! Enjoy your vacation, look forward to seeing what you do when you return!

@jacobhq
Copy link

jacobhq commented Aug 20, 2024

I've just tried to start work, and I've had a look through the examples, however I can't get any of them to work. I'm having the same issue as #57, at least in the create-wasm-app example. Did you manage to get anything working on your end?

@DougAnderson444
Copy link
Author

No, I have not managed to find time for it yet

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

2 participants