> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/guardrails/llms.txt.
> For full documentation content, see https://docs.nvidia.com/nemo/guardrails/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/guardrails/_mcp/server.

# nemoguardrails.embeddings.providers.fastembed

## Module Contents

### Classes

| Name                                                                                                | Description                      |
| --------------------------------------------------------------------------------------------------- | -------------------------------- |
| [`FastEmbedEmbeddingModel`](#nemoguardrails-embeddings-providers-fastembed-FastEmbedEmbeddingModel) | Embedding model using FastEmbed. |

### Functions

| Name                                                                          | Description |
| ----------------------------------------------------------------------------- | ----------- |
| [`get_executor`](#nemoguardrails-embeddings-providers-fastembed-get_executor) | -           |

### API

```python
class nemoguardrails.embeddings.providers.fastembed.FastEmbedEmbeddingModel(
    embedding_model: str,
    kwargs = {}
)
```

**Bases:** [EmbeddingModel](/guardrails-python-sdk/nemoguardrails/embeddings/providers/base#nemoguardrails-embeddings-providers-base-EmbeddingModel)

Embedding model using FastEmbed.

This class represents an embedding model that utilizes the FastEmbed library
for generating sentence embeddings.

**Parameters:**

The name or path of the pre-trained model.

```python
nemoguardrails.embeddings.providers.fastembed.FastEmbedEmbeddingModel.encode(
    documents: typing.List[str]
) -> typing.List[typing.List[float]]
```

Encode a list of documents into their corresponding sentence embeddings.

**Parameters:**

The list of documents to be encoded.

**Returns:** `List[List[float]]`

List\[List\[float]]: The list of sentence embeddings, where each embedding is a list of floats.

```python
nemoguardrails.embeddings.providers.fastembed.FastEmbedEmbeddingModel.encode_async(
    documents: typing.List[str]
) -> typing.List[typing.List[float]]
```

async

Encode a list of documents into their corresponding sentence embeddings.

**Parameters:**

The list of documents to be encoded.

**Returns:** `List[List[float]]`

List\[List\[float]]: The list of sentence embeddings, where each embedding is a list of floats.

```python
nemoguardrails.embeddings.providers.fastembed.get_executor()
```