Table of Contents

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<string, Embedding<float>>
IEmbeddingGenerator
Inherited Members

Constructors

LMKitTextEmbeddingGeneration(Embedder)

Initializes a new instance of the LMKitTextEmbeddingGeneration class with the provided embedder.

Properties

Metadata

Methods

Dispose()
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.