Table of Contents

Property SystemPrompt

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

SystemPrompt

Gets or sets the system prompt that defines the assistant's behavior.

public string SystemPrompt { get; set; }

Property Value

string

Examples

using var chat = new PdfChat(chatModel, embeddingModel);

// Customize the system prompt for a legal document assistant
chat.SystemPrompt = "You are a legal document assistant. " +
    "Answer questions based strictly on the provided documents. " +
    "Always cite the relevant section or clause number.";

Remarks

The default prompt instructs the model to answer based on document content, acknowledge when information is not found, and match the user's language.

Share