qanary-component-helpers/create-annotation
This page is auto-generated from TSDoc output. Edit the source file, not this Markdown.
qanary-component-helpers/create-annotation
Section titled “qanary-component-helpers/create-annotation”- Package:
@leipzigtreechat/qanary-component-helpers - Source file:
packages/qanary-component-helpers/src/create-annotation.ts
Summary
Section titled “Summary”The interface for the information needed for a qanary annotation value the value of the found annotation range the range of the found annotation
Functions
Section titled “Functions”createAnnotationInKnowledgeGraph
Section titled “createAnnotationInKnowledgeGraph”function createAnnotationInKnowledgeGraph({ message, componentName, annotation, annotationType = "qa:AnnotationAnswer",}: ICreateAnnotationInKnowledgeGraphOptions): Promise<void>Creates an annotation in the knowledge graph given in the message
Parameters
{ message, componentName, annotation, annotationType = "qa:AnnotationAnswer", }(ICreateAnnotationInKnowledgeGraphOptions) ReturnsPromise<void>Defined at: line 54
Interfaces
Section titled “Interfaces”IAnnotationInformation
Section titled “IAnnotationInformation”interface IAnnotationInformationThe interface for the information needed for a qanary annotation value the value of the found annotation range the range of the found annotation
Properties
value(string): the value of the found annotationrange(IAnnotationInformationRange): the range of the found annotationconfidence(number): the confidence of the found annotation Defined at: line 12
IAnnotationInformationRange
Section titled “IAnnotationInformationRange”interface IAnnotationInformationRangeThe range info range for a qanary annotation start the start of the found annotation end the end of the found annotation
Properties
start(number): the start of the found annotationend(number): the end of the found annotation Defined at: line 26
ICreateAnnotationInKnowledgeGraphOptions
Section titled “ICreateAnnotationInKnowledgeGraphOptions”interface ICreateAnnotationInKnowledgeGraphOptionsThe options to create an annotation in the knowledge graph
Properties
message(IQanaryMessage): the qanary message containing the endpoint and graphcomponentName(string): the component name that creates the annotationannotation(IAnnotationInformation): the actual annotation to be createdannotationType(string): the type of the annotation, prefixed with “qa:”, defaults to “qa:AnnotationAnswer” Defined at: line 36
In qanary-component-helpers
Section titled “In qanary-component-helpers”qanary-component-helpers/apiqanary-component-helpers/baseqanary-component-helpers/commonqanary-component-helpers/configurationqanary-component-helpers/create-annotationqanary-component-helpers/create-clarification-annotationqanary-component-helpers/generate-clarification-questionqanary-component-helpers/generate-object-retryqanary-component-helpers/get-domain-instancesqanary-component-helpers/get-question-uriqanary-component-helpers/get-questionqanary-component-helpers/indexqanary-component-helpers/interfaces/question-sparql-responseqanary-component-helpers/llm-providerqanary-component-helpers/message-operationsqanary-component-helpers/query-file-loaderqanary-component-helpers/query-sparqlqanary-component-helpers/utils/question-uri-query