mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-18 02:09:48 +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
|
|
@ -141,13 +141,6 @@ class WeaviateMemoryAdapter(
|
|||
)
|
||||
self.cache[memory_bank.identifier] = index
|
||||
|
||||
async def list_memory_banks(self) -> List[MemoryBank]:
|
||||
# TODO: right now the Llama Stack is the source of truth for these banks. That is
|
||||
# not ideal. It should be Weaviate which is the source of truth. Unfortunately,
|
||||
# list() happens at Stack startup when the Weaviate client (credentials) is not
|
||||
# yet available. We need to figure out a way to make this work.
|
||||
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