How to upload a file to QnA Maker knowledge base using API ?

SAI 1 Reputation point
2021-07-26T04:35:46.143+00:00

Hi, I am using python for the QnA maker services API. My aim is to create knowledge base by uploading a file (.pdf, .docx, etc.). I am referring to following code : create-new-knowledge-base.py . But there is no specification of how to pass file arguments. I am new to Azure services, please can anyone help me with that. Thanks.

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,598 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,826 Reputation points
    2021-07-28T08:18:47.963+00:00

    @SAI Here is the quick-start code to create a KB, We are able to create the KB and verify the same in QnA maker.

    Python: https://github.com/Azure-Samples/cognitive-services-quickstart-code/tree/master/python/QnAMaker/rest

    118605-image.png
    118578-image.png


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.