create static method

Future<TextEmbedder> create(
  1. TextEmbedderOptions options, {
  2. TextRuntime? runtime,
})

Creates an embedder using runtime, or the active platform adapter.

Implementation

static Future<TextEmbedder> create(TextEmbedderOptions options, {TextRuntime? runtime}) async =>
    TextEmbedder._(await (runtime ?? defaultTextRuntime).createTextEmbedder(options));