microsoft / BotBuilder-Samples

Welcome to the Bot Framework samples repository. Here you will find task-focused samples in C#, JavaScript/TypeScript, and Python to help you get started with the Bot Framework SDK!
https://github.com/Microsoft/botframework
MIT License
4.37k stars 4.87k forks source link

Orchestrator related samples failed with "Failed to find or load Model" #2753

Closed feich-ms closed 7 months ago

feich-ms commented 4 years ago

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: samples
  2. Sample language: dotnetcore
  3. 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 image image

03.declarative-bot image

Additional context

Add any other context about the problem here.

feich-ms commented 4 years ago

@tsuwandy could you take a look if there are some issues for these orchestrator samples?

feich-ms commented 4 years ago

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.

tsuwandy commented 4 years ago

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

feich-ms commented 4 years ago

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

tsuwandy commented 4 years ago

@feich-ms, I’ll take a look at the sample. I think we are still missing a build of bf orchestrator cli.

feich-ms commented 4 years ago

The error comes from InitializeModel function here https://github.com/microsoft/botbuilder-dotnet/blob/main/libraries/Microsoft.Bot.Builder.AI.Orchestrator/OrchestratorAdaptiveRecognizer.cs#L294.

tsuwandy commented 4 years ago

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

tsuwandy commented 4 years ago

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

KoradaRajesh commented 3 years ago

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);`
tracyboehrer commented 7 months ago

Old. Sample removed.