Git Product home page Git Product logo

developermindset-com / faiss-mobile Goto Github PK

View Code? Open in Web Editor NEW
40.0 3.0 6.0 3.8 MB

FAISS library compiled for iOS, macOS, tvOS, watchOS

Home Page: https://www.developermindset.com/faiss-mobile/

License: MIT License

Ruby 0.05% Swift 0.02% CMake 1.76% JavaScript 0.01% Shell 0.76% C++ 61.12% Python 17.65% C 2.01% Batchfile 0.03% Cuda 16.59%
c cpp embeddings faiss ios knn macos neighbor-search search similarity-search tvos vector watchos

faiss-mobile's Issues

Swift example

Hi, can you provide an example of importing and using faiss.xcframework in a Swift project? Thank you!

Unable to build for iOS

Hi,
I want to add faiss into my project, i did an xcframework and place it into my project, i was able to add fais into my source code, but i wasn't able to build a source code

Undefined symbols for architecture arm64:
  "faiss::index_factory(int, char const*, faiss::MetricType)", referenced from:
      _faiss_index_factory in libfaiss_c.a(index_factory_c.o)
  "typeinfo for faiss::FaissException", referenced from:
      std::exception_ptr std::make_exception_ptr[abi:v15006]<faiss::FaissException>(faiss::FaissException) in libfaiss_c.a(Index_c.o)
      GCC_except_table1 in libfaiss_c.a(Index_c.o)
      GCC_except_table19 in libfaiss_c.a(Index_c.o)
      GCC_except_table20 in libfaiss_c.a(Index_c.o)
      GCC_except_table21 in libfaiss_c.a(Index_c.o)
      GCC_except_table22 in libfaiss_c.a(Index_c.o)
      GCC_except_table23 in libfaiss_c.a(Index_c.o)
      ...
  "vtable for faiss::FaissException", referenced from:
      faiss::FaissException::FaissException(faiss::FaissException const&) in libfaiss_c.a(Index_c.o)
      faiss::FaissException::~FaissException() in libfaiss_c.a(Index_c.o)
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

A Swift example for iOS or macOS

Hi folks, thanks for creating the library. Can you give me an example of a Swift project for iOS and macOS? I've been unsuccessful so far.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.