wenda-LLM / wenda

闻达:一个LLM调用平台。目标为针对特定环境的高效内容生成,同时考虑个人和中小企业的计算资源局限性,以及知识安全和私密性问题
GNU Affero General Public License v3.0
6.22k stars 809 forks source link

centos系统运行gen_data_st.py时报错 #495

Open uchihayou opened 11 months ago

uchihayou commented 11 months ago

centos运行python3 plugins/gen_data_st.py时,出现以下错误,请问大佬们这个是什么问题

Embedding 加载完成 文件列表生成完成 1 处理进度 100 % 处理完成 新建索引 Traceback (most recent call last): File "/opt/wenda/wenda/plugins/gen_data_st.py", line 159, in vectorstore_old = Vectorstore.load_local( File "/opt/python3/lib/python3.9/site-packages/langchain/vectorstores/faiss.py", line 449, in load_local index = faiss.read_index( File "/opt/python3/lib/python3.9/site-packages/faiss/swigfaiss.py", line 10206, in read_index return _swigfaiss.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 memory/default/index.faiss for reading: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/opt/wenda/wenda/plugins/gen_data_st.py", line 166, in vectorstore.save_local('memory/default') AttributeError: 'NoneType' object has no attribute 'save_local'

Midnight-719 commented 11 months ago

image 不是faiss