User Profile
ChristianGross
Copper Contributor
Joined 6 years ago
User Widgets
Recent Discussions
QnA Maker API - How to programatically delete structured QnA files?
Hello all, I am working on a programmatic solution to feed QnAs into QnA Maker. In order to do so, I use the API to provide structured data, as outlined here https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/concepts/data-sources-supported#structured-data-format-through-import The reason is, I cannot use files nor urls and thus leave these fields blank when submitting my data. The input I being used looks like {"id":<Integer>, "answer":"<Textual Content>", "questions":["<Textual Content>"], "metadata":[]} As it turns out, I cannot provide any URLs, as the repositories are on premise and cannot be accessed by QnA Maker. Now, my observation is that I cannot programatically delete my documents using the "id" which I provided in the initial submission. Actually, it appears that QnA Maker replaces my "id" by some internal counting which starts from 0 for fresh KBs. Thus, it turns out that I can delete my Q&As if I just guess these ids. My questions therefore are: Is the above observation correct? A hint pointing at the documentation on how these ids which are needed for deleting would be helpful. If yes, are there any thoughts of extending the behavior toward a fallback approach, i.e., only if no "id" is given, this counting starting from 0 is used? In the meantime, is there a way to programtically retrieve this internal "id" from QnA Maker, ideally as part of the success response? Thank you!4.8KViews0likes6Comments
Groups
Recent Blog Articles
No content to show