Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

faiss.loader: Could not load library with AVX2 support due to #21

Open
nsbuttar opened this issue Apr 7, 2023 · 1 comment
Open

faiss.loader: Could not load library with AVX2 support due to #21

nsbuttar opened this issue Apr 7, 2023 · 1 comment

Comments

@nsbuttar
Copy link

nsbuttar commented Apr 7, 2023

Hi All,

I have encountered an issue with running the code. Was wondering if someone already has an answer.

Using Visual Studio Code, python.

Any help will be greatly appreciated.

  • I have pip installed faiss cpu
    =======

2023-04-07 19:01:39.162 INFO faiss.loader: Loading faiss with AVX2 support.
2023-04-07 19:01:39.162 INFO faiss.loader: Could not load library with AVX2 support due to:
ModuleNotFoundError("No module named 'faiss.swigfaiss_avx2'")
2023-04-07 19:01:39.163 INFO faiss.loader: Loading faiss.
2023-04-07 19:01:39.179 INFO faiss.loader: Successfully loaded faiss.
Traceback (most recent call last):
File "e:\notion-qa\main.py", line 15, in
store = pickle.load(f)
^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.752.0_x64__qbz5n2kfra8p0\Lib\pathlib.py", line 873, in new
raise NotImplementedError("cannot instantiate %r on your system"
NotImplementedError: cannot instantiate 'PosixPath' on your system

@xkasberg
Copy link

This is actually a FAISS issue not a Langchain issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants