Skip to content

Dacili/FAQ-Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FAQ Medi Chatbot

FAQ Medi Chatbot is a chatbot that is used for frequently asked questions.

You should use this type of chatbot when:

  • your data is static
  • when different users submit the same question, the same answer is returned.

If you want to check automatically generated readme file, check this file https://github.com/Dacili/FAQ-Chatbot/blob/master/README1.md

Demo in Bot Framework Emulator (locally):

2023-09-27_14h00_28.mp4

This project was not created using QnA Maker because it's deprecated and going to be retired, and it's not recommended for use anymore.

Create, test, and deploy a custom question answering project

I was following this official documentation: https://learn.microsoft.com/en-us/azure/ai-services/language-service/question-answering/quickstart/sdk?tabs=windows&pivots=studio

  1. Create Language service in Azure
  2. Navigate to Language resource and open Features. In features check the checkbox, and create a new service for Azure Cognitive Search service: image
  3. Login with Azure creds in https://language.cognitive.azure.com/home
  4. If you're using Language for the first time, follow the navigation like on image:

image
if it's not your first time, you could easily click on Create new and then choose Custom question answering:
image
5. Create a simple excel file, with a few questions and answers, like on the image:
image
6. Click Add source -> Files, and then upload the excel file that you created.
image
7. After you're done, you should be able to see generated Knowledge base (KB), and click on it:
image
8. You will see on the left side different options such as editing and deploying KB. In the center you will see question-answer objects.
You can add a new one, or edit an existing one. While editing you can add prompts (which are actually suggestions, shown like button to the user).
image
You can test KB if you click on this icon:
image

  1. Once you're done with setting up a KB. Click on Deploy knowledge base, and deploy it.
    image
  2. If you have not created a bot and app service already, click on Create a bot. It will actually navigate you to create both of these together, while also setting up the configuration for you, so you don't have to handle it manually. This is awesome if you don't want to see any code.

    But if you need to get the code, you will need to use FileZilla in order to get the code from the App service. The fields that you need for FileZilla you can found here:
    image
    Once you're connected you will be able to download the code. Bear in mind that to make this work locally, you will need to update appsettings.json file with the configuration info needed. Some of these you will be able to find in App service -> Configuration.
  3. If you go to a newly created bot and go to Test in Web chat, you should be able to test it properly: Demo in Azure (deployed):
2023-09-27_13h57_38.mp4

Azure services needed in total:
image

Integrated in teams:
image