Table of Contents

Property UsesFullContext

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

UsesFullContext

Gets whether the response uses full document context or passage retrieval.

public bool UsesFullContext { get; }

Property Value

bool

Examples

pdfChat.ResponseGenerationStarted += (sender, e) =>
{
    if (e.UsesFullContext)
    {
        Console.WriteLine("Using the entire document as context for generation.");
    }
    else
    {
        Console.WriteLine($"Using {e.PassageCount} retrieved passages as context.");
    }
};
Share