1 write to _embeddingGenerator
Microsoft.Extensions.AI.Integration.Tests (1)
EmbeddingGeneratorIntegrationTests.cs (1)
31
_embeddingGenerator
= CreateEmbeddingGenerator();
7 references to _embeddingGenerator
Microsoft.Extensions.AI.Integration.Tests (7)
EmbeddingGeneratorIntegrationTests.cs (7)
36
_embeddingGenerator
?.Dispose();
47
var embeddings = await
_embeddingGenerator
.GenerateAsync(["Using AI with .NET"]);
53
Assert.Equal(
_embeddingGenerator
.Metadata.ModelId, embeddings[0].ModelId);
62
var embeddings = await
_embeddingGenerator
.GenerateAsync([
74
Assert.Equal(
_embeddingGenerator
.Metadata.ModelId, embedding.ModelId);
209
[MemberNotNull(nameof(
_embeddingGenerator
))]
212
if (
_embeddingGenerator
is null)