We are freqently adding FAQs to our database and allow users to search the FAQ through an application.
It would be handy to dynamically show a list of the last 10 FAQ added. Is this something that can be queried through the API? How?
We are freqently adding FAQs to our database and allow users to search the FAQ through an application.
It would be handy to dynamically show a list of the last 10 FAQ added. Is this something that can be queried through the API? How?
@Thomas-4898 If you are looking to display the last 10 FAQs displayed when a user queries through the GenerateAnswer API then you can achieve this by using the metadata tags to your Q&A pairs.
For example if you add a Q&A pair with the following tags:

You could query the metadata tags with strictFilters in the generateAnswer API.
curl -X POST https://replace-with-your-resource-name.azurewebsites.net/qnamaker/knowledgebases/replace-with-your-knowledge-base-id/generateAnswer -H "Authorization: EndpointKey replace-with-your-endpoint-key" -H "Content-type: application/json" -d "{'top':30, 'question':'size','strictFilters': [{'name':'service','value':'qna_maker'}]}"
You could possibly add a tag called added:latest to your last 10 Q&A FAQs and then use these in the query to fetch results only from the latest Q&A answers.
Thanks, this is something that could work.
However, I will need to fire an empty question, as I would like to show the list on a portal prior to user input.
4 people are following this question.