Skip to content

classProgrammer/horus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 

Repository files navigation

Masterthesis Chatbot Project

Rasa Structure

  • nlu: Intent Definition
  • domain: Definition of all adressable components
  • stories: Definition of conversation structures/scripts
  • actions: Validation and processing of data

Rasa Install Guide

Project Lifecycle Methods

Train the Network:

shell@something/.../horus> rasa train

Start the Action Server

shell@something/.../horus> rasa run actions

Start the local Rasa Shell

shell@something/.../horus> rasa shell

Start Rasa-X (Browser)

shell@something/.../horus> rasa x

Run Rasa as local HTTP Server

shell@something/.../horus> rasa run --enable-api --cors "*"

Local Address: http://localhost:5005/webhooks/rest/webhook

Request Body:

{
  "sender": "other",
  "message": "hallo"
}

Rasa in a local Docker Container

Startup Command

docker-compose up

Docker Compose File

version: '3.0'
services:
  rasa:
    image: rasa/rasa:1.4.6
    ports:
      - 80:5005
    networks: 
      - app_net
    volumes:
      - ./:/app
    command:
      run 
      --enable-api
      --cors *
    
  action_server:
    image: rasa/rasa-sdk:1.4.0    
    volumes:
      - ./actions:/app/actions
    expose: 
      - 5055
    networks: 
      - app_net

networks: 
  app_net:

run the shell

    docker run -it -v %cd%:/app rasa/rasa:1.4.6 shell

train custom model

    docker run -v %cd%:/app rasa/rasa:1.4.6 train --domain domain.yml --data data --out models

Rasa Azure Docker Container

Addresses:

docker build -t horusrasaregistry.azurecr.io/rasa/rasa-sdk:custom .

docker push horusrasaregistry.azurecr.io/rasa/rasa-sdk:custom

docker build -f app.Dockerfile -t horusrasaregistry.azurecr.io/rasa/rasa:custom2 .

docker push horusrasaregistry.azurecr.io/rasa/rasa:custom2

Action Server Image

FROM rasa/rasa-sdk:latest
LABEL maintainer="Spenlingwimer Gerald" version="1.0"
COPY ./actions /app/actions

Rasa Image

FROM rasa/rasa:latest
LABEL maintainer="Spenlingwimer Gerald" version="1.4"
COPY ./ /app
CMD [ "run", "--enable-api", "--cors", "*" ]

Azure Compose File

version: '3.0'
services:
  rasa:
    image: horusrasaregistry.azurecr.io/rasa/rasa:custom2
    ports:
      - 80:5005
    networks: 
      - app_net
    
  action_server:
    image: horusrasaregistry.azurecr.io/rasa/rasa-sdk:custom2
    expose: 
      - 5055
    networks: 
      - app_net
networks: 
  app_net:

Source of Information

About

RASA Chatbot Implementation, Docker Deployment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published