mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-18 12:49:47 +00:00
Allow using an "inline" version of Chroma using PersistentClient
This commit is contained in:
parent
e2054d53e4
commit
44ab7d93fb
9 changed files with 71 additions and 69 deletions
|
|
@ -127,11 +127,6 @@ class QdrantVectorMemoryAdapter(Memory, MemoryBanksProtocolPrivate):
|
|||
|
||||
self.cache[memory_bank.identifier] = index
|
||||
|
||||
async def list_memory_banks(self) -> List[MemoryBank]:
|
||||
# Qdrant doesn't have collection level metadata to store the bank properties
|
||||
# So we only return from the cache value
|
||||
return [i.bank for i in self.cache.values()]
|
||||
|
||||
async def _get_and_cache_bank_index(self, bank_id: str) -> Optional[BankWithIndex]:
|
||||
if bank_id in self.cache:
|
||||
return self.cache[bank_id]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue