# EmbeddingOptions


```
public final class EmbeddingOptions
```

<br />

*** ** * ** ***

Options for discovering and configuring `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/EmbeddingModel` instances via `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/EmbeddingGeneration#getEmbeddingModels(kotlin.String)`.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/EmbeddingOptions#EmbeddingOptions(kotlin.String,java.util.concurrent.ExecutorService)(https://developer.android.com/reference/java/lang/String.html modelSignature, https://developer.android.com/reference/java/util/concurrent/ExecutorService.html executor)` |

| ### Public methods |
|---|---|
| `final https://developer.android.com/reference/java/util/concurrent/ExecutorService.html` | `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/EmbeddingOptions#getExecutor()()` The `https://developer.android.com/reference/java/util/concurrent/ExecutorService.html` on which background tasks should be run, such as model downloading and inference. |
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/EmbeddingOptions#getModelSignature()()` The signature of the desired embedding model. |

## Public constructors

### EmbeddingOptions

```
public EmbeddingOptions(String modelSignature, ExecutorService executor)
```

## Public methods

### getExecutor

```
public final ExecutorService getExecutor()
```

The `https://developer.android.com/reference/java/util/concurrent/ExecutorService.html` on which background tasks should be run, such as model downloading and inference. If no value is specified, a default background thread pool will be used.

### getModelSignature

```
public final String getModelSignature()
```

The signature of the desired embedding model. If `null` or empty, `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/EmbeddingGeneration#getEmbeddingModels(kotlin.String)` returns all available embedding models on the device; if a non-empty signature is provided, only models matching that signature are returned (or an empty list if none match).