Distribute NLU data into separate files

Hi there :wave: As the project grows, the data/nlu.yml file becomes too big. I am working on a project right now and it easily crossed 300 lines, that fills only 50% of requirement… finally it would be 600+ lines. Its a huge bot… very difficult to manage/update that long file!

How do i keep intent data into separate files? For example something like below: Screenshot 2021-04-12 at 11.32.52 AM

main.yml could be the place where I would specify all other nlu_*.yml files name… something like

from nlu_candidate.yml import candidate_intents

and in individual files I can put related intents.

I think this is could be much needed feature, any advice? thanks in adv :slight_smile:

No need to have a main.yml.

Just make sure all your NLU files start with:

1 Like

Thats amazing, I will try it today for sure! thanks @ChrisRahme :slight_smile:

1 Like