docker安装

https://github.com/RasaHQ/rasa
https://github.com/RasaHQ/rasa

  • docker
curl -XGET https://mirror.ccs.tencentyun.com/v2/rasa/rasa/tags/list
rasa/rasa:3.6.9
rasa/rasa:3.6.9-full
docker pull rasa/rasa:3.6.9-full

插件安装



模型镜像加速下载

源站 https://huggingface.co/models
镜像站 https://hf-mirror.com/

#linux配置加速地址
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip install -U huggingface_hub
export HF_ENDPOINT=https://hf-mirror.com

需要挂载目录 /app
  • 目录文件结构
    /app
    /.cache 缓存的预训练模型(可手工上传)
actions
    actions.py       动作python程序
    __init__.py        
config.yml            配置文件
credentials.yml        凭据
data
    cities.yml
    nlu.yml            意图配置
    rules.yml        匹配规则
    stories.yml        故事配置
domain.yml            领域
endpoints.yml        端点
tests
    test_stores.yml    测试文件