BotBuilder-Samples
BotBuilder-Samples copied to clipboard
Orchestrator related samples failed with "Failed to find or load Model"
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
- Sample type: samples
- Sample language: dotnetcore
- Sample name: experimental/orchestrator/csharp_dotnetcore/01.dispatch-bot and experimental/orchestrator/csharp_dotnetcore/03.declarative-bot
Describe the bug
Follow the readme to run the sample and will get "Failed to find or load Model" error when playing it with Emulator.
To Reproduce
Steps to reproduce the behavior: Follow the steps in readme
Expected behavior
The bot respond correctly without throwing error
Screenshots
01.dispatch-bot
03.declarative-bot
Additional context
Add any other context about the problem here.
@tsuwandy could you take a look if there are some issues for these orchestrator samples?
I also created a PR to update the sample docs to a working version based on my trial https://github.com/microsoft/BotBuilder-Samples/pull/2754. Hope that helps.
@feich-ms, we have updated orchestrator-core and bf orchestrator packages (will be updated midnight). this error should go away once everything is updated and bf cli is pointed to new model 1.1.0-pretrained.20200819-12l.microsoft.dte.en.onnx.
Please verify, thanks!
@tsuwandy, the error("Failed to find or load Model") is still there. Do you have a chance to follow the README of 03.declarative-bot to build the model and then chat with the bot in Emulator?
Below is what I generated with cli. All sources seem right, but the bot still run into this "Failed to find or load Model" issue when chatting with it.
@feich-ms, I’ll take a look at the sample. I think we are still missing a build of bf orchestrator cli.
The error comes from InitializeModel function here https://github.com/microsoft/botbuilder-dotnet/blob/main/libraries/Microsoft.Bot.Builder.AI.Orchestrator/OrchestratorAdaptiveRecognizer.cs#L294.
@feich-ms, we just need latest Microsoft.BotFramework.Orchestrator nuget package (dependency of Microsoft.Bot.Builder.AI.Orchestrator package) from our preview feed (Conversational AI feed). I'll add a nuget. config to the samples so it could point to the CAI feed. Just waiting for latest package to be deployed.
@feich-ms, we actually need Microsoft.BotFramework.Orchestrator nuget package pushed to nuget. Will have to talk to Chris Mullins to get approval tomorrow am or find some other solution. Thanks.
Facing same issue "Failed to load model" using
`string modelPath = Path.GetFullPath(".\model"); string snapshotPath = Path.GetFullPath(".\generated\orchestrator.blu");
// Create OrchestratorRecognizer.
OrchestratorRecognizer orc = new OrchestratorRecognizer()
{
ModelPath = modelPath,
SnapshotPath = snapshotPath
};
// Recognize user input.
var recoResult = await orc.RecognizeAsync(turnContext, cancellationToken);`
Old. Sample removed.