qnamaker

How to Add filter on the REST API Query to view the answers from QnAmaker?

我与影子孤独终老i 提交于 2020-03-03 06:25:04
问题 I'm using the following code in my chat bot (using v4 azure MS bot framework), to query the question and answers (Client side code - using plain JavaScript and J Query), function generateAnswer() { var question = { question: "will you marry me" } $.ajax({ type: "POST", url: "https://YourEndPointURL/qnamaker/knowledgebases/eb895acb-e034-4f7c-asda7c-1955458ecec6/generateAnswer&$filter=source eq 'Editorial'", data: JSON.stringify(question), beforeSend: function (xhr) { xhr.setRequestHeader(

how to send a message to direct line chat bot from the UI using JavaScript

梦想的初衷 提交于 2020-02-07 01:58:52
问题 I'm developing a chat bot (v4 using MS Azure bot framework & QnAmaker), I've added a feature in that, i.e. while the users starts typing the questions, the bot will get prompt and show the relevant questions form the QnAmaker , and the user can select one of them , then that particular question will sent to the bot. Following is the full code which I'm using, <html> <body> <div id="webchat" role="main"></div> <script> (async function () { const styleOptions = { hideUploadButton: true,

QnA bot not displaying table format properly

99封情书 提交于 2020-01-24 16:25:06
问题 My QnA maker Knowledge Base is currently trained by a pdf file (http://download.microsoft.com/download/2/9/B/29B20383-302C-4517-A006-B0186F04BE28/surface-pro-4-user-guide-EN.pdf ). While testing, QnA bot is not displaying the table formats from the input given. The below image shows how it is currently displayed in the QnA maker test page. What should I do to bring the table format (with all the row and column borders) to the chat result as same as in the input pdf file. 回答1: According to the

QnA Maker - Runtime Error: Authorization Failed

旧巷老猫 提交于 2020-01-05 07:07:14
问题 I keep getting the attached runtime error in QnA maker. I could access the Knowledge base fine after creating it but after about an hour i started getting the below error. Error Example I have tried everything including trying to delete the knowledge base, create a new one etc and it doesn't delete or create just throws the same error. Please can someone give me some advice or help. Microsoft recommended I submit a question here. Thanks Chris 回答1: I faced the smae issue, and to solve it I

Microsoft.Bot.Builder.CognitiveServices.QnAMaker.QnAMakerDialog How to override not found?

六眼飞鱼酱① 提交于 2020-01-04 05:50:10
问题 I'm working with QnAMakerDialog and cannot figure out how to override the "not found". I am able to override RespondFromQnAMakerResultAsync but that is not called when no answer is found. I tried setting the default message to null or empty string but then QnAMakerDialog automatically response "No match found!" when it doesn't find a match! I don't want a message when no match is found because I'm just forwarding the message to a LuisDialog . How do I stop this message!!! Side note: I

ResumeAfter method is already called without calling context.done in the next dialog

落花浮王杯 提交于 2019-12-24 19:30:52
问题 I have implemented a structure where a QnA dialog is first started. If the QnA Dialog cannot solve the problem then it starts a Luis Dialog which has some main functionalities defined. Based on those main functionalities I start specific dialogs that can solve the problem. My problem is that when I try to start LuisDialog from QnAMaker, it starts another LuisDialog to for conversation, That dialog doesn't stop on with wait method and automatically calls ResumeAfter method immediately after

Bot Framework Emulator: Unknown Host

≯℡__Kan透↙ 提交于 2019-12-24 15:29:58
问题 I'm developing a simple Dispatch Bot, I only have a basic structure now to chose between QnA or LUIS models but when I test it in the Bot Framework Emulator, the AdapterWithErrorHandler catches and error and i get no response from LUIS neither QnA. everytime i send a message. I checked the appsettings.json and everything seems to be fine. I want to point out when I created the LUIS App a default key was given to me, and later on i linked it with the Cognitive Resource i have in Azure and a

Phone Number not clickable in some Browsers

不羁岁月 提交于 2019-12-24 08:31:21
问题 I created a Azure QnA Web Chat Bot. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Page Title</title> <!-- <script src="https://cdn.botframework.com/botframework-webchat/latest/webchat.js"></script> --> <script src="https://cdn.botframework.com/botframework-webchat/4.6.0/webchat-es5.js"></script> <link rel="stylesheet" href="mycss.css"> </head> <body> <div id="projekt-window"> <div id="projekt-chatHeader"> <div id="projekt-text"> Chat Bot </div> </div> <div id="projekt-chatView">

BotBuilder - NLP with dispatch error No such host is known

删除回忆录丶 提交于 2019-12-24 04:12:38
问题 I am new in using Bot Builder Framework. I was following this tutorial from Microsoft https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/tutorials/integrate-qnamaker-luis. I am using the code from GitHub(NLP-with-dispatch) and set up all the necessary requirements DISPATCH, Luis, Qnamaker, etc. But after running the code using the bot emulator I got this error message. "No such host is known". BTW, I already updated the appsettings.json and bot config. Anyone experience this?

qnamaker with LUIS

心不动则不痛 提交于 2019-12-24 03:55:09
问题 I'm exploring the microsoft services. LUIS caught my attention. Would it be beneficial to add it to a QNAmaker bot? The bot basically answers questions as accurately as possible, nothing else, just pure answer from knowledgebase. Do I even need to add LUIS? 回答1: No, you don't need LUIS to have QnA maker answer questions. You might add LUIS as the app grows to do more than just a faq style interaction. 回答2: By itself, if all you want is for the bot to answer questions, then this is sufficient.