Class OnnxEmbeddingsEdgeBuilderExtensions
- Namespace
- Qavren.Edge.Embeddings.Onnx
- Assembly
- Qavren.Edge.Embeddings.Onnx.dll
Registers on-device embeddings on the Qavren.Edge builder.
public static class OnnxEmbeddingsEdgeBuilderExtensions
- Inheritance
-
OnnxEmbeddingsEdgeBuilderExtensions
- Inherited Members
Methods
- AddOnnxEmbeddings(EdgeBuilder, Action<OnnxEmbeddingOptions>?)
Calls
AddOnnx+AddOnnxModel, then delegates toservices.AddEmbeddingGenerator, which registers BOTH the closed generic and the non-generic forwarding descriptor. Hand-registering would satisfy only one and break half of MEVD and Semantic Kernel.
- AddOnnxEmbeddings(EdgeBuilder, Action<OnnxEmbeddingOptions>?, Action<EmbeddingGeneratorBuilder<string, Embedding<float>>>)
Same, plus the MEAI pipeline for
UseLogging/UseOpenTelemetry/UseDistributedCache. SP2 ships no middleware of its own; those three already exist upstream.
- AddOnnxEmbeddings(EdgeBuilder, string, Action<OnnxEmbeddingOptions>?, Action<EmbeddingGeneratorBuilder<string, Embedding<float>>>?)
Keyed registration, mirroring SP1's named-database convention.
- WarmUpEmbeddingsAtStartup(EdgeBuilder, string?)
Startup order SessionWarmUp (220). Builds this registration's tokenizer, so the first user-visible call does not pay vocabulary parsing. Off by default, because it forces provisioning and spec 10 keeps that lazy. Idempotent: a second call for the same registration adds no second task.