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

# lance

# `marvin.memory.providers.lance`

## Classes

### `LanceMemory`

```python theme={null}
class LanceMemory(uri: Path = marvin.settings.home_path / 'memory' / 'lancedb', table_name: str = 'memory-{key}', embedding_fn: Callable[..., Any] = (lambda: get_registry().get('openai').create(name='text-embedding-ada-002'))(), _cached_model: LanceModel | None = None)
```

**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_db`**
  ```python theme={null}
  def get_db(self) -> lancedb.DBConnection
  ```
* **`get_model`**
  ```python theme={null}
  def get_model(self) -> LanceModel
  ```
* **`get_table`**
  ```python theme={null}
  def get_table(self, memory_key: str) -> lancedb.table.Table
  ```
* **`search`**
  ```python theme={null}
  def search(self, memory_key: str, query: str, n: int = 20) -> dict[str, str]
  ```

***

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