botpress / studio

The studio is the main interface you'll use to build and edit your chatbot.
https://botpress.com/docs/quickstart#conversation-studio
35 stars 37 forks source link

feat(studio): add download modelweights step before uploading chatbot to cloud #325

Closed laurentlp closed 2 years ago

laurentlp commented 2 years ago

This PR adds the prerequisites steps to make sure that the models are uploaded with the chatbot when deploying to the cloud.

To test this feature, you have two options:

  1. Use the cloud NLU
    • No configuration is required
    • It will succeed and you will be able to see the model(s) on the disk under data/<botId>/models/<modelId>
  2. Run the NLU locally
    • Clone the NLU repository and checkout the cloud branch
    • Set CLOUD_NLU_ENDPOINT to http://localhost3200 on Botpress side
    • Create a configuration file for the NLU server by running yarn start init
    • Edit the nlu.config.json file by adding the config "modelTransferEnabled": true
    • Start the NLU server and try to deploy a bot. It will fail but you will be able to see the model(s) on the disk under data/<botId>/models/<modelId>
linear[bot] commented 2 years ago

DEV-2486 Add download modelweights step before uploading chatbot to cloud