ConfigureOptionsEmbeddingGenerator<TInput,TEmbedding> Constructor
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.
Initializes a new instance of the ConfigureOptionsEmbeddingGenerator<TInput,TEmbedding> class with the
specified configure
callback.
public:
ConfigureOptionsEmbeddingGenerator(Microsoft::Extensions::AI::IEmbeddingGenerator<TInput, TEmbedding> ^ innerGenerator, Action<Microsoft::Extensions::AI::EmbeddingGenerationOptions ^> ^ configure);
public ConfigureOptionsEmbeddingGenerator (Microsoft.Extensions.AI.IEmbeddingGenerator<TInput,TEmbedding> innerGenerator, Action<Microsoft.Extensions.AI.EmbeddingGenerationOptions> configure);
new Microsoft.Extensions.AI.ConfigureOptionsEmbeddingGenerator<'Input, 'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)> : Microsoft.Extensions.AI.IEmbeddingGenerator<'Input, 'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)> * Action<Microsoft.Extensions.AI.EmbeddingGenerationOptions> -> Microsoft.Extensions.AI.ConfigureOptionsEmbeddingGenerator<'Input, 'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)>
Public Sub New (innerGenerator As IEmbeddingGenerator(Of TInput, TEmbedding), configure As Action(Of EmbeddingGenerationOptions))
Parameters
- innerGenerator
- IEmbeddingGenerator<TInput,TEmbedding>
The inner generator.
- configure
- Action<EmbeddingGenerationOptions>
The delegate to invoke to configure the EmbeddingGenerationOptions instance. It is passed a clone of the caller-supplied
EmbeddingGenerationOptions instance (or a newly constructed instance if the caller-supplied instance is null
).
Remarks
The configure
delegate is passed either a new instance of EmbeddingGenerationOptions if the caller didn't supply a EmbeddingGenerationOptions instance, or a clone (via Clone() of the caller-supplied instance if one was supplied.