botpress / nlu

This repo contains every ML/NLU related code written by Botpress in the NodeJS environment. This includes the Botpress Standalone NLU Server.
23 stars 21 forks source link

[BUG] External NLU doesn't work #110

Closed allardy closed 3 years ago

allardy commented 3 years ago

Models are not loaded when you use the external NLU server.

  1. Start the NLU server as a standalone
  2. set autoStartNLUServer=false and set "nluServerEndpoint": "http://localhost:3200"
  3. Start the server and talk to a bot.

Gives error: image The model does exist: image

Also, note that the extension is ..model instead of .model

franklevasseur commented 3 years ago

Hi @allardy,

I'll address the 2 separate issues mentioned above separately.

The consecutive dots on model file name

I fixed this issue a while ago, but only on branch next: #95.

Unfortunately, I completely forgot to bring back the fix on master.

As it does not prevent the NLU-Server to work properly (it's just really weird), I'll leave it as-is for now until we merge next.

Your model id can't be found

This has nothing to do with the fact that you're using an external NLU Server.

I'm not 100% sure of what's happening, but I feel like this only occurs on branch next of the main Botpress repo. My guess is that you switched from an auto-launched nlu-server to an external one and did not train afterward.

I'll talk to you on Tuesday to figure out what's happening.

In all cases, this issue is unrelated to NLU-server. Please open issues on the correct repo in the future.

I'll close the issue for the reasons mentioned above.