EmbeddingGeneratorBuilder<TInput,TEmbedding> Constructors

Definition

Overloads

EmbeddingGeneratorBuilder<TInput,TEmbedding>(IEmbeddingGenerator<TInput,TEmbedding>)

Initializes a new instance of the EmbeddingGeneratorBuilder<TInput,TEmbedding> class.

EmbeddingGeneratorBuilder<TInput,TEmbedding>(Func<IServiceProvider,IEmbeddingGenerator<TInput,TEmbedding>>)

Initializes a new instance of the EmbeddingGeneratorBuilder<TInput,TEmbedding> class.

EmbeddingGeneratorBuilder<TInput,TEmbedding>(IEmbeddingGenerator<TInput,TEmbedding>)

Source:
EmbeddingGeneratorBuilder.cs

Initializes a new instance of the EmbeddingGeneratorBuilder<TInput,TEmbedding> class.

public:
 EmbeddingGeneratorBuilder(Microsoft::Extensions::AI::IEmbeddingGenerator<TInput, TEmbedding> ^ innerGenerator);
public EmbeddingGeneratorBuilder (Microsoft.Extensions.AI.IEmbeddingGenerator<TInput,TEmbedding> innerGenerator);
new Microsoft.Extensions.AI.EmbeddingGeneratorBuilder<'Input, 'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)> : Microsoft.Extensions.AI.IEmbeddingGenerator<'Input, 'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)> -> Microsoft.Extensions.AI.EmbeddingGeneratorBuilder<'Input, 'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)>
Public Sub New (innerGenerator As IEmbeddingGenerator(Of TInput, TEmbedding))

Parameters

innerGenerator
IEmbeddingGenerator<TInput,TEmbedding>

The inner EmbeddingGeneratorBuilder<TInput,TEmbedding> that represents the underlying backend.

Applies to

EmbeddingGeneratorBuilder<TInput,TEmbedding>(Func<IServiceProvider,IEmbeddingGenerator<TInput,TEmbedding>>)

Source:
EmbeddingGeneratorBuilder.cs

Initializes a new instance of the EmbeddingGeneratorBuilder<TInput,TEmbedding> class.

public:
 EmbeddingGeneratorBuilder(Func<IServiceProvider ^, Microsoft::Extensions::AI::IEmbeddingGenerator<TInput, TEmbedding> ^> ^ innerGeneratorFactory);
public EmbeddingGeneratorBuilder (Func<IServiceProvider,Microsoft.Extensions.AI.IEmbeddingGenerator<TInput,TEmbedding>> innerGeneratorFactory);
new Microsoft.Extensions.AI.EmbeddingGeneratorBuilder<'Input, 'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)> : Func<IServiceProvider, Microsoft.Extensions.AI.IEmbeddingGenerator<'Input, 'Embedding>> -> Microsoft.Extensions.AI.EmbeddingGeneratorBuilder<'Input, 'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)>
Public Sub New (innerGeneratorFactory As Func(Of IServiceProvider, IEmbeddingGenerator(Of TInput, TEmbedding)))

Parameters

innerGeneratorFactory
Func<IServiceProvider,IEmbeddingGenerator<TInput,TEmbedding>>

A callback that produces the inner EmbeddingGeneratorBuilder<TInput,TEmbedding> that represents the underlying backend.

Applies to