Share via


EmbeddingGeneratorBuilder<TInput,TEmbedding>.Use Method

Definition

Overloads

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

Use(IEmbeddingGenerator<TInput,TEmbedding>)

public:
 Microsoft::Extensions::AI::IEmbeddingGenerator<TInput, TEmbedding> ^ Use(Microsoft::Extensions::AI::IEmbeddingGenerator<TInput, TEmbedding> ^ innerGenerator);
public Microsoft.Extensions.AI.IEmbeddingGenerator<TInput,TEmbedding> Use (Microsoft.Extensions.AI.IEmbeddingGenerator<TInput,TEmbedding> innerGenerator);
member this.Use : Microsoft.Extensions.AI.IEmbeddingGenerator<'Input, 'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)> -> Microsoft.Extensions.AI.IEmbeddingGenerator<'Input, 'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)>
Public Function Use (innerGenerator As IEmbeddingGenerator(Of TInput, TEmbedding)) As IEmbeddingGenerator(Of TInput, TEmbedding)

Parameters

Returns

Applies to

Use(Func<IEmbeddingGenerator<TInput,TEmbedding>,IEmbeddingGenerator<TInput,TEmbedding>>)

public:
 Microsoft::Extensions::AI::EmbeddingGeneratorBuilder<TInput, TEmbedding> ^ Use(Func<Microsoft::Extensions::AI::IEmbeddingGenerator<TInput, TEmbedding> ^, Microsoft::Extensions::AI::IEmbeddingGenerator<TInput, TEmbedding> ^> ^ generatorFactory);
public Microsoft.Extensions.AI.EmbeddingGeneratorBuilder<TInput,TEmbedding> Use (Func<Microsoft.Extensions.AI.IEmbeddingGenerator<TInput,TEmbedding>,Microsoft.Extensions.AI.IEmbeddingGenerator<TInput,TEmbedding>> generatorFactory);
member this.Use : Func<Microsoft.Extensions.AI.IEmbeddingGenerator<'Input, 'Embedding>, Microsoft.Extensions.AI.IEmbeddingGenerator<'Input, 'Embedding>> -> Microsoft.Extensions.AI.EmbeddingGeneratorBuilder<'Input, 'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)>
Public Function Use (generatorFactory As Func(Of IEmbeddingGenerator(Of TInput, TEmbedding), IEmbeddingGenerator(Of TInput, TEmbedding))) As EmbeddingGeneratorBuilder(Of TInput, TEmbedding)

Parameters

generatorFactory
Func<IEmbeddingGenerator<TInput,TEmbedding>,IEmbeddingGenerator<TInput,TEmbedding>>

Returns

Applies to

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

public:
 Microsoft::Extensions::AI::EmbeddingGeneratorBuilder<TInput, TEmbedding> ^ Use(Func<IServiceProvider ^, Microsoft::Extensions::AI::IEmbeddingGenerator<TInput, TEmbedding> ^, Microsoft::Extensions::AI::IEmbeddingGenerator<TInput, TEmbedding> ^> ^ generatorFactory);
public Microsoft.Extensions.AI.EmbeddingGeneratorBuilder<TInput,TEmbedding> Use (Func<IServiceProvider,Microsoft.Extensions.AI.IEmbeddingGenerator<TInput,TEmbedding>,Microsoft.Extensions.AI.IEmbeddingGenerator<TInput,TEmbedding>> generatorFactory);
member this.Use : Func<IServiceProvider, Microsoft.Extensions.AI.IEmbeddingGenerator<'Input, 'Embedding>, Microsoft.Extensions.AI.IEmbeddingGenerator<'Input, 'Embedding>> -> Microsoft.Extensions.AI.EmbeddingGeneratorBuilder<'Input, 'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)>
Public Function Use (generatorFactory As Func(Of IServiceProvider, IEmbeddingGenerator(Of TInput, TEmbedding), IEmbeddingGenerator(Of TInput, TEmbedding))) As EmbeddingGeneratorBuilder(Of TInput, TEmbedding)

Parameters

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

Returns

Applies to