diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8fcf44a7c32f..2ecb851d5845 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -17,14 +17,80 @@ This project adheres to `Semantic Versioning`_ starting with version 1.0. .. towncrier release notes start +[1.7.0] - 2020-01-29 +^^^^^^^^^^^^^^^^^^^^ + +Deprecations and Removals +------------------------- +- `#4964 `_: The endpoint ``/conversations//execute`` is now deprecated. Instead, users should use + the ``/conversations//trigger_intent`` endpoint and thus trigger intents instead of actions. +- `#4978 `_: Remove option ``use_cls_token`` from tokenizers and option ``return_sequence`` from featurizers. + + By default all tokenizer add a special token (``__CLS__``) to the end of the list of tokens. + This token will be used to capture the features of the whole utterance. + + The featurizers will return a matrix of size (number-of-tokens x feature-dimension) by default. + This allows to train sequence models. + However, the feature vector of the ``__CLS__`` token can be used to train non-sequence models. + The corresponding classifier can decide what kind of features to use. + +Features +-------- +- `#400 `_: Rename ``templates`` key in domain to ``responses``. + + ``templates`` key will still work for backwards compatibility but will raise a future warning. +- `#4902 `_: Added a new configuration parameter, ``ranking_length`` to the ``EmbeddingPolicy``, ``EmbeddingIntentClassifier``, + and ``ResponseSelector`` classes. +- `#4964 `_: External events and reminders now trigger intents (and entities) instead of actions. + + Add new endpoint ``/conversations//trigger_intent``, which lets the user specify an intent and a + list of entities that is injected into the conversation in place of a user message. The bot then predicts and + executes a response action. +- `#4978 `_: Add ``ConveRTTokenizer``. + + The tokenizer should be used whenever the ``ConveRTFeaturizer`` is used. + + Every tokenizer now supports the following configuration options: + ``intent_tokenization_flag``: Flag to check whether to split intents (default ``False``). + ``intent_split_symbol``: Symbol on which intent should be split (default ``_``) + +Improvements +------------ +- `#1988 `_: Remove the need of specifying utter actions in the ``actions`` section explicitly if these actions are already + listed in the ``templates`` section. +- `#4877 `_: Entity examples that have been extracted using an external extractor are excluded + from Markdown dumping in ``MarkdownWriter.dumps()``. The excluded external extractors + are ``DucklingHTTPExtractor`` and ``SpacyEntityExtractor``. +- `#4902 `_: The ``EmbeddingPolicy``, ``EmbeddingIntentClassifier``, and ``ResponseSelector`` now by default normalize confidence + levels over the top 10 results. See :ref:`migration-to-rasa-1.7` for more details. +- `#4964 `_: ``ReminderCancelled`` can now cancel multiple reminders if no name is given. It still cancels a single + reminder if the reminder's name is specified. + +Bugfixes +-------- +- `#4774 `_: Requests to ``/model/train`` do not longer block other requests to the Rasa server. +- `#4896 `_: Fixed default behavior of ``rasa test core --evaluate-model-directory`` when called without ``--model``. Previously, the latest model file was used as ``--model``. Now the default model directory is used instead. + + New behavior of ``rasa test core --evaluate-model-directory`` when given an existing file as argument for ``--model``: Previously, this led to an error. Now a warning is displayed and the directory containing the given file is used as ``--model``. +- `#5040 `_: Updated the dependency ``networkx`` from 2.3.0 to 2.4.0. The old version created incompatibilities when using pip. + + There is an imcompatibility between Rasa dependecy requests 2.22.0 and the own depedency from Rasa for networkx raising errors upon pip install. There is also a bug corrected in ``requirements.txt`` which used ``~=`` instead of ``==``. All of these are fixed using networkx 2.4.0. +- `#5057 `_: Fixed compatibility issue with Microsoft Bot Framework Emulator if ``service_url`` lacked a trailing ``/``. +- `#5092 `_: DynamoDB tracker store decimal values will now be rounded on save. Previously values exceeding 38 digits caused an unhandled error. + +Miscellaneous internal changes +------------------------------ +- #4458, #4664, #4780, #5029 + + [1.6.2] - 2020-01-28 ^^^^^^^^^^^^^^^^^^^^ Improvements ------------ -- `#4989 `_: Switching back to a TensorFlow release which only includes CPU support to reduce the +- `#4994 `_: Switching back to a TensorFlow release which only includes CPU support to reduce the size of the dependencies. If you want to use the TensorFlow package with GPU support, - please run ``tensorflow-gpu==1.15.0``. + please run ``pip install tensorflow-gpu==1.15.0``. Bugfixes -------- diff --git a/changelog/1988.improvement.rst b/changelog/1988.improvement.rst deleted file mode 100644 index 191b31f1dea5..000000000000 --- a/changelog/1988.improvement.rst +++ /dev/null @@ -1,2 +0,0 @@ -Remove the need of specifying utter actions in the ``actions`` section explicitly if these actions are already -listed in the ``templates`` section. \ No newline at end of file diff --git a/changelog/400.feature.rst b/changelog/400.feature.rst deleted file mode 100644 index 139b7b3bd932..000000000000 --- a/changelog/400.feature.rst +++ /dev/null @@ -1,3 +0,0 @@ -Rename ``templates`` key in domain to ``responses``. - -``templates`` key will still work for backwards compatibility but will raise a future warning. \ No newline at end of file diff --git a/changelog/4458.misc.rst b/changelog/4458.misc.rst deleted file mode 100644 index 517a6da5f1c6..000000000000 --- a/changelog/4458.misc.rst +++ /dev/null @@ -1,2 +0,0 @@ -Rename ``kwargs`` to ``additional_arguments`` in ``rasa.train`` and ``rasa.core.train`` to make the name of the -argument less confusing. \ No newline at end of file diff --git a/changelog/4664.misc.rst b/changelog/4664.misc.rst deleted file mode 100644 index f9a18a53fdc6..000000000000 --- a/changelog/4664.misc.rst +++ /dev/null @@ -1 +0,0 @@ -Make asynchronous Slack tests run properly. \ No newline at end of file diff --git a/changelog/4774.bugfix.rst b/changelog/4774.bugfix.rst deleted file mode 100644 index 0af57d35b9b5..000000000000 --- a/changelog/4774.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Requests to ``/model/train`` do not longer block other requests to the Rasa server. diff --git a/changelog/4780.misc.rst b/changelog/4780.misc.rst deleted file mode 100644 index 1d056fa01b74..000000000000 --- a/changelog/4780.misc.rst +++ /dev/null @@ -1,3 +0,0 @@ -Colored warning messages. All warnings are now a bit easier to find since they are -yellow. Where it makes sense, we also added links to the documentation to help you -fix the warning. diff --git a/changelog/4877.improvement.rst b/changelog/4877.improvement.rst deleted file mode 100644 index e279ea67e1c1..000000000000 --- a/changelog/4877.improvement.rst +++ /dev/null @@ -1,3 +0,0 @@ -Entity examples that have been extracted using an external extractor are excluded -from Markdown dumping in ``MarkdownWriter.dumps()``. The excluded external extractors -are ``DucklingHTTPExtractor`` and ``SpacyEntityExtractor``. diff --git a/changelog/4896.bugfix.rst b/changelog/4896.bugfix.rst deleted file mode 100644 index b7f2b8eeb517..000000000000 --- a/changelog/4896.bugfix.rst +++ /dev/null @@ -1,3 +0,0 @@ -Fixed default behavior of ``rasa test core --evaluate-model-directory`` when called without ``--model``. Previously, the latest model file was used as ``--model``. Now the default model directory is used instead. - -New behavior of ``rasa test core --evaluate-model-directory`` when given an existing file as argument for ``--model``: Previously, this led to an error. Now a warning is displayed and the directory containing the given file is used as ``--model``. \ No newline at end of file diff --git a/changelog/4902.feature.rst b/changelog/4902.feature.rst deleted file mode 100644 index fc9d6c362535..000000000000 --- a/changelog/4902.feature.rst +++ /dev/null @@ -1,2 +0,0 @@ -Added a new configuration parameter, ``ranking_length`` to the ``EmbeddingPolicy``, ``EmbeddingIntentClassifier``, -and ``ResponseSelector`` classes. diff --git a/changelog/4902.improvement.rst b/changelog/4902.improvement.rst deleted file mode 100644 index 8ac1670b7f8a..000000000000 --- a/changelog/4902.improvement.rst +++ /dev/null @@ -1,2 +0,0 @@ -The ``EmbeddingPolicy``, ``EmbeddingIntentClassifier``, and ``ResponseSelector`` now by default normalize confidence -levels over the top 10 results. See :ref:`migration-to-rasa-1.7` for more details. diff --git a/changelog/4964.feature.rst b/changelog/4964.feature.rst deleted file mode 100644 index 07f9a67ca5e7..000000000000 --- a/changelog/4964.feature.rst +++ /dev/null @@ -1,5 +0,0 @@ -External events and reminders now trigger intents (and entities) instead of actions. - -Add new endpoint ``/conversations//trigger_intent``, which lets the user specify an intent and a -list of entities that is injected into the conversation in place of a user message. The bot then predicts and -executes a response action. diff --git a/changelog/4964.improvement.rst b/changelog/4964.improvement.rst deleted file mode 100644 index f9e34675c854..000000000000 --- a/changelog/4964.improvement.rst +++ /dev/null @@ -1,2 +0,0 @@ -``ReminderCancelled`` can now cancel multiple reminders if no name is given. It still cancels a single -reminder if the reminder's name is specified. \ No newline at end of file diff --git a/changelog/4964.removal.rst b/changelog/4964.removal.rst deleted file mode 100644 index 23bc902bf1ce..000000000000 --- a/changelog/4964.removal.rst +++ /dev/null @@ -1,2 +0,0 @@ -The endpoint ``/conversations//execute`` is now deprecated. Instead, users should use -the ``/conversations//trigger_intent`` endpoint and thus trigger intents instead of actions. \ No newline at end of file diff --git a/changelog/4978.feature.rst b/changelog/4978.feature.rst deleted file mode 100644 index faacb0986fbd..000000000000 --- a/changelog/4978.feature.rst +++ /dev/null @@ -1,7 +0,0 @@ -Add ``ConveRTTokenizer``. - -The tokenizer should be used whenever the ``ConveRTFeaturizer`` is used. - -Every tokenizer now supports the following configuration options: -``intent_tokenization_flag``: Flag to check whether to split intents (default ``False``). -``intent_split_symbol``: Symbol on which intent should be split (default ``_``) diff --git a/changelog/4978.removal.rst b/changelog/4978.removal.rst deleted file mode 100644 index e28d277502e0..000000000000 --- a/changelog/4978.removal.rst +++ /dev/null @@ -1,9 +0,0 @@ -Remove option ``use_cls_token`` from tokenizers and option ``return_sequence`` from featurizers. - -By default all tokenizer add a special token (``__CLS__``) to the end of the list of tokens. -This token will be used to capture the features of the whole utterance. - -The featurizers will return a matrix of size (number-of-tokens x feature-dimension) by default. -This allows to train sequence models. -However, the feature vector of the ``__CLS__`` token can be used to train non-sequence models. -The corresponding classifier can decide what kind of features to use. diff --git a/changelog/5029.misc.rst b/changelog/5029.misc.rst deleted file mode 100644 index f7fb1d7b2661..000000000000 --- a/changelog/5029.misc.rst +++ /dev/null @@ -1,5 +0,0 @@ -Add ``any_of`` function to the ``Component`` class. Should be used inside ``requires``. - -``any_of`` allows you to define multiple attributes of a message for a component. -At least one of those attributes needs to be present. -Otherwise, the component cannot be trained and an error is raised. diff --git a/changelog/5040.bugfix.rst b/changelog/5040.bugfix.rst deleted file mode 100644 index 1e88e1e5b4cf..000000000000 --- a/changelog/5040.bugfix.rst +++ /dev/null @@ -1,3 +0,0 @@ -Updated the dependency ``networkx`` from 2.3.0 to 2.4.0. The old version created incompatibilities when using pip. - -There is an imcompatibility between Rasa dependecy requests 2.22.0 and the own depedency from Rasa for networkx raising errors upon pip install. There is also a bug corrected in ``requirements.txt`` which used ``~=`` instead of ``==``. All of these are fixed using networkx 2.4.0. diff --git a/changelog/5057.bugfix.rst b/changelog/5057.bugfix.rst deleted file mode 100644 index fa7114a296fe..000000000000 --- a/changelog/5057.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed compatibility issue with Microsoft Bot Framework Emulator if ``service_url`` lacked a trailing ``/``. diff --git a/changelog/5092.bugfix.rst b/changelog/5092.bugfix.rst deleted file mode 100644 index e8a56cd132ca..000000000000 --- a/changelog/5092.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -DynamoDB tracker store decimal values will now be rounded on save. Previously values exceeding 38 digits caused an unhandled error. \ No newline at end of file diff --git a/rasa/version.py b/rasa/version.py index 054a3ef02540..bb08d0218d6e 100644 --- a/rasa/version.py +++ b/rasa/version.py @@ -1,3 +1,3 @@ # this file will automatically be changed, # do not add anything but the version number here! -__version__ = "1.6.2" +__version__ = "1.7.0" diff --git a/requirements.txt b/requirements.txt index 747c307c581c..ba3004b034b3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -35,7 +35,7 @@ jsonschema==3.0.2 packaging==19.0 gevent==1.4.0 pytz==2019.1 -rasa-sdk~=1.6.0 +rasa-sdk~=1.7.0 colorclass==2.2.0 terminaltables==3.1.0 sanic==19.9.0 diff --git a/setup.py b/setup.py index f5df84de55fc..39c2fa4a71b5 100644 --- a/setup.py +++ b/setup.py @@ -68,7 +68,7 @@ "gevent~=1.4", "pytz~=2019.1", "python-dateutil~=2.8", - "rasa-sdk~=1.6.0", + "rasa-sdk~=1.7.0", "colorclass~=2.2", "terminaltables~=3.1", "sanic~=19.9.0",