@@ -129,38 +129,42 @@ For example:
129
129
--data ' {"message": "Hi Bot"}' \
130
130
http://localhost:5005/webhooks/rest/webhook
131
131
132
- To run commands inside a specific container, use ``docker-compose exec <container name> ``.
133
- For example to retrain the core model:
132
+ To run commands inside a specific container, use ``docker-compose run <container name> ``.
133
+ For example to train the core model:
134
134
135
135
.. code-block :: bash
136
136
137
- docker-compose exec rasacore ./entrypoint.sh train
137
+ docker-compose run rasacore train
138
138
139
139
Volume Explanation
140
140
~~~~~~~~~~~~~~~~~~
141
- - **./rasa-app-data/dialogue **: This directory contains the trained Rasa Core models.
142
- You can also move previously trained models to directoy to load them within the Docker container.
143
- - **./rasa-app-data/endpoints **: If you are using Rasa Core together with other components,
144
- this directory should contain a file ``endpoints.yml `` which specifies how to reach this components.
145
- For the shown example the file should look like this:
146
-
147
- .. code-block :: yaml
148
-
149
- action_endpoint :
150
- url : ' http://action_server:5055/webhook'
151
- nlu :
152
- url : ' http://rasanlu:5000'
153
-
154
- - **./rasa-app-data/projects/ **: This directory contains the trained Rasa NLU models.
155
- You can also move previously trained models to directoy to load them within the Docker container.
156
- - **./rasa-app-data/credentials **: This directory is optionally and may contain credentials for various
157
- `chat & voice platforms <https://rasa.com/docs/core/connectors/ >`_ you want to connect your bot to.
158
- Use the provided credentials by adding :code: `--credentials <path to your credentials file>` `
159
- to the run command of Rasa Core.
141
+ - **./rasa-app-data/core-model **: This directory contains the trained Rasa Core models.
142
+ You can also move previously trained models to this directory to load them within the Docker container.
143
+ - **./rasa-app-data/config **: This directory is for the configuration of the endpoints and of the
144
+ different `chat & voice platforms <https://rasa.com/docs/core/connectors/ >`_ you can use Rasa Core with.
145
+ - To connect other components with Rasa Core this directory should contain a file ``endpoints.yml ``,
146
+ which specifies how to reach these components.
147
+ For the shown docker-compose example the file should look like this:
148
+
149
+ .. code-block :: yaml
150
+
151
+ action_endpoint :
152
+ url : ' http://action_server:5055/webhook'
153
+ nlu :
154
+ url : ' http://rasanlu:5000'
155
+
156
+ - If you use a connector to a `chat & voice platforms <https://rasa.com/docs/core/connectors/ >`_
157
+ you have to configure the required credentials for these in a file `credentials.yml `.
158
+ Use the provided credentials by adding :code: `--credentials <path to your credentials file>` `
159
+ to the run command of Rasa Core.
160
+
161
+ - **./rasa-app-data/project **: This directory contains your Rasa project and may be used to train a model.
162
+ - **./rasa-app-data/nlu-models/ **: This directory contains the trained Rasa NLU models.
163
+ You can also move previously trained models to this directory to load them within the Docker container.
160
164
161
165
.. note ::
162
166
163
- You can always use custom directory structures or port mappings.
167
+ You can also use custom directory structures or port mappings.
164
168
But don't forget to reflect this changes in the docker compose file and in your endpoint configuration.
165
169
166
170
.. include :: feedback.inc
0 commit comments