asg017 / sqlite-vss

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

Using this library on iOS #32

Open spullara opened 1 year ago

spullara commented 1 year ago

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 commented 1 year ago

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

asg017 commented 1 year ago

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?

spullara commented 1 year ago

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 commented 1 year ago

Looks like maybe this isn't possible right now.

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

henningko commented 8 months ago

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

aehlke commented 8 months ago

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

mattvr commented 4 months ago

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

alew3 commented 3 weeks ago

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