【发布时间】:2018-12-22 07:15:34
【问题描述】:
我已经使用 rasa 框架构建了一个聊天机器人。现在我想在我的网站上部署它,但我不想使用 chatterbot 或 Docker 部署它。我在谷歌上搜索,但我没有得到它。
如何在我的网站上部署聊天机器人?
【问题讨论】:
标签: python chatbot rasa-nlu rasa-core
我已经使用 rasa 框架构建了一个聊天机器人。现在我想在我的网站上部署它,但我不想使用 chatterbot 或 Docker 部署它。我在谷歌上搜索,但我没有得到它。
如何在我的网站上部署聊天机器人?
【问题讨论】:
标签: python chatbot rasa-nlu rasa-core
python -m rasa_nlu.server --path projects 将 NLU 作为服务器启动(有关文档,请参阅here)。使用 nohup 之类的工具执行此操作,这样当您关闭终端窗口时服务器不会被终止编辑 Rasa Core 的端点配置文件,使其链接到 NLU(参见文档here):
nlu:
url: "http://<your nlu host>:5000"
决定您希望如何将您网站上的机器人连接到 Rasa。它可能是通过REST 或使用socketio。将使用通道的配置添加到凭证文件,例如用于 REST
rest:
# you don't need to provide anything here - this channel doesn't
# require any credentials
运行 Rasa 核心
python -m rasa_core.run -d <path to core model> \
-u <nlu model you want to use> \
--endpoints <path to your endpoint configuration (includes NLU url) \
--credentials <channel credentials>
【讨论】: