DocumentQAResult<T>
Models & Types · AiDotNet.Document
Represents the result of document question answering.
For Beginners
When you ask a question about a document, the model returns an answer along with confidence information and optionally the evidence (where in the document the answer came from).
Constructors
| Constructor | Summary |
|---|---|
DocumentQAResult() |
Properties
| Property | Summary |
|---|---|
ConfidenceLevel ConfidenceLevel { get; } |
Gets the classification of confidence level. |
IReadOnlyList<AlternativeAnswer<T>> AlternativeAnswers { get; set; } |
Gets alternative answers if multiple were considered. |
IReadOnlyList<EvidenceRegion<T>> Evidence { get; set; } |
Gets the evidence regions that support the answer. |
T Confidence { get; set; } |
Gets the confidence score for the answer (0-1). |
bool HasAnswer { get; } |
Gets whether the model was able to find an answer. |
double ConfidenceValue { get; set; } |
Gets the confidence as a double value for comparison. |
double ProcessingTimeMs { get; set; } |
Gets processing time in milliseconds. |
string Answer { get; set; } |
Gets the answer to the question. |
string NoAnswerSentinel { get; } |
Gets the sentinel string used when a model has no answer. |
string Question { get; set; } |
Gets the original question that was asked. |