Property SourceReferences
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
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}");
}
}