Merge pull request #1465 from danielaskdd/main

Hot Fix: solved dead lock problem for FAISS vector storage
This commit is contained in:
Daniel.y 2025-04-26 00:53:44 +08:00 committed by GitHub
commit 2d5401d475
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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()