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
PresetIdstringThe preset's id.
ModelIdstringThe manifest's model id, the same string
OnnxSessionInfo.ModelIdcarries.DimensionsintThe fixed embedding width.
MaxSequenceLengthintThe preset's token ceiling.
PoolingEmbeddingPoolingHow the batch pools.
NormalizeboolWhether the pooled vector is L2-normalised.
QueryPrefixstringThe query-side instruction prefix, or null.
DocumentPrefixstringThe document-side instruction prefix, or null.
TokenizerKindEdgeTokenizerKindWhich tokenizer family the preset uses.
VocabularySizeintThe vocabulary size, or 0 before the first embed.
GraphPathstringThe absolute path ORT was handed, or empty before the first embed.
GraphSha256stringThe graph's digest, or empty before the first embed.
ExecutionProvidersExecutionProviderReportEvery provider attempt, in order, and the one that was accepted.