diff --git a/libs/chatchat-server/chatchat/server/knowledge_base/kb_cache/faiss_cache.py b/libs/chatchat-server/chatchat/server/knowledge_base/kb_cache/faiss_cache.py index ec8adba2..36d21162 100644 --- a/libs/chatchat-server/chatchat/server/knowledge_base/kb_cache/faiss_cache.py +++ b/libs/chatchat-server/chatchat/server/knowledge_base/kb_cache/faiss_cache.py @@ -110,7 +110,8 @@ class KBFaissPool(_FaissPool): if os.path.isfile(os.path.join(vs_path, "index.faiss")): embeddings = get_Embeddings(embed_model=embed_model) - vector_store = FAISS.load_local(vs_path, embeddings, normalize_L2=True) + vector_store = FAISS.load_local(vs_path, embeddings, normalize_L2=True, + allow_dangerous_deserialization=True) elif create: # create an empty vector store if not os.path.exists(vs_path):