qanary-component-relation-detection/handler
This page is auto-generated from TSDoc output. Edit the source file, not this Markdown.
qanary-component-relation-detection/handler
Section titled “qanary-component-relation-detection/handler”- Package:
qanary-component-relation-detection - Source file:
apps/qanary-component-relation-detection/src/handler.ts
Summary
Section titled “Summary”Confidence threshold below which a clarification question is generated.
Functions
Section titled “Functions”handler
Section titled “handler”function handler(message: IQanaryMessage): voidAn event handler for incoming messages of the Qanary pipeline Exported only for testing purposes
Parameters
message(IQanaryMessage): incoming qanary pipeline message Defined at: line 26
writeClarificationIfNeeded
Section titled “writeClarificationIfNeeded”function writeClarificationIfNeeded(message: IQanaryMessage, question: string, ambiguityDescription: string): Promise<void>Generates a clarification question via the LLM and writes it as an
AnnotationOfClarification into the knowledge graph.
Parameters
message(IQanaryMessage)question(string)ambiguityDescription(string) ReturnsPromise<void>Defined at: line 84
Constants
Section titled “Constants”CLARIFICATION_CONFIDENCE_THRESHOLD
Section titled “CLARIFICATION_CONFIDENCE_THRESHOLD”const CLARIFICATION_CONFIDENCE_THRESHOLD: numberConfidence threshold below which a clarification question is generated.
Defined at: line 18
In qanary-component-relation-detection
Section titled “In qanary-component-relation-detection”qanary-component-relation-detection/handlerqanary-component-relation-detection/indexqanary-component-relation-detection/relation-classifierqanary-component-relation-detection/relation-types