Partager via


CachingEmbeddingGenerator<TInput,TEmbedding> Constructor

Definition

Initializes a new instance of the CachingEmbeddingGenerator<TInput,TEmbedding> class.

protected:
 CachingEmbeddingGenerator(Microsoft::Extensions::AI::IEmbeddingGenerator<TInput, TEmbedding> ^ innerGenerator);
protected CachingEmbeddingGenerator (Microsoft.Extensions.AI.IEmbeddingGenerator<TInput,TEmbedding> innerGenerator);
new Microsoft.Extensions.AI.CachingEmbeddingGenerator<'Input, 'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)> : Microsoft.Extensions.AI.IEmbeddingGenerator<'Input, 'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)> -> Microsoft.Extensions.AI.CachingEmbeddingGenerator<'Input, 'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)>
Protected Sub New (innerGenerator As IEmbeddingGenerator(Of TInput, TEmbedding))

Parameters

Applies to