kaifcoder/gemini_multipdf_chat

doesnt work

CevreMuhendisi opened this issue · 0 comments

log:

/usr/local/lib/python3.11/site-packages/langchain/vectorstores/init.py:35: LangChainDeprecationWarning: Importing vector stores from langchain is deprecated. Importing from langchain will no longer be supported as of langchain==0.2.0. Please import from langchain-community instead:

from langchain_community.vectorstores import FAISS.

To install langchain-community run pip install -U langchain-community.
warnings.warn(
2024-02-19 18:53:00.909 Uncaught app exception
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
exec(code, module.dict)
File "/app/app.py", line 144, in
main()
File "/app/app.py", line 131, in main
response = user_input(prompt)
^^^^^^^^^^^^^^^^^^
File "/app/app.py", line 76, in user_input
new_db = FAISS.load_local("faiss_index", embeddings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/langchain_community/vectorstores/faiss.py", line 1110, in load_local
index = faiss.read_index(
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/faiss/swigfaiss_avx2.py", line 10206, in read_index
return _swigfaiss_avx2.read_index(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Error in faiss::FileIOReader::FileIOReader(const char
) at /project/faiss/faiss/impl/io.cpp:67: Error: 'f' failed: could not open faiss_index/index.faiss for reading: No such file or directory