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
builderIKernelBuilderThe kernel builder to which the text embedding generation service is added.
modelLMThe 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
builderIKernelBuilderThe kernel builder to which the text embedding generation service is added.
textEmbeddingGenerationLMKitTextEmbeddingGenerationAn instance of LMKitTextEmbeddingGeneration to register.