---
title: Netmind AI Embeddings
 | Developer Documentation
---

This notebook shows how to use `Netmind AI` for embeddings.

Visit <https://www.netmind.ai/> and sign up to get an API key.

## Setup

If you’re opening this Notebook on colab, you will probably need to install LlamaIndex 🦙.

```
%pip install llama-index-embeddings-netmind
```

```
!pip install llama-index
```

```
# You can set the API key in the embeddings or env
# import os
# os.environ["NETMIND_API_KEY"] = "your-api-key"


from llama_index.embeddings.netmind import NetmindEmbedding


embed_model = NetmindEmbedding(
    model_name="BAAI/bge-m3", api_key="your-api-key"
)
```

## Get Embeddings

```
embeddings = embed_model.get_text_embedding("hello world")
```

```
print(len(embeddings))
```

```
1024
```

```
print(embeddings[:5])
```

```
[-0.04039396345615387, 0.03703497350215912, -0.02897450141608715, 0.016117244958877563, -0.03569157049059868]
```
