ex_faiss
ex_faiss copied to clipboard
I could not install ex_faiss
when I try mix deps.get and get error like image below
mix.exs
defp deps do
[
{:phoenix, "~> 1.7.1"},
{:phoenix_ecto, "~> 4.4"},
{:ecto_sql, "~> 3.6"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 3.3"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_live_view, "~> 0.18.16"},
{:floki, ">= 0.30.0", only: :test},
{:phoenix_live_dashboard, "~> 0.7.2"},
{:esbuild, "~> 0.5", runtime: Mix.env() == :dev},
{:tailwind, "~> 0.1.8", runtime: Mix.env() == :dev},
{:swoosh, "~> 1.3"},
{:finch, "~> 0.13"},
{:telemetry_metrics, "~> 0.6"},
{:telemetry_poller, "~> 1.0"},
{:gettext, "~> 0.20"},
{:jason, "~> 1.2"},
{:plug_cowboy, "~> 2.5"},
{:bumblebee, "~> 0.3.0"},
{:nx, "~> 0.5.3"},
{:exla, "~> 0.5.3"},
{:ex_faiss, github: "elixir-nx/ex_faiss"}
]
end
I'm having the same error as above. Note I'm running on Apple Silicon. I did set USE_LLVM_BREW=true after brew installing llvm and cmake. Any guidance would be appreciated!
FAISS needs OpenMP to compile: https://github.com/facebookresearch/faiss/blob/main/INSTALL.md. Can you possibly try brew install libomp?