installEmbeddingModel static method

EmbeddingInstallationBuilder installEmbeddingModel()

Start building an embedding model installation

Returns type-safe builder for installing embedding models (requires model + tokenizer). The model will be automatically set as the active embedding model after installation.

Example:

await FlutterGemma.installEmbeddingModel()
  .modelFromNetwork('https://example.com/model.tflite', token: 'hf_...')
  .tokenizerFromNetwork('https://example.com/tokenizer.model', token: 'hf_...')
  .withModelProgress((p) => print('Model: $p%'))
  .withTokenizerProgress((p) => print('Tokenizer: $p%'))
  .install();

Implementation

static EmbeddingInstallationBuilder installEmbeddingModel() {
  return EmbeddingInstallationBuilder();
}