Skip to main content

Setup

Example

agent_with_knowledge.py

For hosted ChromaDB (Chroma Cloud)

Async Support ⚡

ChromaDB also supports asynchronous operations, enabling concurrency and leading to better performance.

async_chroma_db.py
Use ainsert() and aprint_response() methods with asyncio.run() for non-blocking operations in high-throughput applications.
ChromaDB has a batch size limit due to SQLite constraints. When inserting documents that exceed this limit, Agno automatically splits them into smaller batches. The batch size is auto-detected from ChromaDB’s server configuration.You can also set batch_size to override the auto-detected value.

ChromaDb Params