Partager via


OnnxServiceCollectionExtensions Class

Definition

Provides extension methods for the IServiceCollection interface to configure ONNX connectors.

public static class OnnxServiceCollectionExtensions
type OnnxServiceCollectionExtensions = class
Public Module OnnxServiceCollectionExtensions
Inheritance
OnnxServiceCollectionExtensions

Methods

AddBertOnnxTextEmbeddingGeneration(IServiceCollection, Stream, Stream, BertOnnxOptions, String)

Adds a text embedding generation service using a BERT ONNX model.

AddBertOnnxTextEmbeddingGeneration(IServiceCollection, String, String, BertOnnxOptions, String)

Adds a text embedding generation service using a BERT ONNX model.

AddOnnxRuntimeGenAIChatCompletion(IServiceCollection, String, String, String)

Add OnnxRuntimeGenAI Chat Completion services to the specified service collection.

Applies to