Class LMKitTextEmbeddingGeneration
- Namespace
- LMKit.Integrations.SemanticKernel.Embeddings
- Assembly
- LM-Kit.NET.Integrations.SemanticKernel.dll
Provides a text embedding generation service using LMKit's Embedder. This service implements the Microsoft.Extensions.AI.IEmbeddingGenerator<TInput, TEmbedding> interface to generate embeddings from text data for use with Microsoft Semantic Kernel.
public sealed class LMKitTextEmbeddingGeneration : IEmbeddingGenerator<string, Embedding<float>>, IEmbeddingGenerator, IDisposable
- Inheritance
-
LMKitTextEmbeddingGeneration
- Implements
-
IEmbeddingGenerator
- Inherited Members
Constructors
- LMKitTextEmbeddingGeneration(Embedder)
Initializes a new instance of the LMKitTextEmbeddingGeneration class with the provided embedder.
Properties
Methods
- GenerateAsync(IEnumerable<string>, EmbeddingGenerationOptions?, CancellationToken)
Asynchronously generates embeddings for a collection of text inputs.
- GetService(Type, object?)
Asks the Microsoft.Extensions.AI.IEmbeddingGenerator<TInput, TEmbedding> for an object of the specified type
serviceType.