Table of Contents

Event ResponseGenerationStarted

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

Occurs when response generation begins.

public event EventHandler<ResponseGenerationStartedEventArgs> ResponseGenerationStarted

Returns

EventHandler<ResponseGenerationStartedEventArgs>
Occurs when response generation begins.

Examples

chat.ResponseGenerationStarted += (sender, e) =>
{
    if (e.UsesFullContext)
        Console.WriteLine($"Generating response using full document context...");
    else
        Console.WriteLine($"Generating response using {e.PassageCount} retrieved passages...");
};

Remarks

Subscribe to this event to know when the model starts generating a response, including context information about the query mode being used.