Database for NLU

HI all, What i want is lets say i have two intents 1 is welcome and 1 is jokes. So And in each of intent i put 3-3 traing phrases like welcome(1st one) have hi,hello,hey and jokes(second one) have jokes,tell me joke, i am sad. Now i created a database for it. Intent_table id, intent_name

samples_data_table id samples intent_id

So, When user will say “heya” then how we can retrieve “welcome” intent name. using rasa-nlu? Any suggestions please. Thanks

Hi @haneef, The easiest way to provide Rasa NLU with training data is to have the intent names and examples in a Markdown file instead of a database. By default, you would store this in your project folder as data/

For the example you described, the file would have the following content:

## intent:welcome
- hi
- hello
- hey

## intent: jokes
- jokes
- tell me joke
- I am sad

If you want / have to use a database instead of the markdown file, things get a lot more complicated. You will have to implement your own custom importer. Some guidelines on this can be found here, but I would recommend to simply put your intents in a markdown file as it is a lot easier.

For learning how to create a simple bot, you can also check out our Tutorial.

I am trying to create my own chatbot framework just like not exact like wit. but with some basic features. i already worked with rasa. So i thought i can use rasa-nlu as luis for intent classification. so the challenge is training data and intent like where user will save their intents respect to application id.

Ah, sorry for misunderstanding. I’m still not sure what exactly your problem is: is it getting the training data into Rasa NLU or is it using Rasa NLU to retrieve the intent names from an incoming user message?

I would suggest the following: Convert your training data into a format that Rasa NLU understands easily (markdown or json as described here). Then follow these steps to get a running server with a trained NLU model. You can then send requests with user messages from your framework to this server and get back the intents. The retrieved intents will be in the usual Rasa format, but it is also possible to get them back in the format that is used by (see here) or LUIS (see here) instead.