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(); 47var embeddings = await _embeddingGenerator.GenerateAsync(["Using AI with .NET"]); 53Assert.Equal(_embeddingGenerator.Metadata.ModelId, embeddings[0].ModelId); 62var embeddings = await _embeddingGenerator.GenerateAsync([ 74Assert.Equal(_embeddingGenerator.Metadata.ModelId, embedding.ModelId); 209[MemberNotNull(nameof(_embeddingGenerator))] 212if (_embeddingGenerator is null)