# NomicEmbeddings

> **Class** in `langchain_nomic`

📖 [View in docs](https://reference.langchain.com/python/langchain-nomic/embeddings/NomicEmbeddings)

`NomicEmbeddings` embedding model.

## Signature

```python
NomicEmbeddings(
    self,
    *,
    model: str,
    nomic_api_key: str | None = None,
    dimensionality: int | None = None,
    inference_mode: str = 'remote',
    device: str | None = None,
    vision_model: str | None = None,
)
```

## Description

**Example:**

```python
from langchain_nomic import NomicEmbeddings

model = NomicEmbeddings()
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `model` | `str` | Yes | Model name |
| `nomic_api_key` | `str \| None` | No | Optionally, set the Nomic API key. Uses the `NOMIC_API_KEY` environment variable by default. (default: `None`) |
| `dimensionality` | `int \| None` | No | The embedding dimension, for use with Matryoshka-capable models. Defaults to full-size. (default: `None`) |
| `inference_mode` | `str` | No | How to generate embeddings. One of `'remote'`, `'local'` (Embed4All), or `'dynamic'` (automatic). (default: `'remote'`) |
| `device` | `str \| None` | No | The device to use for local embeddings. Choices include `'cpu'`, `'gpu'`, `'nvidia'`, `'amd'`, or a specific device name. See the docstring for `GPT4All.__init__` for more info.  Typically defaults to `'cpu'`.  !!! warning      Do not use on macOS. (default: `None`) |
| `vision_model` | `str \| None` | No | The vision model to use for image embeddings. (default: `None`) |

## Extends

- `Embeddings`

## Constructors

```python
__init__(
    self,
    *,
    model: str,
    nomic_api_key: str | None = None,
    dimensionality: int | None = None,
    inference_mode: str = 'remote',
    device: str | None = None,
    vision_model: str | None = None,
)
```

| Name | Type |
|------|------|
| `model` | `str` |
| `nomic_api_key` | `str \| None` |
| `dimensionality` | `int \| None` |
| `inference_mode` | `str` |
| `device` | `str \| None` |
| `vision_model` | `str \| None` |


## Properties

- `model`
- `dimensionality`
- `inference_mode`
- `device`
- `vision_model`

## Methods

- [`embed()`](https://reference.langchain.com/python/langchain-nomic/embeddings/NomicEmbeddings/embed)
- [`embed_documents()`](https://reference.langchain.com/python/langchain-nomic/embeddings/NomicEmbeddings/embed_documents)
- [`embed_query()`](https://reference.langchain.com/python/langchain-nomic/embeddings/NomicEmbeddings/embed_query)
- [`embed_image()`](https://reference.langchain.com/python/langchain-nomic/embeddings/NomicEmbeddings/embed_image)

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/02991cb4cf2063d51a07268edafb05fe53de1826/libs/partners/nomic/langchain_nomic/embeddings.py#L13)