Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 3.32 KB

Making a QnA Bot.md

File metadata and controls

41 lines (30 loc) · 3.32 KB

toCreate a Knowledge Base

A knowledge base (KB) is the information hub the chatbot will scan for relevant information when answering questions.
Head over to qnamaker.ai to start this process.
image Click Create a knowledge base and follow the prompts.

Do not forget to Create a QnA service in step one and connect it to your KB in step two before creating the KB fully. image

A new tab will appear, but go back to the KB creation tab.

After deploying and connecting your QnA service, go through the rest of the KB setup prompts and populate your KB with documents or a URL.

Screenshot image

Enable the multi-turn extraction from URLs, .pdf or .docx files option. This option allows your chatbot to ask follow-up questions. It also allows the chatbot to scan entire pages for later feedback to the user.

Under the Default answer text box, pick any answer you want your bot to use if it cannot find an answer.

After a couple other basic prompts, you will be given a Chit-chat option for you to tailor your bot to fit a particular style of language or mood. image

Next, click Create your KB to see the contents of your KB in three sections: Context, Question, and Answer. image Under the question section you can add your own phrasing, add follow-up prompts to make your bot more unique, and direct your chatbot to provide a link to another page if it can't find an answer.
image

To start training your bot, click Save and train or Test. Before training, you will have to save.

Training your bot basically means saving any preferences you have added and helping the algorithm learn what you desire from the bot during interactions. The more examples you give, the more effective it will become.

Once you are satisfied with your bot, click PUBLISH. This will move the content from the test to production index in Azure search. You will have access to it via QnA Maker service. You will see a block of code you can copy and use later on your site or messenger for the HTTP request.

Click View. image Click Test in Web Chat in the Azure Bot services directory and ask the bot questions. At this point, the bot and KB should be connected.

You can go back to the QnA Maker website to edit your questions, answers, and follow-up questions. You can even add access control and tags to your QnA service, which are useful if you have more than one person running bot service and want to know who is running each bot.

It is worth including as many alternative questions as possible and different ways they can be asked so your chatbot can learn to better understand users and find answers.