Table of Contents

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

serviceType Type

The requested service type.

serviceKey object

The service key, or null.

Returns

object

The service, or null.