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 configureOptions
callback.
public:
ConfigureOptionsEmbeddingGenerator(Microsoft::Extensions::AI::IEmbeddingGenerator<TInput, TEmbedding> ^ innerGenerator, Func<Microsoft::Extensions::AI::EmbeddingGenerationOptions ^, Microsoft::Extensions::AI::EmbeddingGenerationOptions ^> ^ configureOptions);
public ConfigureOptionsEmbeddingGenerator (Microsoft.Extensions.AI.IEmbeddingGenerator<TInput,TEmbedding> innerGenerator, Func<Microsoft.Extensions.AI.EmbeddingGenerationOptions?,Microsoft.Extensions.AI.EmbeddingGenerationOptions?> configureOptions);
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)> * Func<Microsoft.Extensions.AI.EmbeddingGenerationOptions, 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), configureOptions As Func(Of EmbeddingGenerationOptions, EmbeddingGenerationOptions))
Parameters
- innerGenerator
- IEmbeddingGenerator<TInput,TEmbedding>
The inner generator.
- configureOptions
- Func<EmbeddingGenerationOptions,EmbeddingGenerationOptions>
The delegate to invoke to configure the EmbeddingGenerationOptions instance. It is passed the caller-supplied EmbeddingGenerationOptions instance and should return the configured EmbeddingGenerationOptions instance to use.