Giter Site home page Giter Site logo

Comments (4)

tsuwandy avatar tsuwandy commented on June 12, 2024

@erradimourad, latest dispatch cli version allows you to point to the preview version of QnA API.

Follow these steps:

  1. Where you Dispatch CLI is installed, ie C:\Users\tiens\AppData\Roaming\npm\node_modules\botdispatch\bin\netcoreapp2.1

  2. Edit appsettings.json, replace this line:

     "QnAMakerEndpointUrlFormat": "{0}/qnamaker/v4.0"
    

    with

    "QnAMakerEndpointUrlFormat": "{0}/qnamaker/v5.0-preview.1"

  3. 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"
    }

  4. Run "dispatch refresh" or "dispatch create" again

Let me know if you are having any issues with this.

from botbuilder-tools.

erradimourad avatar erradimourad commented on June 12, 2024

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.

tsuwandy avatar tsuwandy commented on June 12, 2024

@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.

tsuwandy avatar tsuwandy commented on June 12, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.