Basit Anwer
commited on
Commit
•
04c94f2
1
Parent(s):
4c02d58
Updated file documents.
Browse files- actions/actions.py +4 -0
- data/nlu.yml +7 -0
- data/rules.yml +3 -0
- data/stories.yml +3 -0
- domain.yml +3 -0
actions/actions.py
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
from typing import Any, Text, Dict, List
|
2 |
import json
|
3 |
import requests
|
|
|
1 |
+
"""
|
2 |
+
This files contains your custom actions which can be used
|
3 |
+
to run custom Python code.
|
4 |
+
"""
|
5 |
from typing import Any, Text, Dict, List
|
6 |
import json
|
7 |
import requests
|
data/nlu.yml
CHANGED
@@ -1,3 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
version: "2.0"
|
2 |
|
3 |
nlu:
|
|
|
1 |
+
# NLU training data for the bot.
|
2 |
+
# This file stores the expected queries from the user.
|
3 |
+
# Whenever a user utters a message, it is always matched to an intent.
|
4 |
+
# This match comes with a confidence number that can be used to identify
|
5 |
+
# how much related the intent is to the uttered message.
|
6 |
+
# Minumum number of examples are 2 for each intent.
|
7 |
+
# When writing a new intent, update domain.yml as well.
|
8 |
version: "2.0"
|
9 |
|
10 |
nlu:
|
data/rules.yml
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
version: "2.0"
|
2 |
|
3 |
rules:
|
|
|
1 |
+
# Rules, along with stories are used as training data for the bot and define
|
2 |
+
# how a conversation should always happen provided an intent.
|
3 |
+
# If in doubt, use stories and do not over-use rules.
|
4 |
version: "2.0"
|
5 |
|
6 |
rules:
|
data/stories.yml
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
version: "2.0"
|
2 |
|
3 |
stories:
|
|
|
1 |
+
# This file presents stories or the conversations likely to happen
|
2 |
+
# with the user. Stories are also training data for the bot to stich intents
|
3 |
+
# with actions & to behave more like a human.
|
4 |
version: "2.0"
|
5 |
|
6 |
stories:
|
domain.yml
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
version: "2.0"
|
2 |
|
3 |
intents:
|
|
|
1 |
+
# This file binds the different aspects of your bot together.
|
2 |
+
# Stories, intents, actions e.t.c are all declared here to be used.
|
3 |
+
# To learn more https://rasa.com/docs/rasa/domain/
|
4 |
version: "2.0"
|
5 |
|
6 |
intents:
|