asg017 / sqlite-vss

A SQLite extension for efficient vector search, based on Faiss!
MIT License
1.75k stars 62 forks source link

React Native support #103

Open microchipgnu opened 1 year ago

microchipgnu commented 1 year ago

I was wondering if it is possible to use this extension with Expo SQLite (ideally) or with react-native-sqlite-storage. Let me know if anyone's tried this

snehmehta commented 1 year ago

Hey @microchipgnu, I am wondering the same and that's what lead me to this ticket. Did you by any chance tried it?

Volland commented 7 months ago

i looking for same . we need a vss extension as part of expo

Volland commented 7 months ago

i found https://github.com/OP-Engineering/op-sqlite that able to load an extensions in react naytive but for this I need a vss and vector extension precompiled for ios and android . really looking for a guide how to doit

hmbrg commented 7 months ago

I'm also looking into this. Maybe it would be much simpler to use this relatively new but simpler SQLite extension and compile it for Android and iOS.

Volland commented 7 months ago

@hmbrg looks interesting but looks like inmemory solution . so depends on usecase. we have a lot of entities with vectors but thanks for reference .

ospfranco commented 6 months ago

Hi, I'm the author of op-sqlite. Yes you can with op-sqlite (maybe with expo-sqlite too). Don't use sqlite-storage it is old and slow.

You need to compile this crate into dylibs you can load on runtime. I'm still figuring the compilation process for this crate on different systems (if you cannot use the prebuilts). But once you have those you can just call the load_extension function of op-sqlite.