open method
Opens a new encoder, which the caller disposes. Throws a
WayfinderException with code model-missing or model-invalid when
the model cannot be used.
Implementation
@override
Future<WayfinderEncoder> open() async {
final embedder =
_create?.call() ?? DeterministicTestEmbedder(modelName: model);
opened.add(embedder);
return WayfinderEncoder(embedder, _countTokens, maxTokens);
}