> ## Documentation Index
> Fetch the complete documentation index at: https://askmarvin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# chroma

# `marvin.memory.providers.chroma`

## Classes

### `ChromaMemory`

```python theme={null}
class ChromaMemory(client: chromadb.ClientAPI = (lambda: chromadb.PersistentClient(path=(str(marvin.settings.home_path / 'memory/chroma'))))(), collection_name: str = 'memory-{key}')
```

**Methods:**

* **`add`**
  ```python theme={null}
  def add(self, memory_key: str, content: str) -> str
  ```
* **`delete`**
  ```python theme={null}
  def delete(self, memory_key: str, memory_id: str)
  ```
* **`get_collection`**
  ```python theme={null}
  def get_collection(self, memory_key: str) -> chromadb.Collection
  ```
* **`search`**
  ```python theme={null}
  def search(self, memory_key: str, query: str, n: int = 20) -> dict[str, str]
  ```

## Functions

### `ChromaCloudMemory`

```python theme={null}
def ChromaCloudMemory(tenant: str | None = None, database: str | None = None, api_key: str | None = None, **kwargs: Any = {}) -> ChromaMemory
```

### `ChromaEphemeralMemory`

```python theme={null}
def ChromaEphemeralMemory(**kwargs: Any = {}) -> ChromaMemory
```

### `ChromaPersistentMemory`

```python theme={null}
def ChromaPersistentMemory(path: str | None = None, **kwargs: Any = {}) -> ChromaMemory
```

***

**Parent Module:** [`providers`](marvin-memory-providers)
