Rasa in Docker: Could not load model due to Error deserializing graph schema

发布时间: 2023-10-08 17:23:54 作者: 大象笔记

When deploying Rasa service in production Docker environment, error show:

rasa.core.agent - Could not load model due to Error deserializing graph schema. Can't find class for graph component type 'rasa.graph_components.providers.forms_provider.FormsProvider'

Reason

This error typically occurs when there is a mismatch between the version of Rasa used to train the model and the version used to load the model. It's possible that the model was trained with a newer version of Rasa that introduced a new graph component type (in this case, 'FormsProvider'), which is not recognized by the older version used to load the model.

e.g.

Solution

Pull new version of Rasa docker same as dev enviroment.

Check Rasa Version

> rasa --version

Rasa Version      :         3.4.6
Minimum Compatible Version: 3.0.0
Rasa SDK Version  :         3.4.1
Python Version    :         3.8.5
Operating System  :         Linux-4.4.0-22621-Microsoft-x86_64-with-glibc2.29
Python Path       :         /usr/bin/python3
我是一名山东烟台的开发者,联系作者