BotBuilder-Samples icon indicating copy to clipboard operation
BotBuilder-Samples copied to clipboard

Bot with Orchestrator cant find model and path

Open D33TW0 opened this issue 5 years ago • 3 comments

Github issues for C# /JS / Java/ Python should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.

Sample information

  1. Sample type: sample
  2. Sample language: dotnetcore
  3. Sample name: 14.nlp-with-orchestrator

Describe the bug

When i publish the finished Bot with orchestrator sample and test it in web, the bot throws the following exeption with the message in the App Insights:

"Failed to find or load Model with path C:\home\site\wwwroot\model Invalid or missing model file ("ModelFile" value in config): C:\home\site\wwwroot\model\model.onnx".

When i test the bot locally, everything works just fine. I have uploaded some screenshots for further informations. Maybe it is just a super simple error and i just cant get it, im pretty new to the orchestrator tool.

To Reproduce

Steps to reproduce the behavior:

  1. Follow the steps from the 14.nlp-with-orchestrator sample
  2. In my specific case, i dont have any LUIS models, but five QnA Maker Knowledge Bases (There could be some leftovers from LUIS in the screenshots, but they arent causing the problem because on local tests everything works)
  3. Publish the configured sample to a web app bot
  4. Test the bot in web and try to trigger a QnA Pair

Expected behavior

The bot should give an answer from one of the connected knowledge bases

Screenshots

fail

startup

appsettings

orchestratorsettings

Screenshot 2021-08-27 000015

D33TW0 avatar Aug 26 '21 22:08 D33TW0

@danieldangler, thank you for your patience. When you say you don't have any LUIS models, are you still supplying the LUIS API and key? When running the botframework-cli commands listed in the samples README.md file, are you skipping the bf luis:build step and only running the others?

It looks like the modelPath and snapshotPath property values are not getting properly updated. I will attempt a repro, but if you could answer the above, that would help in my setting up my environment to match yours.

stevkan avatar Sep 03 '21 17:09 stevkan

Hey @stevkan, yes, i skipped the complete LUIS part and only did the QnA commands. For these, i used bf orchestrator:create instead of bf orchestrator:build because i already had the knowledge bases set up.

D33TW0 avatar Sep 06 '21 08:09 D33TW0

@stevkan i found the problem. The files "model.onnx", "vocab.txt" and "orchestrator.blu" are marked as "Do not copy" in the properties in Visual Studio so if i want to manually publish the files via VS, these three wont get uploaded to the app service as well.

1

You need to set them to "copy if newer" or "always copy" to publish the files to the service in Azure.

2

D33TW0 avatar Sep 07 '21 10:09 D33TW0