Compartilhar via


EmbeddingGeneratorBuilderServiceCollectionExtensions Class

Definition

Provides extension methods for registering IEmbeddingGenerator<TInput,TEmbedding> with a IServiceCollection.

public ref class EmbeddingGeneratorBuilderServiceCollectionExtensions abstract sealed
public static class EmbeddingGeneratorBuilderServiceCollectionExtensions
type EmbeddingGeneratorBuilderServiceCollectionExtensions = class
Public Module EmbeddingGeneratorBuilderServiceCollectionExtensions
Inheritance
EmbeddingGeneratorBuilderServiceCollectionExtensions

Methods

AddEmbeddingGenerator<TInput,TEmbedding>(IServiceCollection, Func<IServiceProvider,IEmbeddingGenerator<TInput,TEmbedding>>)

Registers a singleton embedding generator in the IServiceCollection.

AddEmbeddingGenerator<TInput,TEmbedding>(IServiceCollection, IEmbeddingGenerator<TInput,TEmbedding>)

Registers a singleton embedding generator in the IServiceCollection.

AddKeyedEmbeddingGenerator<TInput,TEmbedding>(IServiceCollection, Object, Func<IServiceProvider,IEmbeddingGenerator<TInput,TEmbedding>>)

Registers a keyed singleton embedding generator in the IServiceCollection.

AddKeyedEmbeddingGenerator<TInput,TEmbedding>(IServiceCollection, Object, IEmbeddingGenerator<TInput,TEmbedding>)

Registers a keyed singleton embedding generator in the IServiceCollection.

Applies to