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
73
var embedding = await
GenerateEmbeddingAsync
(generator, value, options, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.AI.Abstractions.Tests (1)
Embeddings\EmbeddingGeneratorExtensionsTests.cs (1)
23
await Assert.ThrowsAsync<ArgumentNullException>("generator", () => ((TestEmbeddingGenerator)null!).
GenerateEmbeddingAsync
("hello"));
Microsoft.Extensions.AI.Integration.Tests (1)
EmbeddingGeneratorIntegrationTests.cs (1)
119
_ = await embeddingGenerator.
GenerateEmbeddingAsync
("Hello, world!");