Table of Contents

Constructor OnnxEmbeddingGeneratorInfo

Namespace
Qavren.Edge.Embeddings.Onnx
Assembly
Qavren.Edge.Embeddings.Onnx.dll

OnnxEmbeddingGeneratorInfo(string, string, int, int, EmbeddingPooling, bool, string?, string?, EdgeTokenizerKind, int, string, string, ExecutionProviderReport)

What one generator is, as diagnostics and a consumer see it.

public OnnxEmbeddingGeneratorInfo(string PresetId, string ModelId, int Dimensions, int MaxSequenceLength, EmbeddingPooling Pooling, bool Normalize, string? QueryPrefix, string? DocumentPrefix, EdgeTokenizerKind TokenizerKind, int VocabularySize, string GraphPath, string GraphSha256, ExecutionProviderReport ExecutionProviders)

Parameters

PresetId string

The preset's id.

ModelId string

The manifest's model id, the same string OnnxSessionInfo.ModelId carries.

Dimensions int

The fixed embedding width.

MaxSequenceLength int

The preset's token ceiling.

Pooling EmbeddingPooling

How the batch pools.

Normalize bool

Whether the pooled vector is L2-normalised.

QueryPrefix string

The query-side instruction prefix, or null.

DocumentPrefix string

The document-side instruction prefix, or null.

TokenizerKind EdgeTokenizerKind

Which tokenizer family the preset uses.

VocabularySize int

The vocabulary size, or 0 before the first embed.

GraphPath string

The absolute path ORT was handed, or empty before the first embed.

GraphSha256 string

The graph's digest, or empty before the first embed.

ExecutionProviders ExecutionProviderReport

Every provider attempt, in order, and the one that was accepted.