I am trying to test the Rasa 3.0 model /train endpoint and it does not seem to work for me.
I started the server using:
rasa run -m models --enable-api --log-file out.log --auth-token thisismysecret
After testing out different variations of the endpoint call and different yaml training data configuration, the best I could come up with is the following:
curl -XPOST "localhost:5005/model/train?save_to_default_model_directory=false&force_training=true&token=thisismysecret" -d '{version: \"3.0\", pipeline: [], policies: [], intents: [greet, goodbye, bot_challenge], entities: [], slots: {}, actions: [], forms: {}, e2e_actions: [], responses: {utter_greet: [{text: "Hello, this is the callback bot service powered by Rasa. How could I help"}], utter_goodbye: [{text: "Goodbye"}], utter_iamabot: [{text: "I am a bot powered by Rasa. How can I help"}]}, session_config: {version: 3, session_expiration_time: 60, carry_over_slots_to_new_session: true}, nlu: [{intent: greet, examples: "- hi\n- hello\n- how are you\n- good morning\n- good evening\n"}, {intent: goodbye, examples: "- bye\n- goodbye\n- ciao\n- cu\n- cya\n"}, {intent: bot_challenge, examples: "- are you a bot\n- are you a human\n- am I talking to a bot\n- am I talking to a human\n- I want pizza\n- what time is it\n"}], rules: [{rule: say hi, steps: [{intent: greet}, {action: utter_greet}]}], stories: [{story: challenge the bot, steps: [{intent: bot_challenge}, {action: utter_iamabot}]}]}'
The error I am getting back in my terminal:
{"version":"3.0.4","status":"failure","message":"Ran training, but it finished without a trained model.","reason":"TrainingError","details":{},"help":null,"code":500}
The error in the out.log
2022-02-01 15:59:17,737 [ERROR] Ran training, but it finished without a trained model.
And lastly, the error from the server shell:
UserWarning: Training data file /tmp/tmpbm133fl1/data.yml must specify 'version' as string, for example:
version: '3.0'
Rasa Open Source will read the file as a version '3.0' file.
More info at https://rasa.com/docs/rasa/training-data-format
No training data given. Please provide stories and NLU data in order to train a Rasa model using the '--data' argument.
2022-02-01 16:15:47 ERROR rasa.server - Ran training, but it finished without a trained model.
Can someone please point out what my mistake is? Or show me your own working example of the /model/train endpoint ?