Implemented interface member:
method
GenerateAsync
Microsoft.Extensions.AI.IEmbeddingGenerator<TInput, TEmbedding>.GenerateAsync(System.Collections.Generic.IEnumerable<TInput>, Microsoft.Extensions.AI.EmbeddingGenerationOptions, System.Threading.CancellationToken)
5 overrides of GenerateAsync
Microsoft.Extensions.AI (5)
Embeddings\AnonymousDelegatingEmbeddingGenerator.cs (1)
37
public override async Task<GeneratedEmbeddings<TEmbedding>>
GenerateAsync
(
Embeddings\CachingEmbeddingGenerator.cs (1)
28
public override async Task<GeneratedEmbeddings<TEmbedding>>
GenerateAsync
(
Embeddings\ConfigureOptionsEmbeddingGenerator.cs (1)
44
public override async Task<GeneratedEmbeddings<TEmbedding>>
GenerateAsync
(
Embeddings\LoggingEmbeddingGenerator.cs (1)
49
public override async Task<GeneratedEmbeddings<TEmbedding>>
GenerateAsync
(IEnumerable<TInput> values, EmbeddingGenerationOptions? options = null, CancellationToken cancellationToken = default)
Embeddings\OpenTelemetryEmbeddingGenerator.cs (1)
81
public override async Task<GeneratedEmbeddings<TEmbedding>>
GenerateAsync
(IEnumerable<TInput> values, EmbeddingGenerationOptions? options = null, CancellationToken cancellationToken = default)
5 references to GenerateAsync
Microsoft.Extensions.AI (5)
Embeddings\CachingEmbeddingGenerator.cs (2)
51
var generated = await base.
GenerateAsync
(valuesList, options, cancellationToken).ConfigureAwait(false);
90
var uncachedResults = await base.
GenerateAsync
(uncached.Select(e => e.Input), options, cancellationToken).ConfigureAwait(false);
Embeddings\ConfigureOptionsEmbeddingGenerator.cs (1)
49
return await base.
GenerateAsync
(values, Configure(options), cancellationToken).ConfigureAwait(false);
Embeddings\LoggingEmbeddingGenerator.cs (1)
65
var embeddings = await base.
GenerateAsync
(values, options, cancellationToken).ConfigureAwait(false);
Embeddings\OpenTelemetryEmbeddingGenerator.cs (1)
93
response = await base.
GenerateAsync
(values, options, cancellationToken).ConfigureAwait(false);