mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-29 03:14:19 +00:00
versioned persistence key prefixes
This commit is contained in:
parent
cb77426fb5
commit
8035fa1869
2 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ class DistributionRegistry(Protocol):
|
||||||
async def register(self, obj: RoutableObjectWithProvider) -> bool: ...
|
async def register(self, obj: RoutableObjectWithProvider) -> bool: ...
|
||||||
|
|
||||||
|
|
||||||
KEY_FORMAT = "distributions:registry:{}"
|
KEY_FORMAT = "distributions:registry:v1::{}"
|
||||||
|
|
||||||
|
|
||||||
class DiskDistributionRegistry(DistributionRegistry):
|
class DiskDistributionRegistry(DistributionRegistry):
|
||||||
|
|
|
@ -30,7 +30,7 @@ from .config import FaissImplConfig
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
MEMORY_BANKS_PREFIX = "memory_banks:"
|
MEMORY_BANKS_PREFIX = "memory_banks:v1::"
|
||||||
|
|
||||||
|
|
||||||
class FaissIndex(EmbeddingIndex):
|
class FaissIndex(EmbeddingIndex):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue