Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Central #58

Merged
merged 19 commits into from
Sep 23, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Rasa_Bot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The steps are as follows:
- The output for the above command should be something like this: [{"recipient_id":"user","text":"Sure, you should ..."}]
- See [this page](https://rasa.com/docs/rasa/connectors/your-own-website#restinput) for details on how to use the REST channel.

Note that while the requirements-file lists Rasa 3.1.0 as a requirement, this is only needed to train a language model and handy when developing.
Note that while the requirements-file lists Rasa 3.2.8 as a requirement, this is only needed to train a language model and handy when developing.

NB: If you want to run rasa outside of docker, you might want to change the urls
in `endpoints.yml`.
Expand All @@ -27,7 +27,7 @@ in `endpoints.yml`.
We no longer use spacy language embeddings, and we removed entity recognition from the pipeline. Let's keep an eye on whether we want to keep doing this.

### Rasa Version
Currently, the model is trained in Rasa 3.1.0. Different Rasa versions are not necessarily compatible w.r.t. e.g. layout of the language model files, so we should eventually choose a specific Rasa version, probably the most current one. See [here](https://rasa.com/docs/rasa/changelog) for the changelog for Rasa Open Source.
Currently, the model is trained in Rasa 3.2.8. Different Rasa versions are not necessarily compatible w.r.t. e.g. layout of the language model files, so we should eventually choose a specific Rasa version, probably the most current one. See [here](https://rasa.com/docs/rasa/changelog) for the changelog for Rasa Open Source.

### Agent Name
The agent name is set in the "domain.yml"-file in the slot "agent_name." Changing this name in said file requires retraining the model.
Expand Down
2 changes: 1 addition & 1 deletion Rasa_Bot/actions/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Dockerfile for rasa actions server

# Pull SDK image as base image, version must be compatible with Rasa version
FROM rasa/rasa-sdk:3.1.1
FROM rasa/rasa-sdk:3.2.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
FROM rasa/rasa-sdk:3.1.1
FROM rasa/rasa-sdk:3.2.1
FROM rasa/rasa-sdk:3.2.8

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nelealbers I think this needs to be changed, but everything is working now! Nice work!

Copy link
Contributor Author

@nelealbers nelealbers Sep 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wbaccinelli I thought so at first too, but it seems that rasa-sdk has different non-matching version numbers: https://rasa.com/docs/action-server/rasa-sdk-changelog/. Their newest version is 3.2.1 according to their changelog.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nelealbers ok, perfect! I will merge the branch then.


# Use subdirectory as working directory
WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion Rasa_Bot/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pipeline:
- name: ResponseSelector
epochs: 100
- name: FallbackClassifier
threshold: 0.6 # NB: threshold for low NLU confidence. Need to tune carefully.
threshold: 0.3 # NB: threshold for low NLU confidence. Need to tune carefully.


# Configuration for Rasa Core.
Expand Down
2 changes: 1 addition & 1 deletion Rasa_Bot/data/nlu.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.0"
version: "3.1"

nlu:
- intent: request_plan_week
Expand Down
2 changes: 1 addition & 1 deletion Rasa_Bot/data/rules.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.0"
version: "3.1"

rules:
- rule: Give user central mode options when they send a message with low NLU confidence
Expand Down
2 changes: 1 addition & 1 deletion Rasa_Bot/data/stories_execution_dialogs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Execution dialogs stories
# Purpose: Placeholder for the stories to be triggered in the execution phase
# Context: Execution phase
version: "3.0"
version: "3.1"

stories:

Expand Down
2 changes: 1 addition & 1 deletion Rasa_Bot/data/stories_first_aid_kit.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stories related to the first aid kit functionality
version: "3.0"
version: "3.1"

stories:
## Get first aid kit - kit exists
Expand Down
2 changes: 1 addition & 1 deletion Rasa_Bot/data/stories_future_self_dialog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Context: Preparation phase, one or two days (to be decided)
# after deciding whether or not to use medication.
# This activity is being repeated several times throughout the intervention.
version: "3.0"
version: "3.1"

stories:
- story: future-self dialog introduction
Expand Down
2 changes: 1 addition & 1 deletion Rasa_Bot/data/stories_minimum_functional_product.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stories for minimum function product
version: "3.0"
version: "3.1"

stories:
- story: request_plan_week_calendarYes
Expand Down
2 changes: 1 addition & 1 deletion Rasa_Bot/data/stories_preparation_dialogs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Preparation dialogs stories
# Purpose: Placeholder for the stories to be triggered in the preparation phase
# Context: Preparation phase
version: "3.0"
version: "3.1"

stories:

Expand Down
2 changes: 1 addition & 1 deletion Rasa_Bot/data/stories_rescheduling_dialog.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stories for rescheduling dialog
version: "3.0"
version: "3.1"

stories:

Expand Down
Binary file not shown.
3 changes: 2 additions & 1 deletion Rasa_Bot/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
git+https://github.com/PerfectFit-project/niceday_client
protobuf==3.20.1 # temporary fix
rasa==3.1.0 # NB! when updating, make sure to also update:
rasa==3.2.8 # NB! when updating, make sure to also update:
# * rasa base image in actions/Dockerfile,
# * version number in nlu.yml, story files, rules.yml,
# * format of stories, domain.yml etc. if necessary