EmbeddingGeneratorBuilder<TInput,TEmbedding> Constructors
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
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.