Update client-sdk test config option handling

Fix test
This commit is contained in:
Ashwin Bharambe 2025-01-31 15:29:55 -08:00
parent a67324c975
commit 95786d5bdc

View file

@ -179,6 +179,10 @@ class FaissVectorIOImpl(VectorIO, VectorDBsProtocolPrivate):
return [i.vector_db for i in self.cache.values()] return [i.vector_db for i in self.cache.values()]
async def unregister_vector_db(self, vector_db_id: str) -> None: async def unregister_vector_db(self, vector_db_id: str) -> None:
if vector_db_id not in self.cache:
logger.warning(f"Vector DB {vector_db_id} not found")
return
await self.cache[vector_db_id].index.delete() await self.cache[vector_db_id].index.delete()
del self.cache[vector_db_id] del self.cache[vector_db_id]
await self.kvstore.delete(f"{VECTOR_DBS_PREFIX}{vector_db_id}") await self.kvstore.delete(f"{VECTOR_DBS_PREFIX}{vector_db_id}")