1 instantiation of OpenTelemetryEmbeddingGenerator
Microsoft.Extensions.AI (1)
Embeddings\OpenTelemetryEmbeddingGeneratorBuilderExtensions.cs (1)
38var generator = new OpenTelemetryEmbeddingGenerator<TInput, TEmbedding>(
14 references to OpenTelemetryEmbeddingGenerator
Microsoft.Extensions.AI (6)
Embeddings\OpenTelemetryEmbeddingGenerator.cs (1)
39/// Initializes a new instance of the <see cref="OpenTelemetryEmbeddingGenerator{TInput, TEmbedding}"/> class.
Embeddings\OpenTelemetryEmbeddingGeneratorBuilderExtensions.cs (5)
11/// <summary>Provides extensions for configuring <see cref="OpenTelemetryEmbeddingGenerator{TInput, TEmbedding}"/> instances.</summary> 26/// <param name="configure">An optional callback that can be used to configure the <see cref="OpenTelemetryEmbeddingGenerator{TInput, TEmbedding}"/> instance.</param> 32Action<OpenTelemetryEmbeddingGenerator<TInput, TEmbedding>>? configure = null) 38var generator = new OpenTelemetryEmbeddingGenerator<TInput, TEmbedding>( 40loggerFactory?.CreateLogger(typeof(OpenTelemetryEmbeddingGenerator<TInput, TEmbedding>)),
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceEmbeddingGeneratorTests.cs (2)
74Assert.NotNull(pipeline.GetService<OpenTelemetryEmbeddingGenerator<string, Embedding<float>>>()); 77Assert.IsType<OpenTelemetryEmbeddingGenerator<string, Embedding<float>>>(pipeline.GetService<IEmbeddingGenerator<string, Embedding<float>>>());
Microsoft.Extensions.AI.Ollama.Tests (2)
OllamaEmbeddingGeneratorTests.cs (2)
40Assert.NotNull(pipeline.GetService<OpenTelemetryEmbeddingGenerator<string, Embedding<float>>>()); 43Assert.IsType<OpenTelemetryEmbeddingGenerator<string, Embedding<float>>>(pipeline.GetService<IEmbeddingGenerator<string, Embedding<float>>>());
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAIEmbeddingGeneratorTests.cs (4)
89Assert.NotNull(pipeline.GetService<OpenTelemetryEmbeddingGenerator<string, Embedding<float>>>()); 92Assert.IsType<OpenTelemetryEmbeddingGenerator<string, Embedding<float>>>(pipeline.GetService<IEmbeddingGenerator<string, Embedding<float>>>()); 112Assert.NotNull(pipeline.GetService<OpenTelemetryEmbeddingGenerator<string, Embedding<float>>>()); 115Assert.IsType<OpenTelemetryEmbeddingGenerator<string, Embedding<float>>>(pipeline.GetService<IEmbeddingGenerator<string, Embedding<float>>>());