Fix dead lock problem for FAISS vectory storage
This commit is contained in:
parent
dff73f078d
commit
d8c530364f
1 changed files with 5 additions and 6 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue