Partager 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<EmbeddingGeneratorBuilder<TInput, TEmbedding>,IEmbeddingGenerator<TInput,TEmbedding>>)

Adds a embedding generator to the IServiceCollection.

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

Adds an embedding generator to the IServiceCollection.

Applies to