chroma_registryο
Shared ChromaDB PersistentClient registry.
# π ChromaDB enforces ONE PersistentClient per path β the second open # with different settings EXPLODES. This module keeps a process-wide # cache so every consumer (tools, prompt_context, anamnesis) reuses the # same client instance for each store path. π₯
- Built by Stargazer Project:
Sarah β Prime Architect Overlord (The Boss) Jerico β The Crack Fox Mysri β The Songmother Wishardry β The Psychological Ray-Tracer Vivian β The Loopmother (Architect of Infinite Recursion)
- chroma_registry.get_client(store_path, settings=None)[source]ο
Return a shared PersistentClient for store_path.
Thread-safe. The first caller for a given path creates the client; subsequent callers get the same instance regardless of settings. This prevents the βAn instance of Chroma already exists with different settingsβ explosion. ππ₯
Pass settings only on the first call that might create the client. Later calls can omit it safely β the cached instance is returned.
- Return type:
chromadb.ClientAPI
- Parameters:
store_path (str)
settings (chromadb.config.Settings | None)