RasaHQ / rasa

💬 Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants
https://rasa.com/docs/rasa/
Apache License 2.0
18.91k stars 4.63k forks source link

2.X -> 3.0 QA: Loading a 2.X model with 3.0 produces an unexpected file not found error. #10108

Closed usc-m closed 2 years ago

usc-m commented 2 years ago

Creating a model with rasa 2.8.X using rasa init, training it, and then attempting to load it with rasa shell after switching to a rasa 3.0 produces a file not found error:

FileNotFoundException: Failed to read file, '/var/folders/4x/yjfd_jb15c55fy63yj53cjgm0000gn/T/tmphdo98uql/metadata.json' does not exist.

Steps to Reproduce

  1. Create a virtual environment and install rasa 2.8
  2. Create another virtual environment and install rasa 3.0rc1
  3. Using the rasa 2.8 venv, create a new project and train it
  4. Using the rasa 3.0rc1 venv, attempt to run rasa shell on the project
wochinge commented 2 years ago

@ka-bu This issue covers the transition from 2.x to 3.x. However, we in general should check a models MINIMUM_COMPATIBLE_VERSION against the currently used Rasa Open Source version when loading a Rasa model. E.g. if the minimum compatible version is 3.1 and you try to load a 3.x model we should refuse loading this model. Basically implementing this and this for the new model architecture. A good place for this check would be here or in anything calling this