# EmbeddingOptions


```
class EmbeddingOptions
```

<br />

*** ** * ** ***

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

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/embedding/EmbeddingOptions#EmbeddingOptions(kotlin.String,java.util.concurrent.ExecutorService)(modelSignature: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?, executor: https://developer.android.com/reference/java/util/concurrent/ExecutorService.html?)` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/java/util/concurrent/ExecutorService.html?` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/embedding/EmbeddingOptions#executor()` The `https://developer.android.com/reference/java/util/concurrent/ExecutorService.html` on which background tasks should be run, such as model downloading and inference. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/embedding/EmbeddingOptions#modelSignature()` The signature of the desired embedding model. |

## Public constructors

### EmbeddingOptions

```
EmbeddingOptions(
    modelSignature: String? = null,
    executor: ExecutorService? = null
)
```

## Public properties

### executor

```
val executor: ExecutorService?
```

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.

### modelSignature

```
val modelSignature: String?
```

The signature of the desired embedding model. If `null` or empty, `https://developers.google.com/android/reference/kotlin/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).