3 references to LoggingEmbeddingGenerator
Microsoft.Extensions.AI (1)
Embeddings\LoggingEmbeddingGeneratorBuilderExtensions.cs (1)
35
var generator = new
LoggingEmbeddingGenerator
<TInput, TEmbedding>(innerGenerator, loggerFactory.CreateLogger(typeof(LoggingEmbeddingGenerator<TInput, TEmbedding>)));
Microsoft.Extensions.AI.Tests (2)
Embeddings\LoggingEmbeddingGeneratorTests.cs (2)
19
Assert.Throws<ArgumentNullException>("innerGenerator", () => new
LoggingEmbeddingGenerator
<string, Embedding<float>>(null!, NullLogger.Instance));
20
Assert.Throws<ArgumentNullException>("logger", () => new
LoggingEmbeddingGenerator
<string, Embedding<float>>(new TestEmbeddingGenerator(), null!));