Table of Contents

Constructor RagEngine

Namespace
LMKit.Retrieval
Assembly
LM-Kit.NET.dll

RagEngine(LLM)

Initializes a new instance of the RagEngine class using a specified model for embedding generation.
This model is essential for the engine's retrieval-augmented generation (RAG) operations.

public RagEngine(LLM embeddingModel)

Parameters

embeddingModel LLM

A LLM object that specifies the embeddings model to be inferred by the instance.

Exceptions

ArgumentNullException

Thrown when the embeddingModel is null.