KnowledgeBaseDocument
Stentor API Reference / stentor-models/src / KnowledgeBaseDocument
Interface: KnowledgeBaseDocument
Defined in: packages/stentor-models/src/Request/KnowledgeBase.ts:52
A single document, typically part of a larger corpus of information that is where the answer to the user's original query may reside.
Extended byβ
Propertiesβ
title?β
optionaltitle:string
Defined in: packages/stentor-models/src/Request/KnowledgeBase.ts:56
The title of the document
uri?β
optionaluri:string
Defined in: packages/stentor-models/src/Request/KnowledgeBase.ts:61
Optional URI that is the source of the document. It can be a URI for a website or a URI within an internal system (like AWS S3 for example).
documentβ
document:
string
Defined in: packages/stentor-models/src/Request/KnowledgeBase.ts:66
The document text. This isn't necessarily the entire source document found at the optional URI, it typically is more focused within where the answer may be.
highlights?β
optionalhighlights:KnowledgeBaseHighlight[]
Defined in: packages/stentor-models/src/Request/KnowledgeBase.ts:70
Notable highlights within the document that can help the user scan and find their answer.
attributes?β
optionalattributes:object
Defined in: packages/stentor-models/src/Request/KnowledgeBase.ts:74
Additional attribute for the document. Keys and values are dependent on the underlying knowledgebase.
Index Signatureβ
[key: string]: any