Method GetService
- Namespace
- Qavren.Edge.Embeddings.Onnx
- Assembly
- Qavren.Edge.Embeddings.Onnx.dll
GetService(Type, object?)
Returns, in order: this when assignable; EmbeddingGeneratorMetadata;
OnnxEmbeddingGeneratorInfo; EmbeddingPreset;
OnnxSessionInfo; IEdgeTokenizer; and, for serviceKey
QueryServiceKey, the query-prefixed sibling generator -
returned for a serviceType of either the non-generic
IEmbeddingGenerator or the closed generic, because the vector store asks with
the non-generic type while a direct caller usually asks with the closed one.
public object? GetService(Type serviceType, object? serviceKey = null)
Parameters
Returns
- object
The service, or null.