EmbeddingOptions

class EmbeddingOptions


Options for discovering and configuring EmbeddingModel instances via EmbeddingGeneration.getEmbeddingModels.

Summary

Public constructors

EmbeddingOptions(modelSignature: String?, executor: ExecutorService?)

Public properties

ExecutorService?

The ExecutorService on which background tasks should be run, such as model downloading and inference.

String?

The signature of the desired embedding model.

Public constructors

EmbeddingOptions

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

Public properties

executor

val executor: ExecutorService?

The ExecutorService 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, EmbeddingGeneration.getEmbeddingModels 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).