simple-qnamaker
![QnAMaker](https://github.com/juzibot/simple-qnamaker/raw/HEAD/docs/images/logo.jpeg)
Make it simple to call QnAMaker
QnAMaker is a cloud service powered by Microsoft.
It can build, train and publish a sophisticated bot using FAQ pages,
support websites, product manuals,
SharePoint documents or editorial content through an easy-to-use UI or via REST APIs.
Install
npm install simple-qnamaker
Run
import simpleQnAMaker from 'simple-qnamaker'
const qa = new simpleQnAMaker({
knowledgeBaseId: '51762d0d-96b0-4888-82f3-a0230bbb8b3d'
endpointKey : 'bc138303-260a-42fa-b4d4-3d69db88922d'
host : 'https://juzibot-investment.azurewebsites.net/qnamaker'
})
const answer = qa('hello')
console.log(answer)
Type of the answer:
export interface QnAMakerResult {
questions?: string[];
answer: string;
score: number;
metadata?: any;
source?: string;
id?: number;
context?: QnAResponseContext;
}