Closed erradimourad closed 3 years ago
@erradimourad, latest dispatch cli version allows you to point to the preview version of QnA API.
Follow these steps:
Where you Dispatch CLI is installed, ie C:\Users\tiens\AppData\Roaming\npm\node_modules\botdispatch\bin\netcoreapp2.1
Edit appsettings.json, replace this line:
"QnAMakerEndpointUrlFormat": "{0}/qnamaker/v4.0"
with
"QnAMakerEndpointUrlFormat": "{0}/qnamaker/v5.0-preview.1"
In the folder where dispatch CLI is normally run from, edit *.dispatch file and add "region" field to the QnA data source, ie: "services": [ { "kbId": "8a707cd7-c07c-4575-942e-4f999ffc42fd", "subscriptionKey": "KEY", "type": "qna", "name": "TravelPolicy", "region": "westus", "id": "2" }
Run "dispatch refresh" or "dispatch create" again
Let me know if you are having any issues with this.
thank you Tien, it works on my side. but i have another questions which is related to the proposed solution: if i have a customSubDomainName for my QNA service so the endpoint url will be
customSubDomainName.api.cognitive.microsoft.com/qnamaker/v5.0-preview.1
and which is different of :
region.api.cognitive.microsoft.com/qnamaker/v5.0-preview.1
i can hardcode the value of QnAMakerEndpointUrlFormat in the setting file but i'm trying to do some script automation to handle this case. any idea is much welcome.
@erradimourad, would you get different result when using customSubDomainName.api.cognitive.microsoft.com/qnamaker/v5.0-preview.1 compared to region.api.cognitive.microsoft.com/qnamaker/v5.0-preview.1?
Looking at the custom url format, you could try using customSubDomainName as region value for the QnAMaker kb source in .dispatch file.
@erradimourad, will close this issue as you could point to QnA preview API. Let me know if you are seeing other issues. Thanks!
Tool
Name: [|Dispatch] Version: 1.7.4 OS: Windows
Describe the bug
the dispatch tools doesn't work with the preview version of QnAMaker because it uses the incorrect endpoint and there's no option to change the endpoint.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
the execution of the command should connect to the QNA KB and export its content using the correct API.
Screenshots
If applicable, add screenshots to help explain your problem.
[bug]