SleepySoft / Easy-Langchain-LKB

The simplest Local Knowledge Base example based on Langchain and Chat-GLM
12 stars 3 forks source link

pyhton3 main.py时的运行错误 #1

Open thesmellji opened 1 year ago

thesmellji commented 1 year ago

一开始报错

Could not import faiss python package. Please install it with pip install faiss or pip install faiss-cpu (depending on Python version). init() got an unexpected keyword argument 'autodetect_encoding'

按照提示 pip install faiss-cpu 安装了 faiss之后依然报错

Error in faiss::FileIOReader::FileIOReader(const char*) at /project/faiss/faiss/impl/io.cpp:67: Error: 'f' failed: could not open vector_store/index.faiss for reading: No such file or directory init() got an unexpected keyword argument 'autodetect_encoding'

请问有什么解决办法吗?