Releases: RasaHQ/rasa
2.0.1
Bugfixes
- #7018: Create correct
KafkaProducer
forPLAINTEXT
andSASL_SSL
security protocols. - #7033: - Fix
YAMLStoryReader
not being able to representOR
statements in conversion mode.- Fix
MarkdownStoryWriter
not being able to write stories withOR
statements (when loaded in conversion mode).
- Fix
1.10.16
1.10.15
Improvements
- #6900: Debug logs from
matplotlib
libraries are now hidden by default and are configurable with theLOG_LEVEL_LIBRARIES
environment variable.
Bugfixes
- #3597: Fixed issue where temporary model directories were not removed after pulling from a model server. If the model pulled from the server was invalid, this could lead to large amounts of local storage usage.
- #6755: Treat the length of OOV token as 1 to fix token align issue when OOV occurred.
- #6899: Fixed
MappingPolicy
not predictingaction_listen
after the mapped action while runningrasa test
.
2.0.0
Deprecations and Removals
-
#5757: Removed previously deprecated packages
rasa_nlu
andrasa_core
.Use imports from
rasa.core
andrasa.nlu
instead. -
#5758: Removed previously deprecated classes:
- event brokers (
EventChannel
andFileProducer
,KafkaProducer
,
PikaProducer
,SQLProducer
) - intent classifier
EmbeddingIntentClassifier
- policy
KerasPolicy
Removed previously deprecated methods:
Agent.handle_channels
TrackerStore.create_tracker_store
Removed support for pipeline templates in
config.yml
Removed deprecated training data keys
entity_examples
andintent_examples
from
json training data format. - event brokers (
-
#5834: Removed
restaurantbot
example as it was confusing and not a great way to build a bot. -
#6296:
LabelTokenizerSingleStateFeaturizer
is deprecated. To replicateLabelTokenizerSingleStateFeaturizer
functionality,
add aTokenizer
withintent_tokenization_flag: True
andCountVectorsFeaturizer
to the NLU pipeline.
An example of elements to be added to the pipeline is shown in the improvement changelog 6296`.BinarySingleStateFeaturizer
is deprecated and will be removed in the future. We recommend to switch toSingleStateFeaturizer
. -
#6354: Specifying the parameters
force
andsave_to_default_model_directory
as part of the
JSON payload when training a model usingPOST /model/train
is now deprecated.
Please use the query parametersforce_training
andsave_to_default_model_directory
instead. See the API documentation for more information. -
#6409: The conversation event
form
was renamed toactive_loop
. Rasa Open Source
will continue to be able to read and process oldform
events. Note that
serialized trackers will no longer have theactive_form
field. Instead the
active_loop
field will contain the same information. Story representations
in Markdown and YAML will useactive_loop
instead ofform
to represent the
event. -
#6453: Removed support for
queue
argument inPikaEventBroker
(usequeues
instead).Domain file:
- Removed support for
templates
key (useresponses
instead). - Removed support for string
responses
(use dictionaries instead).
NLU
Component
:- Removed support for
provides
attribute, it's not needed anymore. - Removed support for
requires
attribute (userequired_components()
instead).
Removed
_guess_format()
utils method fromrasa.nlu.training_data.loading
(useguess_format
instead).Removed several config options for TED Policy, DIETClassifier and ResponseSelector:
hidden_layers_sizes_pre_dial
hidden_layers_sizes_bot
droprate
droprate_a
droprate_b
hidden_layers_sizes_a
hidden_layers_sizes_b
num_transformer_layers
num_heads
dense_dim
embed_dim
num_neg
mu_pos
mu_neg
use_max_sim_neg
C2
C_emb
evaluate_every_num_epochs
evaluate_on_num_examples
Please check the documentation for more information.
- Removed support for
-
#6463: The conversation event
form_validation
was renamed toloop_interrupted
.
Rasa Open Source will continue to be able to read and process oldform_validation
events. -
#6658:
SklearnPolicy
was deprecated.TEDPolicy
is the preferred machine-learning policy for dialogue models. -
#6809: Slots of type
unfeaturized
are
now deprecated and will be removed in Rasa Open Source 3.0. Instead you should use
the propertyinfluence_conversation: false
for every slot type as described in the
migration guide. -
#6934: Conversation sessions are now enabled by default
if your Domain does not contain a session configuration.
Previously a missing session configuration was treated as if conversation sessions
were disabled. You can explicitly disable conversation sessions using the following
snippet:session_config: # A session expiration time of `0` # disables conversation sessions session_expiration_time: 0
-
#6952: Using the default action
action_deactivate_form
to deactivate
the currently active loop / Form is deprecated.
Please useaction_deactivate_loop
instead.
Features
-
#4745: Added template name to the metadata of bot utterance events.
BotUttered
event contains atemplate_name
property in its metadata for any
new bot message. -
#5086: Added a
--num-threads
CLI argument that can be passed torasa train
and will be used to train NLU components. -
#5510: You can now define what kind of features should be used by what component
(see Choosing a Pipeline).You can set an alias via the option
alias
for every featurizer in your pipeline.
Thealias
can be anything, by default it is set to the full featurizer class name.
You can then specify, for example, on the
DIETClassifier what features from which
featurizers should be used.
If you don't set the optionfeaturizers
all available features will be used.
This is also the default behavior.
Check components to see what components have the option
featurizers
available.Here is an example pipeline that shows the new option.
We define an alias for all featurizers in the pipeline.
All features will be used in theDIETClassifier
.
However, theResponseSelector
only takes the features from the
ConveRTFeaturizer
and theCountVectorsFeaturizer
(word level).pipeline: - name: ConveRTTokenizer - name: ConveRTFeaturizer alias: "convert" - name: CountVectorsFeaturizer alias: "cvf_word" - name: CountVectorsFeaturizer alias: "cvf_char" analyzer: char_wb min_ngram: 1 max_ngram: 4 - name: RegexFeaturizer alias: "regex" - name: LexicalSyntacticFeaturizer alias: "lsf" - name: DIETClassifier: - name: ResponseSelector epochs: 50 featurizers: ["convert", "cvf_word"] - name: EntitySynonymMapper
:::caution
This change is model-breaking. Please retrain your models.:::
-
#5837: Added
--port
commandline argument to the interactive learning mode to allow
changing the port for the Rasa server running in the background. -
#5957: Add new entity extractor
RegexEntityExtractor
. The entity extractor extracts entities using the lookup tables
and regexes defined in the training data. For more information see RegexEntityExtractor. -
#5996: Introduced a new
YAML
format for Core training data and implemented a parser
for it. Rasa Open Source can now read stories in bothMarkdown
andYAML
format. -
#6020: You can now enable threaded message responses from Rasa through the Slack connector.
This option is enabled using an optional configuration in the credentials.yml fileslack: slack_token: slack_channel: use_threads: True
Button support has also been added in the Slack connector.
-
#6066: The NLU
interpreter
is now passed to the Policies during training and
inference time. Note that this requires an additional parameterinterpreter
in the
methodpredict_action_probabilities
of thePolicy
interface. In case a
customPolicy
implementation doesn't provide this parameter Rasa Open Source
will print a warning and omit passing theinterpreter
. -
#6088: Added the new dialogue policy RulePolicy which will replace the old “rule-like”
policies Mapping Policy,
Fallback Policy,
Two-Stage Fallback Policy, and
Form Policy. These policies are now
deprecated and will be removed in the future. Please see the
rules documentation for more information.Added new NLU component FallbackClassifier
which predicts an intentnlu_fallback
in case the confidence was below a given
threshold. The intentnlu_fallback
may
then be used to write stories / rules to handle the fallback in case of low NLU
confidence.pipeline: - # Other NLU components ... - name: FallbackClassifier # If the highest ranked intent has a confidence lower than the threshold then # the NLU pipeline predicts an intent `nlu_fallback` which you can then be used in # stories / rules to implement an appropriate fallback. threshold: 0.5
-
#6132: Added poss...
2.0.0rc4
Pre-release version
Merge pull request #6838 from RasaHQ/prepare-release-2.0.0rc3
Pre-release version
2.0.0rc2
Pre-release version
1.10.14
1.10.13
2.0.0rc1
Pre-release version