4 references to GenerateEmbeddingAsync
Microsoft.Extensions.AI.Abstractions (2)
Embeddings\EmbeddingGeneratorExtensions.cs (2)
64/// This operation is equivalent to using <see cref="GenerateEmbeddingAsync"/> and returning the 73var embedding = await GenerateEmbeddingAsync(generator, value, options, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.AI.Abstractions.Tests (1)
Embeddings\EmbeddingGeneratorExtensionsTests.cs (1)
23await Assert.ThrowsAsync<ArgumentNullException>("generator", () => ((TestEmbeddingGenerator)null!).GenerateEmbeddingAsync("hello"));
Microsoft.Extensions.AI.Integration.Tests (1)
EmbeddingGeneratorIntegrationTests.cs (1)
119_ = await embeddingGenerator.GenerateEmbeddingAsync("Hello, world!");