Method GetAsync
- Namespace
- Qavren.Edge.Embeddings.Onnx
- Assembly
- Qavren.Edge.Embeddings.Onnx.dll
GetAsync(EmbeddingPreset, CancellationToken)
Provisions the vocabulary if needed and returns the cached tokenizer.
ValueTask<IEdgeTokenizer> GetAsync(EmbeddingPreset preset, CancellationToken cancellationToken = default)
Parameters
presetEmbeddingPresetThe preset whose manifest carries the vocabulary.
cancellationTokenCancellationTokenCancellation.
Returns
- ValueTask<IEdgeTokenizer>
The process-wide tokenizer for this preset.