improve memory test, but it fails on chromadb :/

This commit is contained in:
Ashwin Bharambe 2024-10-07 23:09:31 -07:00 committed by Ashwin Bharambe
parent 4ab6e1b81a
commit f21ad1173e
2 changed files with 56 additions and 13 deletions

View file

@ -99,7 +99,7 @@ class ChromaMemoryAdapter(Memory):
memory_bank.type == MemoryBankType.vector.value
), f"Only vector banks are supported {memory_bank.type}"
collection = await self.client.create_collection(
collection = await self.client.get_or_create_collection(
name=memory_bank.identifier,
)
bank_index = BankWithIndex(