Publishing, Querying and Deleting the Knowledge Base Using SDK
Explore how to publish, query, and delete a knowledge base using the Azure QnA Maker SDK with Python. Understand how to retrieve runtime endpoints, interact with the QnA Maker to get answers, and manage your knowledge base lifecycle effectively.
We'll cover the following...
To recap, in the previous lesson we created the knowledge base using the Azure QnA Maker SDK for Python and added one URL as the data source which contains the question-answer pairs. In this lesson, we’ll publish the knowledge base, then get the answers from the QnA maker, and finally, we’ll explore how to delete the knowledge base.
Publishing the knowledge base
We’ll use the qna_maker_knowledge_base_id that we saved from the previous lesson and send this value as a parameter to the publish() method to publish the knowledge base.
Explanation:
-
In line 1, we use the
publish()method and pass ...