EmbeddingGeneratorBuilder<TInput,TEmbedding>.Use Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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
- innerGenerator
- IEmbeddingGenerator<TInput,TEmbedding>
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.