3 instantiations of LoggingEmbeddingGenerator
Microsoft.Extensions.AI (1)
Embeddings\LoggingEmbeddingGeneratorBuilderExtensions.cs (1)
32
var generator = new
LoggingEmbeddingGenerator
<TInput, TEmbedding>(innerGenerator, logger);
Microsoft.Extensions.AI.Tests (2)
Embeddings\LoggingEmbeddingGeneratorTests.cs (2)
18
Assert.Throws<ArgumentNullException>("innerGenerator", () => new
LoggingEmbeddingGenerator
<string, Embedding<float>>(null!, NullLogger.Instance));
19
Assert.Throws<ArgumentNullException>("logger", () => new
LoggingEmbeddingGenerator
<string, Embedding<float>>(new TestEmbeddingGenerator(), null!));
6 references to LoggingEmbeddingGenerator
Microsoft.Extensions.AI (6)
Embeddings\LoggingEmbeddingGenerator.cs (1)
31
/// <summary>Initializes a new instance of the <see cref="
LoggingEmbeddingGenerator
{TInput, TEmbedding}"/> class.</summary>
Embeddings\LoggingEmbeddingGeneratorBuilderExtensions.cs (5)
11
/// <summary>Provides extensions for configuring <see cref="
LoggingEmbeddingGenerator
{TInput, TEmbedding}"/> instances.</summary>
21
/// <param name="configure">An optional callback that can be used to configure the <see cref="
LoggingEmbeddingGenerator
{TInput, TEmbedding}"/> instance.</param>
24
this EmbeddingGeneratorBuilder<TInput, TEmbedding> builder, ILogger? logger = null, Action<
LoggingEmbeddingGenerator
<TInput, TEmbedding>>? configure = null)
31
logger ??= services.GetRequiredService<ILoggerFactory>().CreateLogger(nameof(
LoggingEmbeddingGenerator
<TInput, TEmbedding>));
32
var
generator = new LoggingEmbeddingGenerator<TInput, TEmbedding>(innerGenerator, logger);