0

As the title, I want to get all of my Knowledge base's Metadata Filters. Is it possible?

Jeff_hu
  • 417
  • 4
  • 15

1 Answers1

0

I want to get all of my Knowledge base's Metadata Filters.

If you check the QnA Maker REST API V4.0 documentation, you can find that it enables us to downloads the contents of the specified knowledge base by using the Download knowledge base method, and you can get the collection of all Q-A include metadata details in the specified knowledge base.

GET https://westus.api.cognitive.microsoft.com/qnamaker/v4.0/knowledgebases/{kbId}/{environment}/qna

Test result:

enter image description here

Update:

I'm using QnAMaker - V3.0.. It also enables to downloads.

Yes, in QnAMaker V3.0 REST API, it also provides the Download Knowledge Base method:

GET https://westus.dev.cognitive.microsoft.com/docs/services/597029932bcd590e74b648fb/operations/59703d2f5393d704443ee723
Fei Han
  • 26,415
  • 1
  • 30
  • 41
  • I'm using QnAMaker - V3.0.. It also enables to downloads. I will try it.. I'm confused about the versions. I know there are some differences. But which one should we use? The higher version, the better? – Jeff_hu Aug 21 '18 at 05:55
  • I suspect that it might not enable us to use the QnA Maker REST API V4.0 to operate QnAMaker - V3.0, if possible, you can do a test with your QnAMaker service. – Fei Han Aug 21 '18 at 06:41
  • I tested in the web below. I entered my knowledgeBaseID and Ocp-Apim-Subscription-Key .. But it was "401 Access Denied".. What's the Ocp-Apim-Subscription-Key. https://westus.dev.cognitive.microsoft.com/docs/services/597029932bcd590e74b648fb/operations/59703d2f5393d704443ee723/console – Jeff_hu Aug 21 '18 at 07:31
  • Please check ["Subscription Keys"](https://learn.microsoft.com/en-us/azure/cognitive-services/qnamaker/how-to/key-management#subscription-keys). – Fei Han Aug 21 '18 at 07:34