Constructor DocumentQueryResult
DocumentQueryResult(TextGenerationResult, IReadOnlyList<DocumentReference>)
Initializes a new instance of the DocumentQueryResult class.
public DocumentQueryResult(TextGenerationResult response, IReadOnlyList<DocumentReference> sourceReferences)
Parameters
responseTextGenerationResultThe generated response.
sourceReferencesIReadOnlyList<DocumentReference>Optional source references.
Examples
// Typically created internally by PdfChat or DocumentRag.
// Manual construction is useful for testing or custom pipelines.
var references = DocumentReference.FromPartitions(partitions);
var queryResult = new DocumentQueryResult(textGenResult, references);