Fix dead lock problem for FAISS vectory storage
This commit is contained in:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user