Conversational agent (supporting Romanian language), that can make use of a knowledge graph database to represent, store and retrieve natural language information.
python -m spacy link <absolute_path>/pepper/models/spacy-ro/ro_model0 rorasa train --data \
microworlds/generic/data \
microworlds/mem_assistant/data \
microworlds/university_guide/dataA separate dataset for testing the NLU pipeline of the RASA agent is defined in microworlds/test.
rasa test nlu --nlu microworlds/test
rasa train --data microworlds/generic/data microworlds/mem_assistant/data microworlds/university_guide/data --config config.yml && rasa test nlu --nlu microworlds/test --config config.yml- Start actions HTTP server:
rasa run actions - Start a RASA shell to communicate with the agent from the command line:
rasa shellor start the REST API:rasa run -p 80 --enable-api --cors *
python3 grakn_lookup.pyThe knowledge base is implemented using a GraphDB graph database (based on RDF triples).
docker run -p7200:7200 -v graphdb:/opt/graphdb-instance --name graphdb graphdbcurl -X POST --header "Content-Type:multipart/form-data" -F "config=@/opt/graphdb-free-9.4.1/configs/config.ttl" "http://localhost:7200/rest/repositories"docker build -t registry.gitlab.com/gabrielboroghina/pepper-conv-agent/pepper-web -f ../pepper-web-frontend/web-ui.prod.dockerfile .
docker push registry.gitlab.com/gabrielboroghina/pepper-conv-agent/pepper-web
docker build -t registry.gitlab.com/gabrielboroghina/pepper-conv-agent/rasa-server -f rasa-agent.dockerfile .
docker push registry.gitlab.com/gabrielboroghina/pepper-conv-agent/rasa-server
docker build -t registry.gitlab.com/gabrielboroghina/pepper-conv-agent/rasa-actions -f actions/rasa-actions.dockerfile .
docker push registry.gitlab.com/gabrielboroghina/pepper-conv-agent/rasa-actions
docker build -t registry.gitlab.com/gabrielboroghina/pepper-conv-agent/graphdb -f graphdb.dockerfile .
docker push registry.gitlab.com/gabrielboroghina/pepper-conv-agent/graphdb- Allow access to the Docker images registry (get deploy token e.g. from GitLab project's settings -> Repository -> Deploy tokens):
docker login -u <username> -p <deploy_token> registry.gitlab.com # Needs GitLab deploy token-
Copy deployment files to the remote machine(s):
stack.ymlandkong.yml -
Pull images and deploy the service stack:
docker swarm init # Initialize swarm of nodes
docker stack deploy -c stack.yml --with-registry-auth pepper # Start service stack
docker stack rm pepper # Stop the service stack
docker service ls # Check running services
docker container ls # Check running containers
docker service logs pepper_kong # Show logs from the kong service