forked from RasaHQ/rasa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into merge/2.4.2-to-main
- Loading branch information
Showing
205 changed files
with
5,410 additions
and
2,548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: Docs Tests | ||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- '*' | ||
pull_request: | ||
types: [opened, synchronize, labeled] | ||
|
||
env: | ||
DEFAULT_PYTHON_VERSION: '3.7' | ||
|
||
jobs: | ||
changes: | ||
name: Check for file changes | ||
runs-on: ubuntu-latest | ||
outputs: | ||
docs: ${{ steps.filter.outputs.docs }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: RasaHQ/pr-changed-files-filter@c4f7116a04b8a4596313469429e2ad235f59d9c4 | ||
id: filter | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
filters: .github/change_filters.yml | ||
|
||
test_documentation: | ||
name: Test Documentation | ||
runs-on: ubuntu-latest | ||
needs: [ changes ] | ||
if: needs.changes.outputs.docs == 'true' | ||
|
||
steps: | ||
- name: Checkout git repository 🕝 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ env.DEFAULT_PYTHON_VERSION }} 🐍 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON_VERSION }} | ||
|
||
- name: Set up Node 12.x 🦙 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
|
||
- name: Read Poetry Version 🔢 | ||
run: | | ||
echo "POETRY_VERSION=$(scripts/poetry-version.sh)" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- name: Install poetry 🦄 | ||
uses: Gr1N/setup-poetry@v4 | ||
with: | ||
poetry-version: ${{ env.POETRY_VERSION }} | ||
|
||
- name: Load Poetry Cached Libraries ⬇ | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pypoetry/virtualenvs | ||
key: ${{ runner.os }}-poetry-${{ env.POETRY_VERSION }}-${{ env.DEFAULT_PYTHON_VERSION }}-${{ hashFiles('**/poetry.lock') }}-${{ secrets.POETRY_CACHE_VERSION }} | ||
restore-keys: ${{ runner.os }}-poetry-${{ env.DEFAULT_PYTHON_VERSION }} | ||
|
||
- name: Load Yarn Cached Packages ⬇ | ||
uses: actions/cache@v2 | ||
with: | ||
path: docs/node_modules | ||
key: ${{ runner.os }}-yarn-12.x-${{ hashFiles('docs/yarn.lock') }} | ||
restore-keys: ${{ runner.os }}-yarn-12.x | ||
|
||
- name: Install Dependencies 📦 | ||
run: | | ||
sudo apt-get -y install libpq-dev | ||
make install-full install-docs | ||
- name: Run Swagger 🕵️♀️ | ||
run: | | ||
npm install -g swagger-cli | ||
swagger-cli validate docs/static/spec/action-server.yml | ||
swagger-cli validate docs/static/spec/rasa.yml | ||
- name: Test Docs 🕸 | ||
run: make test-docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Improved CLI startup time. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Add `augmentation` and `num_threads` arguments to API `POST /model/train` | ||
|
||
Fix boolean casting issue for `force_training` and `save_to_default_model_directory` arguments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
API endpoint `POST /model/test/intents` now returns HTTP 409 status | ||
code in case it cannot find the NLU model directory, instead of an | ||
HTTP 500 status. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Rule tracker states no longer include the initial value of slots. | ||
Rules now only require slot values when explicitly stated in the rule. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add minimum compatible version to --version command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
`rasa test`, `rasa test core` and `rasa test nlu` no longer show temporary paths | ||
in case there are issues in the test files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
The [`TrainingDataImporter` interface](training-data-importers.mdx) now permits the | ||
implementation of a method `get_conversation_tests` which specifically retrieves | ||
[end-to-end conversation tests](testing-your-assistant.mdx#writing-test-stories). | ||
Its signature looks as follows: | ||
|
||
```python | ||
|
||
async def get_conversation_tests(self) -> StoryGraph: | ||
"""Retrieves end-to-end conversation stories for testing. | ||
Returns: | ||
`StoryGraph` containing all loaded stories. | ||
""" | ||
pass | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Updated warning for unexpected slot events during prediction time to Rasa Open Source | ||
2.0 YAML training data format. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Hide dialogue turns predicted by `RulePolicy` in the tracker states | ||
for ML-only policies like `TEDPolicy` | ||
if those dialogue turns only appear as rules in the training data and do not appear in stories. | ||
|
||
Add `set_shared_policy_states(...)` method to all policies. | ||
This method sets `_rule_only_data` dict with keys: | ||
- `rule_only_slots`: Slot names, which only occur in rules but not in stories. | ||
- `rule_only_loops`: Loop names, which only occur in rules but not in stories. | ||
|
||
This information is needed for correct featurization to hide dialogue turns that appear only in rules. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Upgraded Rasa to be compatible with spaCy 3.0. | ||
|
||
This means that we can support more features for more languages but there are also a few changes. | ||
|
||
SpaCy 3.0 deprecated the `spacy link <language model>` command so that means that from now on [the | ||
full model name](https://spacy.io/models) needs to be used in the `config.yml` file. | ||
|
||
**Before** | ||
|
||
Before you could run `spacy link en en_core_web_md` and then we would be able | ||
to pick up the correct model from the `language` parameter. | ||
|
||
```yaml | ||
language: en | ||
|
||
pipeline: | ||
- name: SpacyNLP | ||
``` | ||
**Now** | ||
This behavior will be deprecated and instead you'll want to be explicit in `config.yml`. | ||
|
||
```yaml | ||
language: en | ||
pipeline: | ||
- name: SpacyNLP | ||
model: en_core_web_md | ||
``` | ||
|
||
**Fallback** | ||
|
||
To make the transition easier, Rasa will try to fall back to a medium spaCy model when-ever | ||
a compatible language is configured for the entire pipeline in `config.yml` even if you don't | ||
specify a `model`. This fallback behavior is temporary and will be deprecated in Rasa 3.0.0. | ||
|
||
We've updated our docs to reflect these changes. All examples now show a direct link to the | ||
correct spaCy model. We've also added a warning to the [SpaCyNLP](components.mdx#spacynlp) | ||
docs that explains the fallback behavior. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Remove `tests/import_time.py` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fixed a bug in a form where slot mapping doesn't work if the predicted intent name is substring for another intent name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
The following modules were renamed: | ||
* `rasa.train` -> `rasa.model_training` | ||
* `rasa.test` -> `rasa.model_testing` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
The following import abbreviations were removed: | ||
* `rasa.core.train`: Please use `rasa.core.train.train` instead. | ||
* `rasa.core.visualize`: Please use `rasa.core.visualize.visualize` instead. | ||
* `rasa.nlu.train`: Please use `rasa.nlu.train.train` instead. | ||
* `rasa.nlu.test`: Please use `rasa.nlu.test.run_evaluation` instead. | ||
* `rasa.nlu.cross_validate`: Please use `rasa.nlu.test.cross_validate` instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Faster reading of YAML NLU training data files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.