KnowledgeBaseFAQ
Stentor API Reference / stentor-models/src / KnowledgeBaseFAQ
Interface: KnowledgeBaseFAQ
Defined in: packages/stentor-models/src/Request/KnowledgeBase.ts:94
An FAQ
Propertiesβ
questionβ
question:
string
Defined in: packages/stentor-models/src/Request/KnowledgeBase.ts:98
The question that is the closest match
questions?β
optionalquestions:string[]
Defined in: packages/stentor-models/src/Request/KnowledgeBase.ts:104
Optional, some FAQ based systems can return multiple questions that match to the same answer. This will be populated if they exist.
There most likely be a duplicate of the question field.
uri?β
optionaluri:string
Defined in: packages/stentor-models/src/Request/KnowledgeBase.ts:108
URI, either the source or a location where more information can be found.
documentβ
document:
string
Defined in: packages/stentor-models/src/Request/KnowledgeBase.ts:112
The answer to the FAQ
highlights?β
optionalhighlights:KnowledgeBaseHighlight[]
Defined in: packages/stentor-models/src/Request/KnowledgeBase.ts:116
Highlights within the FAQ document that are relevant to the user's original search.
attributes?β
optionalattributes:object
Defined in: packages/stentor-models/src/Request/KnowledgeBase.ts:120
Additional attribute for the document. Keys and values are dependent on the underlying knowledge base.
Index Signatureβ
[key: string]: any
matchConfidence?β
optionalmatchConfidence:number
Defined in: packages/stentor-models/src/Request/KnowledgeBase.ts:124
Confidence of the match, number between 0-1 where the higher the number has a higher confidence.
handlerId?β
optionalhandlerId:string
Defined in: packages/stentor-models/src/Request/KnowledgeBase.ts:128
If provided, this references a handler