Table of Contents

Method AddLMKitTextEmbeddingGeneration

Namespace
LMKit.Integrations.SemanticKernel
Assembly
LM-Kit.NET.Integrations.SemanticKernel.dll

AddLMKitTextEmbeddingGeneration(IKernelBuilder, LM)

Adds the LMKit text embedding generation service to the kernel builder using the specified LM model. This method creates an instance of LMKitTextEmbeddingGeneration with the provided model and registers it.

public static void AddLMKitTextEmbeddingGeneration(this IKernelBuilder builder, LM model)

Parameters

builder IKernelBuilder

The kernel builder to which the text embedding generation service is added.

model LM

The LMKit model used for text embedding generation.

AddLMKitTextEmbeddingGeneration(IKernelBuilder, LMKitTextEmbeddingGeneration)

Adds the specified LMKit text embedding generation instance to the kernel builder. The instance is registered as a singleton service implementing Microsoft.SemanticKernel.Embeddings.ITextEmbeddingGenerationService.

public static void AddLMKitTextEmbeddingGeneration(this IKernelBuilder builder, LMKitTextEmbeddingGeneration textEmbeddingGeneration)

Parameters

builder IKernelBuilder

The kernel builder to which the text embedding generation service is added.

textEmbeddingGeneration LMKitTextEmbeddingGeneration

An instance of LMKitTextEmbeddingGeneration to register.