RasaX

  • 说明: 由于社区版已不再支持rasaX,所以使用的镜像版本2.x
  • 镜像:
    rasa/rasa:2.8.34-full
    rasa/rasa-x:0.42.7

  • docker-compose.yml

services:
  rasa_api:
    ...
  rasa_action:
    ....
  rasa_x:
    image: $
    restart: always
    user: root
    container_name: $
    deploy:
      resources:
        limits:
          cpus: "$"
          memory: "$"
      restart_policy:
        condition: any
        delay: 3s
    volumes:        
      - "$/app:/app"
    ports:
      - "5002:5002" 
    tty: true
    privileged: true 
    working_dir: /app
    entrypoint: ["/app/Entrypoint.sh"]
    # command: ['rasa','x']
    environment:
        - TZ=Asia/Shanghai
        - LANG=zh_CN.UTF-8
        - PIP_ROOT_USER_ACTION=ignore
        - PIP_DISABLE_PIP_VERSION_CHECK=true
    networks:
      - default_net 
networks:
  default_net: 
    name: $
    driver: bridge
    external: true



2.0 数据导出3.0

#将2.0域迁移到3.0格式
rasa data migrate

#指定输入和输出目录
rasa data migrate -d DOMAIN --out OUT_PATH
如果未指定参数,则默认域路径(domain.yml)将用于输入和输出文件


#检查域、NLU数据或故事数据是否存在错误和不一致
rasa data validate

#检查故事结构
rasa data validate stories


#导出事件
rasa export