naluwan
(Naluwan)
1
i can’t get the response, just get the code of response
how to fix it?
domain.yml
Version: '2.0'
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true
intents:
- 問天氣
- 問交通工具
- get_started
entities: []
slots: {}
responses:
utter_zcD77wJdj:
- language: zh
text: 今天天氣很好阿
utter_woWnxyVNG:
- language: zh
text: 不會啊!!今天天氣超好的!!!
utter_start:
- language: zh
text: 你好阿!!
actions:
- utter_zcD77wJdj
- utter_woWnxyVNG
- utter_start
forms: {}
story.yml
stories:
- story: test
steps:
- intent: 問天氣
user: 今天天氣如何
entities: []
- action: utter_zcD77wJdj
- story: test2
steps:
- intent: 問交通工具
user: 怎麼去高雄
entities: []
- action: utter_woWnxyVNG
- story: 開頭
steps:
- intent: get_started
entities: []
- action: utter_start
nlu.json
rasa_nlu_data:
common_examples:
- text: 今天天氣如何
intent: 問天氣
entities: []
metadata:
language: zh
- text: 今天太陽大嗎
intent: 問天氣
entities: []
metadata:
language: zh
- text: 今天會下雨嗎
intent: 問天氣
entities: []
metadata:
language: zh
- text: 怎麼去高雄
intent: 問交通工具
entities: []
metadata:
language: zh
- text: 要搭什麼交通工具去高雄
intent: 問交通工具
entities: []
metadata:
language: zh
- text: 可以如何去高雄
intent: 問交通工具
entities: []
metadata:
language: zh
entity_synonyms: []
gazette: []
regex_features: []
logs
botfront-rasa | 2022-07-11 17:48:19 DEBUG rasa.nlu.selectors.response_selector - Adding following selector key to message property: chitchat
botfront-rasa | 2022-07-11 17:48:19 DEBUG rasa.core.processor - Received user message '天氣如何' with intent '{'id': -4441578029610658200, 'name': '問天氣', 'confidence': 12.774007797241211}' and entities '[]'
botfront-rasa | 2022-07-11 17:48:19 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 21 events.
botfront-rasa | 2022-07-11 17:48:19 DEBUG rasa.core.policies.rule_policy - Current tracker state:
botfront-rasa | [state 1] user intent: get_started | previous action name: action_listen
botfront-rasa | [state 2] user intent: get_started | previous action name: utter_start
botfront-rasa | [state 3] user intent: 問天氣 | previous action name: action_listen
botfront-rasa | [state 4] user intent: 問天氣 | previous action name: utter_zcD77wJdj
botfront-rasa | [state 5] user intent: 問交通工具 | previous action name: action_listen
botfront-rasa | [state 6] user intent: 問交通工具 | previous action name: utter_woWnxyVNG
botfront-rasa | [state 7] user text: 天氣如何 | previous action name: action_listen
botfront-rasa | 2022-07-11 17:48:19 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.
botfront-rasa | 2022-07-11 17:48:19 DEBUG rasa.core.policies.rule_policy - Current tracker state:
botfront-rasa | [state 1] user intent: get_started | previous action name: action_listen
botfront-rasa | [state 2] user intent: get_started | previous action name: utter_start
botfront-rasa | [state 3] user intent: 問天氣 | previous action name: action_listen
botfront-rasa | [state 4] user intent: 問天氣 | previous action name: utter_zcD77wJdj
botfront-rasa | [state 5] user intent: 問交通工具 | previous action name: action_listen
botfront-rasa | [state 6] user intent: 問交通工具 | previous action name: utter_woWnxyVNG
botfront-rasa | [state 7] user intent: 問天氣 | previous action name: action_listen
botfront-rasa | 2022-07-11 17:48:19 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.
botfront-rasa | 2022-07-11 17:48:19 DEBUG rasa.core.policies.memoization - Current tracker state:
botfront-rasa | [state 0] user intent: 問天氣 | previous action name: action_listen
botfront-rasa | [state 1] user intent: 問天氣 | previous action name: utter_zcD77wJdj
botfront-rasa | [state 2] user intent: 問交通工具 | previous action name: action_listen
botfront-rasa | [state 3] user intent: 問交通工具 | previous action name: utter_woWnxyVNG
botfront-rasa | [state 4] user intent: 問天氣 | previous action name: action_listen
botfront-rasa | 2022-07-11 17:48:19 DEBUG rasa.core.policies.memoization - Launch DeLorean...
botfront-rasa | 2022-07-11 17:48:19 DEBUG rasa.core.policies.memoization - Current tracker state [{}, {'user': {'intent': '問天氣'}, 'prev_action': {'action_name': 'action_listen'}}]
botfront-rasa | 2022-07-11 17:48:19 DEBUG rasa.core.policies.memoization - There is a memorised next action 'utter_zcD77wJdj'
botfront-rasa | 2022-07-11 17:48:19 DEBUG rasa.core.policies.ensemble - Made prediction using user intent.
botfront-rasa | 2022-07-11 17:48:19 DEBUG rasa.core.policies.ensemble - Added `DefinePrevUserUtteredFeaturization(False)` event.
botfront-rasa | 2022-07-11 17:48:19 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_2_AugmentedMemoizationPolicy.
botfront-rasa | 2022-07-11 17:48:19 DEBUG rasa.core.processor - Predicted next action 'utter_zcD77wJdj' with confidence 1.00.
botfront-rasa | 2022-07-11 17:48:19 DEBUG rasa_addons.core.nlg.graphql - Requesting NLG for utter_zcD77wJdj from http://botfront:3000/graphql.
botfront-rasa | 2022-07-11 17:48:19 DEBUG rasa.core.processor - Policy prediction ended with events '[<rasa.shared.core.events.DefinePrevUserUtteredFeaturization object at 0x7f9d791a9c10>]'.
botfront-rasa | 2022-07-11 17:48:19 DEBUG rasa.core.processor - Action 'utter_zcD77wJdj' ended with events '[BotUttered('utter_zcD77wJdj', {"elements": null, "quick_replies": null, "buttons": null, "attachment": null, "image": null, "custom": null}, {"template_name": "utter_zcD77wJdj"}, 1657532899.697356)]'.
can anyone help me?
naluwan
(Naluwan)
2
can anyone help me?
i train rasa by RASA HTTP API
rasa: 2.X
rasa-sdk: 2.8.3
sonam
(sonam)
3
Please update to Rasa 3.5