Table of Contents

Property SourceReferences

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

SourceReferences

Gets the document passages used to generate the response. May be null if the entire document was included inline.

public IReadOnlyList<DocumentReference> SourceReferences { get; }

Property Value

IReadOnlyList<DocumentReference>

Examples

var result = await chat.SubmitAsync("What are the revenue figures?");

if (result.SourceReferences != null)
{
    foreach (var source in result.SourceReferences)
    {
        Console.WriteLine($"Document: {source.Name}, Page: {source.PageNumber}");
        Console.WriteLine($"Relevance: {source.SimilarityScore:P1}");
    }
}
Share