Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
kearnsw authored Feb 26, 2020
2 parents e46f14b + 2edc18a commit f2d501f
Show file tree
Hide file tree
Showing 66 changed files with 1,620 additions and 230 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ failed_stories.md
errors.json
pip-wheel-metadata/*
events.db
events.db-shm
events.db-wal
rasa.db
rasa.db-shm
rasa.db-wal
*.swp
*.coverage*
env
Expand Down
1 change: 1 addition & 0 deletions changelog/4088.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add story structure validation functionality (e.g. `rasa data validate stories --max-history 5`).
1 change: 1 addition & 0 deletions changelog/5174.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Updated the documentation to properly suggest not to explicitly add utterance actions to the domain.
1 change: 1 addition & 0 deletions changelog/5189.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added user guide for reminders and external events, including ``reminderbot`` demo.
1 change: 1 addition & 0 deletions changelog/5189.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added `db-shm` and `db-wal` files to `.gitignore`
6 changes: 6 additions & 0 deletions changelog/5201.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Fixed incorrectly raised Error encountered in pipelines with a ``ResponseSelector`` and NLG.

When NLU training data is split before NLU pipeline comparison,
NLG responses were not also persisted and therefore training for a pipeline including the ``ResponseSelector`` would fail.

NLG responses are now persisted along with NLU data to a ``/train`` directory in the ``run_x/xx%_exclusion`` folder.
1 change: 1 addition & 0 deletions changelog/5292.enhancement.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added ``followlinks=True`` to os.walk calls, to allow the use of symlinks in training, NLU and domain data.
10 changes: 10 additions & 0 deletions changelog/5317.improvement.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Events exported using ``rasa export`` receive a message header if published through a
``PikaEventBroker``. The header is added to the message's ``BasicProperties.headers``
under the ``rasa-export-process-id`` key
(``rasa.core.constants.RASA_EXPORT_PROCESS_ID_HEADER_NAME``). The value is a
UUID4 generated at each call of ``rasa export``. The resulting header is a key-value
pair that looks as follows:

.. code-block:: text
'rasa-export-process-id': 'd3b3d3ffe2bd4f379ccf21214ccfb261'
5 changes: 0 additions & 5 deletions data/test_domains/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,3 @@ responses:
- text: goodbye :(
utter_default:
- text: default message

actions:
- utter_default
- utter_greet
- utter_goodbye
5 changes: 0 additions & 5 deletions data/test_domains/default_unfeaturized_entities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,3 @@ responses:
- goodbye :(
utter_default:
- default message

actions:
- utter_default
- utter_greet
- utter_goodbye
5 changes: 0 additions & 5 deletions data/test_domains/default_with_mapping.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,3 @@ responses:
- text: goodbye :(
utter_default:
- text: default message

actions:
- utter_default
- utter_greet
- utter_goodbye
5 changes: 0 additions & 5 deletions data/test_domains/default_with_slots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,3 @@ responses:
- text: "bye bye 😢"
utter_default: # utterance sent by action_default_fallback
- text: "sorry, I didn't get that, can you rephrase it?"

actions:
- utter_default
- utter_greet
- utter_goodbye
4 changes: 0 additions & 4 deletions data/test_domains/duplicate_entities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,3 @@ responses:
utter_default:
- text: default message

actions:
- utter_default
- utter_greet
- utter_goodbye
5 changes: 0 additions & 5 deletions data/test_domains/duplicate_intents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ responses:
utter_default:
- text: default message

actions:
- utter_default
- utter_greet
- utter_goodbye

session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true
5 changes: 0 additions & 5 deletions data/test_domains/duplicate_templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,3 @@ responses:
- text: default message
utter_greet:
- text: hey there!

actions:
- utter_default
- utter_greet
- utter_goodbye
8 changes: 2 additions & 6 deletions data/test_domains/form.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,8 @@ responses:
- text: goodbye :(
utter_default:
- text: default message

actions:
- utter_default
- utter_greet
- utter_goodbye
- utter_ask_continue
utter_ask_continue:
- text: should I continue?

forms:
- some_form
5 changes: 0 additions & 5 deletions data/test_domains/missing_text_for_templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,3 @@ responses:
- goodbye :(
utter_default:
- default message

actions:
- utter_default
- utter_greet
- utter_goodbye
4 changes: 0 additions & 4 deletions data/test_multi_domain/data/GreetBot/domain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ intents:
- greet
- goodbye

actions:
- utter_greet
- utter_goodbye

responses:
utter_greet:
- text: "Hey! How are you?"
Expand Down
5 changes: 0 additions & 5 deletions data/test_multi_domain/data/MoodBot/domain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ intents:
- mood_great
- mood_unhappy

actions:
- utter_did_that_help
- utter_happy
- utter_cheer_up

responses:
utter_cheer_up:
- text: "Here is something to cheer you up:"
Expand Down
3 changes: 0 additions & 3 deletions data/test_multi_domain/domain.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
intents:
- goodbye

actions:
- utter_goodbye

responses:
utter_goodbye:
- text: "Bye"
15 changes: 15 additions & 0 deletions data/test_stories/stories_conflicting_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## story 1
* greet
- utter_greet
* greet
- utter_greet
* greet
- utter_greet

## story 2
* default
- utter_greet
* greet
- utter_greet
* greet
- utter_default
14 changes: 14 additions & 0 deletions data/test_stories/stories_conflicting_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## greetings
* greet
- utter_greet
> check_greet
## happy path
> check_greet
* default
- utter_default

## problem
> check_greet
* default
- utter_goodbye
14 changes: 14 additions & 0 deletions data/test_stories/stories_conflicting_3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## greetings
* greet
- utter_greet
> check_greet
## happy path
> check_greet
* default OR greet
- utter_default

## problem
> check_greet
* greet
- utter_goodbye
17 changes: 17 additions & 0 deletions data/test_stories/stories_conflicting_4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## story 1
* greet
- utter_greet
* greet
- slot{"cuisine": "German"}
- utter_greet
* greet
- utter_greet

## story 2
* greet
- utter_greet
* greet
- slot{"cuisine": "German"}
- utter_greet
* greet
- utter_default
16 changes: 16 additions & 0 deletions data/test_stories/stories_conflicting_5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## story 1
* greet
- utter_greet
* greet
- utter_greet
- slot{"cuisine": "German"}
* greet
- utter_greet

## story 2
* greet
- utter_greet
* greet
- utter_greet
* greet
- utter_default
22 changes: 22 additions & 0 deletions data/test_stories/stories_conflicting_6.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## story 1
* greet
- utter_greet

## story 2
* greet
- utter_default

## story 3
* greet
- utter_default
* greet

## story 4
* greet
- utter_default
* default

## story 5
* greet
- utter_default
* goodbye
9 changes: 1 addition & 8 deletions docs/_static/spec/rasa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,7 @@ components:
type: array
items:
type: string
example: ['utter_greet', 'utter_goodbye', 'action_listen']
example: ['action_greet', 'action_goodbye', 'action_listen']

BotMessage:
type: object
Expand Down Expand Up @@ -1420,13 +1420,6 @@ components:
- mood_great
- mood_unhappy
actions:
- utter_greet
- utter_cheer_up
- utter_did_that_help
- utter_happy
- utter_goodbye
responses:
utter_greet:
- text: "Hey! How are you?"
Expand Down
17 changes: 15 additions & 2 deletions docs/core/domains.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ for the things your bot can say.
An example of a Domain
----------------------

As an example, the ``DefaultDomain`` has the following yaml definition:
As an example, the domain created by ``rasa init`` has the following yaml definition:


.. literalinclude:: ../../rasa/cli/initial_project/domain.yml
Expand All @@ -29,7 +29,20 @@ As an example, the ``DefaultDomain`` has the following yaml definition:
**What does this mean?**

Your NLU model will define the ``intents`` and ``entities`` that you
need to include in the domain.
need to include in the domain. The ``entities`` section lists all entities
extracted by any :ref:`entity extractor<entity-extraction>` in your
NLU pipeline.

For example:

.. code-block:: yaml
entities:
- PERSON # entity extracted by SpacyEntityExtractor
- time # entity extracted by DucklingHTTPExtractor
- membership_type # custom entity extracted by CRFEntityExtractor
- priority # custom entity extracted by CRFEntityExtractor
:ref:`slots` hold information you want to keep track of during a conversation.
A categorical slot called ``risk_level`` would be
Expand Down
Loading

0 comments on commit f2d501f

Please sign in to comment.