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:

Error

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

config.yml

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

# Configuration for Rasa Core.
# https://rasa.com/docs/rasa/core/policies/
policies:
  - name: MemoizationPolicy
  - name: KerasPolicy
  - name: MappingPolicy

nlu.md

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

responses.md

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

domain.yml

intents:
- greet
- goodbye
- affirm
- deny
- mood_great
- mood_unhappy
- ask_faq: {triggers: respond_ask_faq}
templates:
  utter_greet:
  - text: Hey! How are you?
  utter_cheer_up:
  - text: 'Here is something to cheer you up:'
    image: https://i.imgur.com/nGF1K8f.jpg
  utter_did_that_help:
  - text: Did that help you?
  utter_happy:
  - text: Great carry on!
  utter_goodbye:
  - text: Bye
actions:
- utter_greet
- utter_cheer_up
- utter_did_that_help
- utter_happy
- utter_goodbye
- respond_ask_faq

stories.md

## 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