Response retrieval model train error

Hi all,

I’m trying to create a FAQ bot using the response retrieval model explained in Integrate response retrieval models in assistants built with Rasa . But get below error when I enter “rasa train” . I’m very new to Rasa and development. Please help :slight_smile:


(ax117) C:\Users\nawarathna\Desktop\New folder (3)>rasa train
Traceback (most recent call last):
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\lib\", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\lib\", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\nawarathna\AppData\Local\Continuum\anaconda3\Scripts\rasa.exe\", line 5, in <module>
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\lib\site-packages\rasa\", line 8, in <module>
    from import run
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\lib\site-packages\rasa\", line 6, in <module>
    from rasa.cli.utils import print_warning
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\lib\site-packages\rasa\cli\", line 7, in <module>
    from questionary import Question
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\lib\site-packages\questionary\", line 5, in <module>
    from questionary.form import Form
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\lib\site-packages\questionary\", line 3, in <module>
    from questionary.constants import DEFAULT_KBI_MESSAGE
  File "c:\users\nawarathna\appdata\local\continuum\anaconda3\lib\site-packages\questionary\", line 40, in <module>
    ('instruction', '')   # user instructions for select, rawselect, checkbox
TypeError: Style() takes no arguments


language: en
- name: "WhitespaceTokenizer"
intent_split_symbol: "_"
- name: "CountVectorsFeaturizer"
- name: "EmbeddingIntentClassifier"
- name: "ResponseSelector"

# Configuration for Rasa Core.
  - name: MemoizationPolicy
  - name: KerasPolicy
  - name: MappingPolicy

## intent:ask_faq/ompany-about
- what is your company?
- what do you do?
- tell me about your company?
- company description

## FAQ about company
* ask_faq/company_about
	-We are a software development company.


- greet
- goodbye
- affirm
- deny
- mood_great
- mood_unhappy
- ask_faq: {triggers: respond_ask_faq}
  - text: Hey! How are you?
  - text: 'Here is something to cheer you up:'
  - text: Did that help you?
  - text: Great carry on!
  - text: Bye
- utter_greet
- utter_cheer_up
- utter_did_that_help
- utter_happy
- utter_goodbye
- respond_ask_faq

## happy path
* greet
  - utter_greet
* mood_great
  - utter_happy

## sad path 1
* greet
  - utter_greet
* mood_unhappy
  - utter_cheer_up
  - utter_did_that_help
* affirm
  - utter_happy

## sad path 2
* greet
  - utter_greet
* mood_unhappy
  - utter_cheer_up
  - utter_did_that_help
* deny
  - utter_goodbye

## say goodbye
* goodbye
  - utter_goodbye

## faq
* ask_faq
    - respond_ask_faq

Hm this looks very strange, seems maybe some versions are wrong? Did you install rasa in a virtual environment? What versions of rasa and python are you running?

1 Like

Hi Ella!

I think this is due to a syntax error in my domain.yml file. I have re created one and now its working fine. Thanks for your response ! :slight_smile:

Awesome, good debugging :rocket:

1 Like