Rasa3.0 initialization | rasa init project and Directory structure

Опубликовано: 26 Июль 2026
на канале: New Knowledge for U
131
3

As of my last update in September 2021, the directory structure of a Rasa 3.0 project typically follows a standard layout. However, please note that the directory structure might change in future updates. Here's the general directory structure for a Rasa 3.0 project:

```
my_rasa_project/
|-- actions/
| |-- __init__.py
| |-- actions.py
|-- data/
| |-- nlu.yml
| |-- rules.yml
| |-- stories.yml
|-- models/
| |-- ...
|-- tests/
| |-- ...
|-- config.yml
|-- credentials.yml
|-- domain.yml
|-- endpoints.yml
|-- .gitignore
|-- .rasa/
|-- .env
|-- README.md
|-- requirements.txt
|-- other_project_files...
```

1. `actions/`: This directory contains custom actions that you can define to handle specific tasks during conversations, like calling APIs or performing custom logic.

2. `data/`: This directory stores the training data for the Rasa NLU and Core models. It includes files like `nlu.yml` for defining intents and entities, `rules.yml` for defining conversation rules, and `stories.yml` for creating conversation sample stories.

3. `models/`: After training, Rasa stores the trained models in this directory. It contains the trained NLU and Core models.

4. `tests/`: This directory is used to store test cases and test data for evaluating the performance of your chatbot.

5. `config.yml`: This file contains the configuration settings for the Rasa project, including pipeline configurations for NLU and policy settings for Core.

6. `credentials.yml`: This file contains credentials for external services, like API tokens, which are required for using custom actions or other external services.

7. `domain.yml`: The domain file defines the domain of your chatbot, including intents, entities, actions, templates, and other settings.

8. `endpoints.yml`: This file contains configuration settings for endpoints like the action server, tracker store, and event broker.

9. `.gitignore`: This file specifies which files or directories should be ignored by version control systems like Git.

10. `.rasa/`: This directory is created by Rasa and contains internal metadata and cached files.

11. `.env`: This file is used to define environment variables for your project.

12. `README.md`: This file typically contains information about the project and instructions on how to set up and use the chatbot.

13. `requirements.txt`: This file lists the required Python packages and their versions to run the Rasa project.

Note: The actual structure might differ based on the project and its specific requirements. Always refer to the official Rasa documentation for the most up-to-date and accurate information regarding the directory structure for Rasa 3.0 projects.