init()得到了意外的关键字参数“allow_dangerous_deserialization” 根据提供的错误消息,我推断代码正在尝试使用 FAISS.load_local() 函数加载 pickle 文件,但遇到了与反序列化相关的错误。错误消息表明将 allow_dangerous_deserialization 设置为 True 可以解决该问题。 我的回复旨在通过将 allow_dangerous_deserializatio...
db = FAISS.load_local(DB_FAISS_PATH, embeddings, allow_dangerous_deserialization=True) I was getting the same error but when i added this db.save_local line. The error got resolve.
System Info Langchain Version : [0.0.190] Python Version : 3.10.7 OS : Windows 10 Who can help? @eyurtsev @hwchase17 Information The official example notebooks/scripts My own modified scripts Related Components LLMs/Chat Models Embedding...