qanary-component-eat-simple/handler
This page is auto-generated from TSDoc output. Edit the source file, not this Markdown.
qanary-component-eat-simple/handler
Section titled “qanary-component-eat-simple/handler”- Package:
qanary-component-eat-simple - Source file:
apps/qanary-component-eat-simple/src/handler.ts
Summary
Section titled “Summary”Confidence threshold below which a clarification question is generated even though the classification result is still written to the graph.
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 24
writeClarification
Section titled “writeClarification”function writeClarification(message: IQanaryMessage, question: string, ambiguity: { reason: string; detail: string }): Promise<void>Generates an LLM-based clarification question and writes it as an
AnnotationOfClarification into the Qanary knowledge graph.
Parameters
message(IQanaryMessage)question(string)ambiguity({ reason: string; detail: string }) ReturnsPromise<void>Defined at: line 88
getExpectedEntityType
Section titled “getExpectedEntityType”function getExpectedEntityType(question: string): Promise<URL | null>Returns the EAT URL for a given question using the LLM classifier. Exported for testing purposes.
Parameters
question(string) ReturnsPromise<URL | null>Defined at: line 116
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 even though the classification result is still written to the graph.
Defined at: line 17
In qanary-component-eat-simple
Section titled “In qanary-component-eat-simple”qanary-component-eat-simple/eat-classifierqanary-component-eat-simple/handlerqanary-component-eat-simple/index