8 implementations of GenerateAsync
Microsoft.Extensions.AI.Abstractions (1)
Embeddings\DelegatingEmbeddingGenerator.cs (1)
58public virtual Task<GeneratedEmbeddings<TEmbedding>> GenerateAsync(IEnumerable<TInput> values, EmbeddingGenerationOptions? options = null, CancellationToken cancellationToken = default) =>
Microsoft.Extensions.AI.Abstractions.Tests (1)
TestEmbeddingGenerator.cs (1)
19public Task<GeneratedEmbeddings<Embedding<float>>> GenerateAsync(IEnumerable<string> values, EmbeddingGenerationOptions? options = null, CancellationToken cancellationToken = default)
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceEmbeddingGenerator.cs (1)
85public async Task<GeneratedEmbeddings<Embedding<float>>> GenerateAsync(
Microsoft.Extensions.AI.Integration.Tests (2)
QuantizationEmbeddingGenerator.cs (2)
36async Task<GeneratedEmbeddings<BinaryEmbedding>> IEmbeddingGenerator<string, BinaryEmbedding>.GenerateAsync( 69async Task<GeneratedEmbeddings<Embedding<Half>>> IEmbeddingGenerator<string, Embedding<Half>>.GenerateAsync(
Microsoft.Extensions.AI.Ollama (1)
OllamaEmbeddingGenerator.cs (1)
79public async Task<GeneratedEmbeddings<Embedding<float>>> GenerateAsync(
Microsoft.Extensions.AI.OpenAI (1)
OpenAIEmbeddingGenerator.cs (1)
112public async Task<GeneratedEmbeddings<Embedding<float>>> GenerateAsync(IEnumerable<string> values, EmbeddingGenerationOptions? options = null, CancellationToken cancellationToken = default)
Microsoft.Extensions.AI.Tests (1)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\TestEmbeddingGenerator.cs (1)
19public Task<GeneratedEmbeddings<Embedding<float>>> GenerateAsync(IEnumerable<string> values, EmbeddingGenerationOptions? options = null, CancellationToken cancellationToken = default)
10 references to GenerateAsync
Microsoft.Extensions.AI (2)
Embeddings\EmbeddingGeneratorBuilder.cs (2)
91/// an implementation for <see cref="IEmbeddingGenerator{TInput, TEmbedding}.GenerateAsync"/>. 94/// A delegate that provides the implementation for <see cref="IEmbeddingGenerator{TInput, TEmbedding}.GenerateAsync"/>.
Microsoft.Extensions.AI.Abstractions (4)
Embeddings\DelegatingEmbeddingGenerator.cs (1)
59InnerGenerator.GenerateAsync(values, options, cancellationToken);
Embeddings\EmbeddingGeneratorExtensions.cs (2)
88/// This operations is equivalent to using <see cref="IEmbeddingGenerator{TInput, TEmbedding}.GenerateAsync"/> with a 146var embeddings = await generator.GenerateAsync(values, options, cancellationToken).ConfigureAwait(false);
Embeddings\IEmbeddingGenerator.cs (1)
21/// <see cref="GenerateAsync"/>, such as by adding additional values to the values list or configuring the options
Microsoft.Extensions.AI.Integration.Tests (2)
QuantizationEmbeddingGenerator.cs (2)
39var embeddings = await _floatService.GenerateAsync(values, options, cancellationToken).ConfigureAwait(false); 72var embeddings = await _floatService.GenerateAsync(values, options, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.AI.Tests (2)
Embeddings\UseDelegateEmbeddingGeneratorTests.cs (2)
59var e = await innerGenerator.GenerateAsync(values, options, cancellationToken); 67GeneratedEmbeddings<Embedding<float>> actual = await generator.GenerateAsync(expectedValues, expectedOptions, expectedCts.Token);