Sara - handling of nested questions

image

Alright, this is a screenshot of my chat with Sara on the Rasa website, Am I wrong in asking the second question? I was hoping to get the answer to that. How do we handle such questions in a FAQ bot?

Kindly help!

Hi @rashmi.metri, you’re not wrong to ask the question! However, as you can see in Sara’s source code, asking for the latest version is not a recognized intent yet. If you think it’d make a good enhancement, you could open an enhancement request on the github repo.

Just FYI, it’s appreciated if you don’t mention multiple people in your post; see guidelines for mentions here

1 Like

Thank you very much for answering and suggesting that this could be enhancement :slight_smile:

Apologies, i was in sheer need of help on such questions in case of FAQs. My bad.

I will be more patient and wait for the answers than tagging multiple people hence forth :slight_smile: I apologize.

2 Likes

Hey there! :slight_smile:

Well, i have been struggling to get this right. I would really appreciate some help on this!

I am working on a FAQ bot but which has some flow/ follow ups(not in order) . For instance,

  1. What are the types of leaves?
  2. How can i apply them ?
  3. how many per year do we get? so on and so forth.

So basically, there is no reference made of the initial topic(here, leaves) but multiple questions are being asked following that(in no particular order), the user may move from one topic to a whole new topic and start a flow of questions of that topic.

My questions are,

  1. How do i handle such scenario?
  2. For a FAQ bot, max_history is 1 (works perfectly fine), but once a follow up question is asked, it does not recognize. So what should i set the max_history as?
  3. One way i m trying this is by setting the slot for the topic and continuing till another topic entity is spoken about, but how do i redirect to the right intent for follow up questions?

I hope what i have written is understandable :confused:

Kindly help :frowning:

A few tips:

  • Max history 1 will work when there is no context but in order to learn from contextual stories you will need a greater max history!
  • Use stories to tell the bot what to do with a certain intent (e.g. “how to use it”) based on the intent that came before it.
  1. One way i m trying this is by setting the slot for the topic and continuing till another topic entity is spoken about

That’s a great option!

Both of these are described here: Chitchat and FAQs

how do i redirect to the right intent for follow up questions?

you’ll need to add intents with training data for the different follow up questions a user might ask.

Thanks a ton for your response… :blush:

I will work as you suggested. Thank you very much.