QnA + Azure Cognitive Search enables instant answers over your search results. Now, you do not need to spend time looking through your pile of documents to find the exact answer to your query. There will be an instant answer coming up for the user query from the most relevant documents present in your system. A solution where you can ingest your pile of documents and query over themto get the answer as well as related relevant documents to get more information.
This solution accelerator enables automatic bulk ingestion of documents for QnA processing via a Cognitive Search custom skill. The sample UI showcases the combined experience of instant answers to your questions as well as the list of relevant documents. Finally, the solution is easily deployed using a simple Deploy button, which sets up all necessary services in your Azure subscription
Converged search experience powering instant answer and relevant documents.
Search using natural language queries.
Saves end user time during search.
Flexibility to enhance and edit instant answers.
The solution combines the power of both Azure Cognitive Search and QnA Maker to extract question-answer pairs from your documents before storing them in the index. Once you deploy the solution, you get a single endpoint where for each end user query both the services will be called in parallel and you will get a combined resultwith an instant answer powered by QnAMaker along with the relevant documents coming from Azure Cognitive Search. Checkout the Cognitive Search Question Answering Solution Accelerator (github.com)
This solution accelerator contains the following artifacts:
ARM template to set up the solution.
Custom skill in Azure Cognitive Search, which ingests the data into QnA Maker.
Currently instant answers will only be available for the file types supported by QnA Maker. By default, the logic in the Azure Cognitive Search service indexer also ingests only the following file types: .pdf,.docx,.doc,.xlsx,.xls,.html,.rtf,.txt,.tsv. You can change this by modifying the indexedFileNameExtensions property in the Indexer.json.
This will take you to the create blade where all the information will be pre-filled, as shown below. Click Review+ Create button to proceed.
Your deployment process will take 4-5 minutes to complete. Once completed you will land up on the following page:
Click on Deployment details to check all the resources that have been created.
To initialize the solution, click on the“Outputs”buttononthe left.Copy the“http triggerto initializeaccelerator" value.Opena new browser tab and paste thisURL into the browser. This will run for about a minute,and then you'll see a message indicating success or failure.
If the initialization is successful, then following message will appear:
Oncethe resources are initialized, you can access the portal through the“UI portal link”valuein the Output tab.
You can upload the documents one by one through the UI portal, by goingtothe Upload tab.
You can also upload the documents in bulk, through acontainer.
Go to your storage account.
Click on Containers and select qna-container to upload the documents in bulk.
Use the Upload tab and select the multiple files you want to ingest. It will take some time to index the documents and to extract the Question Answer pairs out of the documents.
Question Answer Enhancement:
Once the ingestion is complete, you can view all the Question Answer pairs extracted from the documents byclicking on“Knowledge Base”.
Play with your knowledge base!, Youcan also testfor different queries using the Test Pane. Once you are satisfied with the experience, click on“Save andTrain”and then“Publish”the changes to get these changes reflected on your main portal.
This solution has been specifically created for our customers to address the long-term standing askto retrievean instant answer from the relevant document. This solution currently covers the basic functionality, and we will keep adding more features based on user interaction and customer’s feedback. Please feel free to drop us a mail at email@example.com to provide your valuable feedback.