Need Help to use Rasa Core Server


(Thibaut Collette) #1

Hello,

I am trying to use Rasa in a new personal project. I want to use the CORE HTTP API but the /conversations/{sender}/parse route is not available. It returns a 404.

Has some someone succeeded to make it work? If yes can I have some help?

I trained the NLU part using

python -m rasa_nlu.train --config conf.yml --data nlu_data.md --path projects

and then I trained the Story part using

python -m rasa_core.train -d domain.yml -s stories.md -o models/current/dialogue --epochs 200

No special error was raised. When I launch the server using

python -m rasa_core.run --enable_api -d models/current/dialogue -u models/current/nlu -o out.log --debug

I can’t see the parse route whereas it’s mandatory to start…

Anyone?

Thanks in advance

Thibaut


(Juste) #2

Hey @ThibautCollette.

I can see that you save your NLU model inside the directory called ‘projects’, which means that after you run the first command your model is saved in ./projects/default/model_xxx . However, when you start the sever (running rasa_core.run function), the path you provide for your nlu model is models/current/nlu. I would expect you to get the 'No such file or directory: 'models/current/nlu\\metadata.json'' error here. To fix that you should specificy the correct path for your nlu model which is projects/default/model_xxxxxxxx.

Alternatively, you can change the directory where you save the nlu model after it’s trained. For example, using the following command:

python -m rasa_nlu.train -c conf.yml --data data/nlu_data.md -o models --fixed_model_name nlu --project current --verbose

your nlu model will be saved inside the models/current/nlu dorectory and therefore match the path you originally specified in rasa_core.run function.


(Thibaut Collette) #3

Hello @Juste, Thank you very much for your reply. I indeed, run again the nlu_train command with what you suggested before being able to launch the server, you’re right. Once I did that I was still facing the issue mentioned that the parse route was not available…


(Thibaut Collette) #4

I restarted and did what you do but here is the debug logs from rasa_core.run:

As you can see there is no /conversations/[sender_id]/parse route…


(manish joshi) #5

I am having the same issue. Please help.


(Siva Kovvuru) #6

@ThibautCollette

as per the Changelog these endpoints are now removed.

Removed

  • outdated documentation for removed endpoints in the server ( /parse & /continue )"

Try looking at the latest documentation for the changes.


(Thibaut Collette) #7

Hello,

Thank you very much for your response. I’ve seen this changelog was published today (for version 0.11.2) but documentation latest version is 0.11.1. Maybe it will be available later today. I’ll wait a bit and see.

Thank you


(Thibaut Collette) #8

In the meantime, file is available here:

Thank you very much for your help, I’ll check that out tonight :slight_smile:


(Akela Drissner) #9

Yeah sorry about that, the docs are now updated and so is the migration guide: https://rasa.com/docs/core/migrations/