Table of Contents

Property Engine

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

Engine

Gets the RagEngine used for retrieval.

public RagEngine Engine { get; }

Property Value

RagEngine

Examples

using var chat = new RagChat(ragEngine, chatModel);

// Configure engine-level retrieval settings through the Engine property
chat.Engine.MmrLambda = 0.7f;
chat.Engine.ContextWindow = 2;
chat.Engine.RetrievalStrategy = new HybridRetrievalStrategy();

Remarks

Use this property to configure engine-level settings such as MmrLambda, RetrievalStrategy, ContextWindow, and Reranker. The engine is owned by the caller and is not disposed when this instance is disposed.

Share