zeno-chroma
ChromaDB-backed KnowledgeStore
adapter for Zeno.
Persists facts and documents in a local Chroma collection with each
row stamped by user_id so multi-tenant isolation is enforced at
query time via Chroma's where filter rather than post-fetch
filtering. Plugs into the ThreeLayer memory binder as the
knowledge and (optionally) the user_memory backing.
Install
uv add 'zeno-framework[chroma]'
# or, without the AI package:
uv add zeno-chroma
Features
- Persistent local store via
chromadb.PersistentClient— no server to run, just a directory user_id-scoped search using Chroma'swherefilter (S7 isolation is structural, not advisory)- Cosine similarity, distance → similarity score conversion
(
1.0 - distance, clamped to[0, 1]) - Synchronous Chroma client wrapped in
asyncio.to_threadso embeddings and queries don't block the event loop - Default Chroma embedding function; pass
embedding_function=to override - Pairs with
VectorBackedUserMemoryStoreto also serve user-memory reads/writes from the same collection
Minimal usage
import asyncio
from pathlib import Path
from zeno.agent import Agent
from zeno.app import ZenoApp
from zeno.builtin_tools import recall, remember
from zeno.channels.cli import CliChannel
from zeno.chroma import ChromaKnowledgeStore
from zeno.memory.sqlite.conversation_store import SqliteConversationStore
from zeno.memory.sqlite.session_store import SqliteSessionStore
from zeno.memory.three_layer import ThreeLayer
from zeno.memory.vector_backed.user_memory_store import VectorBackedUserMemoryStore
from zeno.testing import FakeProvider
async def main() -> None:
data_dir = Path("./.zeno")
data_dir.mkdir(exist_ok=True)
knowledge = ChromaKnowledgeStore(persist_dir=data_dir / "chroma")
memory = ThreeLayer(
session=SqliteSessionStore(data_dir / "sessions.db"),
user_memory=VectorBackedUserMemoryStore(knowledge_store=knowledge),
knowledge=knowledge,
conversation=SqliteConversationStore(data_dir / "conversations.db"),
)
app = ZenoApp(
agent=Agent(
name="root",
instructions="Use `recall` to look things up and `remember` to store facts.",
tools=[recall, remember],
),
channels=[CliChannel()],
provider=FakeProvider(),
memory=memory,
)
await app.run()
asyncio.run(main())
The first call to remember writes a row tagged with the active
user_id. Subsequent recall calls only see rows that user inserted —
cross-user isolation is enforced by the where={"user_id": ...}
filter on every query.
Testing
uv run pytest packages/zeno-chroma
Tests run against a temporary Chroma directory so no global state
leaks between cases. The contract suite shared with zeno-qdrant
guarantees both adapters honour the same KnowledgeStore semantics.
See also
zeno-qdrant— the other first-partyKnowledgeStoreadapter.docs/memory.md— three-layer memory model.docs/adapters.md— writing your ownKnowledgeStore.
Part of the Zeno framework.
Metadata
Release files for zeno-chroma 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zeno_chroma-1.1.0.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zeno_chroma-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / zeno_chroma-1.1.0.tar.gz
| Download URL | zeno_chroma-1.1.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9cbe5139be15679cabf6c33d16a964f31de947f0396a2aec8274e333341a9bfc
|
|
BLAKE2b-256 checksum How to use checksums |
99afaf9c084d27d97fb553e510acd7b221661b2c319dcc41a33b509128276386
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 1, 2026.
Transparency logRelease files / zeno_chroma-1.1.0-py3-none-any.whl
| Download URL | zeno_chroma-1.1.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a815d6d54faafb9079ab2db4a6c5ec2b9f6319a1fdb5a8e8d0de7f2e7023944
|
|
BLAKE2b-256 checksum How to use checksums |
a52cbfa78250d80d7407143fb3d63694ac6f443c55a44dc760a4acd0a4a1d9e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 1, 2026.
Transparency log