kaifcoder / gemini_multipdf_chat

Gemini PDF Chatbot: A Streamlit-based application powered by the Gemini conversational AI model. Upload multiple PDF files, extract text, and engage in natural language conversations to receive detailed responses based on the document context. Enhance your interaction with PDF documents using this intuitive and intelligent chatbot.
https://gmultichat.streamlit.app/
129 stars 110 forks source link

doesnt work #3

Closed CevreMuhendisi closed 6 months ago

CevreMuhendisi commented 6 months ago

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