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.
LLMs/Chat Models Embedding Models Prompts / Prompt Templates / Prompt Selectors Output Parsers Document Loaders Vector Stores / Retrievers Memory Agents / Agent Executors Tools / Toolkits Chains Callbacks/Tracing Async Reproduction Error: RuntimeError: Error in __cdecl faiss::FileIOReader::FileIOReade...