Fix dead lock problem for FAISS vectory storage

This commit is contained in:
yangdx
2025-04-26 00:48:30 +08:00
parent dff73f078d
commit d8c530364f

View File

@@ -362,7 +362,6 @@ class FaissVectorDBStorage(BaseVectorStorage):
logger.warning( logger.warning(
f"Storage for FAISS {self.namespace} was updated by another process, reloading..." f"Storage for FAISS {self.namespace} was updated by another process, reloading..."
) )
async with self._storage_lock:
self._index = faiss.IndexFlatIP(self._dim) self._index = faiss.IndexFlatIP(self._dim)
self._id_to_meta = {} self._id_to_meta = {}
self._load_faiss_index() self._load_faiss_index()