question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow config path to be passed to Rasa X

See original GitHub issue

Description of Problem:

Because users are able to pass custom config paths to rasa train, there should be CLI parity for the same.

Overview of the Solution:

Accept custom config path to override default config path, unless none is passed, then use default.

That, or allow for a config/ folder to be passed for all configuration-related files.

Examples (if relevant):

Mainly would help clean up some of the folder structure; without using Rasa X, you can have something like this:

project_dir
├── actions
├── config
    ├── config.yml
    ├── credentials.yml
    └── endpoints.yml
├── data
    ├── nlu
    └── stories
├── logs
└── domain.yml

and pass the config file by passing --config config/config.yml

instead of having the config files clutter up the root directory.

Blockers (if relevant): N/A

Definition of Done:

  • Tests are added
  • config path handling is changed
  • Feature mentioned in the changelog

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ArjaanBuijkcommented, Nov 22, 2019

The original request is now implemented:

-c CONFIG, --config CONFIG
                        The policy and NLU pipeline configuration of your bot.
                        (default: config.yml)

@wochinge , what do you think about implementation of the other command options:

  -d DOMAIN, --domain DOMAIN
                        Domain specification (yml file). (default: domain.yml)
  --out OUT             Directory where your models should be stored.
                        (default: models)
  --augmentation AUGMENTATION
                        How much data augmentation to use during training.
                        (default: 50)
  --debug-plots         If enabled, will create plots showing checkpoints and
                        their connections between story blocks in a file
                        called `story_blocks_connections.html`. (default:
                        False)
  --dump-stories        If enabled, save flattened stories to a file.
                        (default: False)
  --fixed-model-name FIXED_MODEL_NAME
                        If set, the name of the model file/directory will be
                        set to the given name. (default: None)
  --persist-nlu-data    Persist the nlu training data in the saved model.
                        (default: False)
  --force               Force a model training even if the data has not
                        changed. (default: False)
1reaction
kevinthemselfcommented, Nov 16, 2019

I think that’s a good idea; there should be absolute parity between the rasa train command options, of which candidates are:

  -c CONFIG, --config CONFIG
                        The policy and NLU pipeline configuration of your bot.
                        (default: config.yml)
  -d DOMAIN, --domain DOMAIN
                        Domain specification (yml file). (default: domain.yml)
  --out OUT             Directory where your models should be stored.
                        (default: models)
  --augmentation AUGMENTATION
                        How much data augmentation to use during training.
                        (default: 50)
  --debug-plots         If enabled, will create plots showing checkpoints and
                        their connections between story blocks in a file
                        called `story_blocks_connections.html`. (default:
                        False)
  --dump-stories        If enabled, save flattened stories to a file.
                        (default: False)
  --fixed-model-name FIXED_MODEL_NAME
                        If set, the name of the model file/directory will be
                        set to the given name. (default: None)
  --persist-nlu-data    Persist the nlu training data in the saved model.
                        (default: False)
  --force               Force a model training even if the data has not
                        changed. (default: False)

Not sure if this is something we’d want to add to the CLI or just abstract into another config file, though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration - Rasa
This page contains information about configuring a Rasa X / Enterprise deployment installed using rasactl .
Read more >
Customize Your Deployment - Rasa
See the Rasa Helm chart to learn how to configure Rasa Open Source Channels for deployment that was deployed via the Rasa Helm...
Read more >
Command Line Interface - Rasa
Command line interface for open source chatbot framework Rasa. Learn how to train, test and run your machine learning-based conversational ...
Read more >
Connect Rasa Open Source to Rasa X
The command rasactl connect rasa starts a local Rasa Open Source server using the rasa command available in whichever Python environment is ...
Read more >
Model Configuration - Rasa
Make sure to specify the language key in your config.yml file with the 2-letter ISO language code. Example config.yml file:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found