Method StartNewConversation
- Namespace
- LMKit.TextGeneration.Chat
- Assembly
- LM-Kit.NET.dll
StartNewConversation()
Initiates the beginning of a new conversation.
public void StartNewConversation()
Examples
Building multi-conversation training data:
var data = new ChatHistory(model);
// First conversation
data.AddMessage(AuthorRole.User, "Hello");
data.AddMessage(AuthorRole.Assistant, "Hi!");
// Mark boundary
data.StartNewConversation();
// Second conversation
data.AddMessage(AuthorRole.User, "Goodbye");
data.AddMessage(AuthorRole.Assistant, "See you later!");
Remarks
Maintaining chat history with multiple conversations is primarily useful for fine-tuning context.