sqlite-vss icon indicating copy to clipboard operation
sqlite-vss copied to clipboard

Using this library on iOS

Open spullara opened this issue 2 years ago • 8 comments

iOS doesn't allow for dynamic libraries and things need to be static linked. Has anyone done the work to get this working in that environment?

spullara avatar May 15 '23 17:05 spullara

Might be related to this issue which mentions statically linking it. https://github.com/asg017/sqlite-vss/pull/16

spullara avatar May 15 '23 17:05 spullara

I'll be publishing static files in about a week-ish, which might help here. Though I've never done any ios development so I don't know if it'll work.

Is OpenMP available on iOS? That's a requirement for Faiss, which is pretty tricky to compile. Will you also be statically linking SQLite as well?

asg017 avatar May 15 '23 18:05 asg017

It looks like it allows dynamic libraries if they are in a framework bundle. I'm somewhat of a novice at all this honestly. As for OpenMP it is hard to say. Maybe this is difficult to get working.

https://mac.r-project.org/openmp/

spullara avatar May 15 '23 18:05 spullara

Looks like maybe this isn't possible right now.

https://github.com/search?q=repo%3Afacebookresearch%2Ffaiss+ios&type=issues

spullara avatar May 15 '23 18:05 spullara

Not sure if this would be applicable to your use case, but Similarity Search Kit looks promising.

henningko avatar Oct 11 '23 10:10 henningko

It doesn't have contextual search. I recommend waiting for USearch to land on iOS end of month

aehlke avatar Oct 11 '23 15:10 aehlke

Looks like people have gotten FAISS and OpenMP to build on iOS:

  • https://github.com/DeveloperMindset-com/faiss-mobile
  • https://github.com/DeveloperMindset-com/openmp-mobile
  • https://github.com/jkrukowski/SwiftFaiss

mattvr avatar Mar 04 '24 21:03 mattvr

any news on this? would be cool to run an embedded vector database.

alew3 avatar Jun 08 '24 14:06 alew3