Conflict of results with rasa_core.server and rasa_core.run. rasa core 0.10.4

rasa-core

(Daniel Zitei) #1

Guys i don’t understand why i can’t talk my stories in rasa_core.server and when i talk with rasa_core.run my stories works but when i make a server for curl, my conversations doesn’t work. bellow are the logs of testing.

rasa_core.server

rasa_1       |   if diff:
rasa_1       |
rasa_1       | 192.168.99.1 - - [2018-09-14 14:28:03] "GET /conversations/default/respond?q=%22oi%22 HTTP/1.1" 200 437 0.168646
rasa_1       | 2018-09-14 14:28:16 WARNING  py.warnings  - /opt/conda/envs/rasa-env/lib/python3.5/site-packages/sklearn/preprocessing/label.py:151: DeprecationWarning: The truth value of an empty array is ambiguous. Returning False, but in future this will result in an error. Use `array.size > 0` to check that an array is not empty.
rasa_1       |   if diff:
rasa_1       |
rasa_1       | 192.168.99.1 - - [2018-09-14 14:28:16] "GET /conversations/default/respond?q=%22ocr%22 HTTP/1.1" 200 174 0.038085
rasa_1       | 2018-09-14 14:42:46 WARNING  py.warnings  - /opt/conda/envs/rasa-env/lib/python3.5/site-packages/sklearn/preprocessing/label.py:151: DeprecationWarning: The truth value of an empty array is ambiguous. Returning False, but in future this will result in an error. Use `array.size > 0` to check that an array is not empty.

rasa_core.run

oi
2018-09-14 14:46:14 DEBUG    rasa_core.tracker_store  - Creating a new tracker for id 'default'.
2018-09-14 14:46:14 WARNING  py.warnings  - /opt/conda/envs/rasa-env/lib/python3.5/site-packages/sklearn/preprocessing/label.py:151: DeprecationWarning: The truth value of an empty array is ambiguous. Returning False, but in future this will result in an error. Use `array.size > 0` to check that an array is not empty.
  if diff:

2018-09-14 14:46:14 DEBUG    rasa_core.processor  - Received user message 'oi' with intent '{'confidence': 0.8665507496548689, 'name': 'greet'}' and entities '[]'
2018-09-14 14:46:14 DEBUG    rasa_core.processor  - Logged UserUtterance - tracker now has 2 events
2018-09-14 14:46:14 DEBUG    rasa_core.processor  - Current slot values:
        setor: None
2018-09-14 14:46:14 DEBUG    rasa_core.policies.memoization  - Current tracker state [None, {}, {'intent_greet': 1.0, 'prev_action_listen': 1.0}]
2018-09-14 14:46:14 DEBUG    rasa_core.policies.memoization  - There is a memorised next action '12'
2018-09-14 14:46:14 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_0_MemoizationPolicy
2018-09-14 14:46:14 DEBUG    rasa_core.policies.ensemble  - Predicted next action 'utter_greet' with prob 1.00.
Oi, eu sou o NESTOR GR! O NESTOR é um nome que representa o trabalho incansável e criativo e o GR recebi por parte dos meus criadores. Eu posso te ajudar com o envio de CV, contatos com nosso Atendimento, Financeiro, Jurídico, RH e Comercial. Me diz o que você precisa?
2018-09-14 14:46:14 DEBUG    rasa_core.processor  - Action 'utter_greet' ended with events '[]'
2018-09-14 14:46:14 DEBUG    rasa_core.processor  - Bot utterance 'BotUttered(text: Oi, eu sou o NESTOR GR! O NESTOR é um nome que representa o trabalho incansável e criativo e o GR recebi por parte dos meus criadores. Eu posso te ajudar com o envio de CV, contatos com nosso Atendimento, Financeiro, Jurídico, RH e Comercial. Me diz o que você precisa?, data: null)'
2018-09-14 14:46:14 DEBUG    rasa_core.policies.memoization  - Current tracker state [{}, {'intent_greet': 1.0, 'prev_action_listen': 1.0}, {'prev_utter_greet': 1.0, 'intent_greet': 1.0}]
2018-09-14 14:46:14 DEBUG    rasa_core.policies.memoization  - There is a memorised next action '0'
2018-09-14 14:46:14 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_0_MemoizationPolicy
2018-09-14 14:46:14 DEBUG    rasa_core.policies.ensemble  - Predicted next action 'action_listen' with prob 1.00.
2018-09-14 14:46:14 DEBUG    rasa_core.processor  - Action 'action_listen' ended with events '[]'
ocr
2018-09-14 14:46:17 DEBUG    rasa_core.tracker_store  - Recreating tracker for id 'default'
2018-09-14 14:46:17 WARNING  py.warnings  - /opt/conda/envs/rasa-env/lib/python3.5/site-packages/sklearn/preprocessing/label.py:151: DeprecationWarning: The truth value of an empty array is ambiguous. Returning False, but in future this will result in an error. Use `array.size > 0` to check that an array is not empty.
  if diff:

2018-09-14 14:46:17 DEBUG    rasa_core.processor  - Received user message 'ocr' with intent '{'confidence': 0.821894246283457, 'name': 'servico'}' and entities '[{'extractor': 'ner_crf', 'entity': 'setor', 'end': 3, 'confidence': 0.9586595546005588, 'start': 0, 'value': 'ocr'}]'
2018-09-14 14:46:17 DEBUG    rasa_core.processor  - Logged UserUtterance - tracker now has 7 events
2018-09-14 14:46:17 DEBUG    rasa_core.processor  - Current slot values:
        setor: ocr
