Comments (4)
@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.
from botbuilder-tools.
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.
from botbuilder-tools.
@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.
from botbuilder-tools.
@erradimourad, will close this issue as you could point to QnA preview API. Let me know if you are seeing other issues. Thanks!
from botbuilder-tools.
Related Issues (20)
- Entity limit dispatch tool HOT 6
- Dispatch Tool fails to train the luis based on preview version of qnamaker HOT 6
- LuisGen cannot create a C# class when json has sub entities HOT 1
- Triage
- Msbot
- Feature Request: ability to use Custom Subdomain instead of regional domain HOT 2
- dispatch refresh v1.7.6 throws null reference exception HOT 5
- Update tile thumbnails to match template & tutorial HOT 1
- Product tour should be 1st tile in Tutorials
- Add Dispatch deprecation text on main bf tool README
- BotBuilder-Tools-DotNet-Sign-daily pipeline is failing with the missing package version. HOT 1
- Dispatch init command is getting hanged and taking forever to complete HOT 2
- Not able to create knowledge base on QnA app created through ARM template HOT 5
- Hello everyone - is there a way we can fix the Image display size in the Teams chatbot conversation? HOT 1
- Jj
- QnA Maker return wrong answer for exact questions HOT 1
- It was not possible to find any compatible framework version (luisgen) HOT 3
- exported file from Language Studio is not imported
- This repo is missing important files HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botbuilder-tools.