Table of Contents

Property Excerpt

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

Excerpt

Gets the retrieved text excerpt.

public string Excerpt { get; }

Property Value

string

Examples

foreach (var reference in result.SourceReferences)
{
    // Display a preview of the matched passage
    string preview = reference.Excerpt.Length > 100
        ? reference.Excerpt.Substring(0, 100) + "..."
        : reference.Excerpt;
    Console.WriteLine($"  Excerpt: {preview}");
}
Share