1 interface inheriting from IEmbeddingGenerator
Microsoft.Extensions.AI.Abstractions (1)
Embeddings\IEmbeddingGenerator{TInput,TEmbedding}.cs (1)
28public interface IEmbeddingGenerator<in TInput, TEmbedding> : IEmbeddingGenerator
15 references to IEmbeddingGenerator
Microsoft.Extensions.AI (2)
Embeddings\EmbeddingGeneratorBuilderServiceCollectionExtensions.cs (2)
56serviceCollection.Add(new ServiceDescriptor(typeof(IEmbeddingGenerator), 108serviceCollection.Add(new ServiceDescriptor(typeof(IEmbeddingGenerator), serviceKey,
Microsoft.Extensions.AI.Abstractions (7)
Embeddings\EmbeddingGenerationOptions.cs (4)
57/// The underlying <see cref="IEmbeddingGenerator" /> implementation may have its own representation of options. 61/// which concrete <see cref="IEmbeddingGenerator" /> is being used and how it represents options, a new instance of that 62/// implementation-specific options type may be returned by this callback, for the <see cref="IEmbeddingGenerator" /> 70public Func<IEmbeddingGenerator, object?>? RawRepresentationFactory { get; set; }
Embeddings\EmbeddingGeneratorExtensions.cs (3)
27this IEmbeddingGenerator generator, object? serviceKey = null) 50this IEmbeddingGenerator generator, Type serviceType, object? serviceKey = null) 75this IEmbeddingGenerator generator, object? serviceKey = null)
Microsoft.Extensions.AI.Abstractions.Tests (1)
Embeddings\EmbeddingGenerationOptionsTests.cs (1)
44Func<IEmbeddingGenerator?, object?> rawRepresentationFactory = (c) => null;
Microsoft.Extensions.AI.OpenAI (1)
OpenAIEmbeddingGenerator.cs (1)
97object? IEmbeddingGenerator.GetService(Type serviceType, object? serviceKey)
Microsoft.Extensions.AI.Tests (4)
ChatCompletion\DependencyInjectionPatterns.cs (4)
195IEmbeddingGenerator? ng = sp.GetService<IEmbeddingGenerator>(); 241IEmbeddingGenerator? ng = sp.GetKeyedService<IEmbeddingGenerator>("key");