This is a medical bot built using Llama2 and Sentence Transformers. The bot is powered by Langchain and Chainlit. The bot runs on a decent CPU machine with a minimum of 16GB of RAM.
MIT License
296
stars
218
forks
source link
RuntimeError: Error in faiss::FileIOReader::FileIOReader(const char*) at /project/faiss/faiss/impl/io.cpp:67: Error: 'f' failed: could not open vectorstore/db_faiss/index.faiss for reading: No such file or directory #7
Traceback (most recent call last):
File "/home/hdd/MLProjects/yellow-paper-physics-bot/models.py", line 61, in
f=final_result("Define Weight")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hdd/MLProjects/yellow-paper-physics-bot/models.py", line 57, in final_result
qa_result = qa_bot()
^^^^^^^^
File "/home/hdd/MLProjects/yellow-paper-physics-bot/models.py", line 49, in qa_bot
db = FAISS.load_local(DB_FAISS_PATH, embeddings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/varun/.local/lib/python3.11/site-packages/langchain/vectorstores/faiss.py", line 696, in load_local
index = faiss.read_index(
^^^^^^^^^^^^^^^^^
File "/home/varun/.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 vectorstore/db_faiss/index.faiss for reading: No such file or directory
Traceback (most recent call last): File "/home/hdd/MLProjects/yellow-paper-physics-bot/models.py", line 61, in
f=final_result("Define Weight")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hdd/MLProjects/yellow-paper-physics-bot/models.py", line 57, in final_result
qa_result = qa_bot()
^^^^^^^^
File "/home/hdd/MLProjects/yellow-paper-physics-bot/models.py", line 49, in qa_bot
db = FAISS.load_local(DB_FAISS_PATH, embeddings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/varun/.local/lib/python3.11/site-packages/langchain/vectorstores/faiss.py", line 696, in load_local
index = faiss.read_index(
^^^^^^^^^^^^^^^^^
File "/home/varun/.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 vectorstore/db_faiss/index.faiss for reading: No such file or directory