# Using Response Selector for FAQs don't return any Utterance

**URL:** <https://forum.rasa.com/t/using-response-selector-for-faqs-dont-return-any-utterance/36460>\
**Category:** Rasa Open Source\
**Created:** [October 30, 2020, 9:01am UTC](https://forum.rasa.com/t/using-response-selector-for-faqs-dont-return-any-utterance/36460 "2020-10-30T09:01:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![threxx](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/threxx/32/3620_2.png) [@threxx](https://forum.rasa.com/u/threxx)\
**Post date:** [October 30, 2020, 9:01am UTC](https://forum.rasa.com/t/using-response-selector-for-faqs-dont-return-any-utterance/36460/1 "2020-10-30T09:01:27Z")

</div>

Hello,

I am currently switching to response selectors for my faqs. IMO I followed this guide [here](https://rasa.com/docs/rasa/chitchat-faqs). Training works perfectly fine and also matching questions to intents, however, I do not receive any response. My logs from the console are attached.

 ![Logs](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/e/e13e9d2096a644dcf468995f3526c8633a28a83e.png)

**Config.yml:**

```
language: en

    pipeline:
      - name: WhitespaceTokenizer
      - name: RegexFeaturizer
      - name: LexicalSyntacticFeaturizer
      - name: CountVectorsFeaturizer
      - name: CountVectorsFeaturizer
        analyzer: char_wb
        min_ngram: 1
        max_ngram: 4
      - name: DIETClassifier
        epochs: 100
      - name: EntitySynonymMapper
      - name: ResponseSelector
        epochs: 100
        retrieval_intent: faq

    policies:
    - name: MemoizationPolicy
      max_history: 5
    - name: TEDPolicy
      max_history: 5
      epochs: 10
    - name: RulePolicy

```

**nlu.yml**

```
version: '2.0'

nlu:
  - intent: faq/ask_payment
    examples: |
      - Do I have to pay for courses? 
      - How much does the courses cost
      - What is the price of the courses
      - Do the courses cost money?
      - Are the courses free?
      - I don't want to pay money for the courses
  - intent: faq/ask_password_reset
    examples: |
      - I forgot my password, what can I do? 
      - I lost my password
      - I forgot my password
      - How can I retrieve my password
      - I need to reset my password
      - Where can I reset my password
      - Where can I retrieve my password

```

**domain.yml**

```
version: '2.0'

intents:
  - faq

session_config:
  session_expiration_time: 60 # value in minutes, 0 means infinitely long
  carry_over_slots_to_new_session: false # set to false to forget slots between sessions

responses:
  utter_faq/ask_payment:
  - text: "All courses are free and open to anyone wishing to register."
  utter_faq/ask_password_reset:
  - text: "Some response..."

```

**rules.yml**

```
rules:
  - rule: respond to FAQs
    steps:
    - intent: faq
    - action: utter_faq

```

**My Rasa version:**

```
Rasa Version : 2.0.2
Rasa SDK Version : 2.0.0
Rasa X Version : None
Python Version : 3.7.2
Operating System : Darwin-19.6.0-x86_64-i386-64bit

```

---

<div class="post-metadata">

**Author:** ![sugarshock](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sugarshock/32/9126_2.png) [@sugarshock](https://forum.rasa.com/u/sugarshock)\
**Post date:** [October 30, 2020, 9:39am UTC](https://forum.rasa.com/t/using-response-selector-for-faqs-dont-return-any-utterance/36460/2 "2020-10-30T09:39:15Z")

</div>

This is indeed weird - your setup looks exactly like mine, which works.

Have you validated your YAMLs? I see a little indentation error with “utter\_faq/ask\_password\_reset:” in your domain - but it might also just be an error from copying the code into here.

YAML is very sensitive with its indents - could be the reason why it can’t find the response.

---

<div class="post-metadata">

**Author:** ![threxx](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/threxx/32/3620_2.png) [@threxx](https://forum.rasa.com/u/threxx)\
**Post date:** [October 30, 2020, 9:40am UTC](https://forum.rasa.com/t/using-response-selector-for-faqs-dont-return-any-utterance/36460/3 "2020-10-30T09:40:22Z")

</div>

Yes, you are right, this is, unfortunately, a copy/paste error. I will edit it

---

<div class="post-metadata">

**Author:** ![threxx](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/threxx/32/3620_2.png) [@threxx](https://forum.rasa.com/u/threxx)\
**Post date:** [October 30, 2020, 9:45am UTC](https://forum.rasa.com/t/using-response-selector-for-faqs-dont-return-any-utterance/36460/4 "2020-10-30T09:45:14Z")

</div>

One _strange_ output while training is:

```
/Users/theresa/.pyenv/versions/3.7.2/lib/python3.7/site-packages/rasa/shared/utils/io.py:93: UserWarning: 
Found a rule-based policy in your pipeline but no rule-based training data. Please add rule-based stories to your training data or remove the rule-based policy (`RulePolicy`) from your your pipeline.
  More info at https://rasa.com/docs/rasa/rules

```

which seems strange as I have rules defined for faq which I want to use

---

<div class="post-metadata">

**Author:** ![threxx](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/threxx/32/3620_2.png) [@threxx](https://forum.rasa.com/u/threxx)\
**Post date:** [October 30, 2020, 10:41am UTC](https://forum.rasa.com/t/using-response-selector-for-faqs-dont-return-any-utterance/36460/5 "2020-10-30T10:41:12Z")

</div>

Found my problem: rules.yml must be placed inside the data folder
