Property SystemPrompt
SystemPrompt
Gets or sets the system prompt that defines the assistant's behavior.
public string SystemPrompt { get; set; }
Property Value
Examples
using var chat = new RagChat(ragEngine, chatModel);
// Override the system prompt for domain-specific behavior
chat.SystemPrompt = "You are a technical support assistant. " +
"Answer questions based only on the provided context. " +
"If the answer is not in the context, say so.";
Remarks
The default prompt instructs the model to answer based on provided context, acknowledge when information is not found, and match the user's language.