[Bug]: [Local Message] 插件调用出错:You will need to set `allow_dangerous_deserialization` to `True`
Installation Method | 安装方法与平台
Pip Install (I used latest requirements.txt)
Version | 版本
Latest | 最新版
OS | 操作系统
Windows
Describe the bug | 简述
[Local Message] 插件调用出错:
Traceback (most recent call last):
File ".\toolbox.py", line 203, in decorated
yield from f(main_input, llm_kwargs, plugin_kwargs, chatbot_with_cookie, history, *args, **kwargs)
File ".\crazy_functions\知识库问答.py", line 107, in 读取知识库作答
resp, prompt = kai.answer_with_archive_by_id(txt, kai_id, vs_path)
File ".\crazy_functions\vector_fns\vector_database.py", line 328, in answer_with_archive_by_id
resp, prompt = self.qa_handle.get_knowledge_based_conent_test(
File ".\crazy_functions\vector_fns\vector_database.py", line 219, in get_knowledge_based_conent_test
self.vector_store = FAISS.load_local(vs_path, text2vec)
File "C:\Users\LYQ\AppData\Local\Programs\Python\Python39\lib\site-packages\langchain_community\vectorstores\faiss.py", line 1078, in load_local
raise ValueError(
ValueError: The de-serialization relies loading a pickle file. Pickle files can be modified to deliver a malicious payload that results in execution of arbitrary code on your machine.You will need to set allow_dangerous_deserialization to True to enable deserialization. If you do this, make sure that you trust the source of the data. For example, if you are loading a file that you created, and no that no one else has modified the file, then this is safe to do. Do not set this to True if you are loading a file from an untrusted source (e.g., some random site on the internet.).
Screen Shot | 有帮助的截图
Terminal Traceback & Material to Help Reproduce Bugs | 终端traceback(如有) + 帮助我们复现的测试材料样本(如有)
No response
me too
改成true了之后会提示服务器无响应