2018-09-14 14:46:17 DEBUG    rasa_core.policies.memoization  - Current tracker state [{'intent_greet': 1.0, 'prev_action_listen':
1.0}, {'prev_utter_greet': 1.0, 'intent_greet': 1.0}, {'prev_action_listen': 1.0, 'entity_setor': 1.0, 'slot_setor_6': 1.0, 'intent_servico': 1.0}]
2018-09-14 14:46:17 DEBUG    rasa_core.policies.memoization  - There is a memorised next action '15'
2018-09-14 14:46:17 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_0_MemoizationPolicy
2018-09-14 14:46:17 DEBUG    rasa_core.policies.ensemble  - Predicted next action 'action_check_servico' with prob 1.00.
Acho que você procura informações para AUTOMAÇÃO, para esse assunto temos cases incríveis que você precisa conhecer. Nosso time já implantou varias soluções de diferentes marcas, em vários locais. Inclusive temos cases no maior porto da América Latina. A boa noticia é que agora somos representantes de uma solução de OCR, CFTV e Controle de acesso que atende as exigências da ADE02 - Receita Federal. Você quer mais detalhes ligue para 13 9999-9999, conversa com a Natalia e ela vai marcar uma conversa com nossa equipe.
2018-09-14 14:46:17 DEBUG    rasa_core.processor  - Action 'action_check_servico' ended with events '[]'
2018-09-14 14:46:17 DEBUG    rasa_core.processor  - Bot utterance 'BotUttered(text: Acho que você procura informações para AUTOMAÇÃO, para esse assunto temos cases incríveis que você precisa conhecer. Nosso time já implantou varias soluções de diferentes marcas, em vários locais. Inclusive temos cases no maior porto da América Latina. A boa noticia é que agora somos representantes de uma solução de OCR, CFTV e Controle de acesso que atende as exigências da ADE02 - Receita Federal. Você quer mais detalhes ligue para 13 9999-9999, conversa com a Natalia e ela vai marcar uma conversa com nossa equipe., data: null)'
2018-09-14 14:46:17 DEBUG    rasa_core.policies.memoization  - Current tracker state [{'prev_utter_greet': 1.0, 'intent_greet': 1.0}, {'prev_action_listen': 1.0, 'entity_setor': 1.0, 'slot_setor_6': 1.0, 'intent_servico': 1.0}, {'entity_setor': 1.0, 'slot_setor_6': 1.0, 'intent_servico': 1.0, 'prev_action_check_servico': 1.0}]
2018-09-14 14:46:17 DEBUG    rasa_core.policies.memoization  - There is a memorised next action '0'
2018-09-14 14:46:17 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_0_MemoizationPolicy
2018-09-14 14:46:17 DEBUG    rasa_core.policies.ensemble  - Predicted next action 'action_listen' with prob 1.00.
2018-09-14 14:46:17 DEBUG    rasa_core.processor  - Action 'action_listen' ended with events '[]'
tchau
2018-09-14 14:46:23 DEBUG    rasa_core.tracker_store  - Recreating tracker for id 'default'
2018-09-14 14:46:23 WARNING  py.warnings  - /opt/conda/envs/rasa-env/lib/python3.5/site-packages/sklearn/preprocessing/label.py:151: DeprecationWarning: The truth value of an empty array is ambiguous. Returning False, but in future this will result in an error. Use `array.size > 0` to check that an array is not empty.
  if diff:

2018-09-14 14:46:23 DEBUG    rasa_core.processor  - Received user message 'tchau' with intent '{'confidence': 0.7398606368532962,
'name': 'goodbye'}' and entities '[]'
2018-09-14 14:46:23 DEBUG    rasa_core.processor  - Logged UserUtterance - tracker now has 11 events
2018-09-14 14:46:23 DEBUG    rasa_core.processor  - Current slot values:
        setor: ocr
2018-09-14 14:46:23 DEBUG    rasa_core.policies.memoization  - Current tracker state [{'prev_action_listen': 1.0, 'entity_setor':
1.0, 'slot_setor_6': 1.0, 'intent_servico': 1.0}, {'entity_setor': 1.0, 'slot_setor_6': 1.0, 'intent_servico': 1.0, 'prev_action_check_servico': 1.0}, {'prev_action_listen': 1.0, 'slot_setor_6': 1.0, 'intent_goodbye': 1.0}]
2018-09-14 14:46:23 DEBUG    rasa_core.policies.memoization  - There is a memorised next action '13'
2018-09-14 14:46:23 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_0_MemoizationPolicy
2018-09-14 14:46:23 DEBUG    rasa_core.policies.ensemble  - Predicted next action 'utter_goodbye' with prob 1.00.
Frase goodbye a acrescentar
2018-09-14 14:46:23 DEBUG    rasa_core.processor  - Action 'utter_goodbye' ended with events '[]'
2018-09-14 14:46:23 DEBUG    rasa_core.processor  - Bot utterance 'BotUttered(text: Frase goodbye a acrescentar, data: null)'
2018-09-14 14:46:23 DEBUG    rasa_core.policies.memoization  - Current tracker state [{'entity_setor': 1.0, 'slot_setor_6': 1.0, 'intent_servico': 1.0, 'prev_action_check_servico': 1.0}, {'prev_action_listen': 1.0, 'slot_setor_6': 1.0, 'intent_goodbye': 1.0},
{'prev_utter_goodbye': 1.0, 'slot_setor_6': 1.0, 'intent_goodbye': 1.0}]
2018-09-14 14:46:23 DEBUG    rasa_core.policies.memoization  - There is a memorised next action '0'
2018-09-14 14:46:23 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_0_MemoizationPolicy
2018-09-14 14:46:23 DEBUG    rasa_core.policies.ensemble  - Predicted next action 'action_listen' with prob 1.00.
2018-09-14 14:46:23 DEBUG    rasa_core.processor  - Action 'action_listen' ended with events '[]'

(Akela Drissner) #2

what does the curl request say?