Summary
In this chapter, you learned to use ResponseSelector
to handle chitchat and FAQs. This usually requires three steps. First, you need to define retrieval intents, given enough samples about the questions that users might ask. Note that the retrieval intents are slightly different from ordinary intents (if you do not remember the differences, please try to review this chapter). Second, you need to define your responses, that is, the answers to the questions. Remember that there is a rule about how to pair the answers with the questions. Third, you need to update the configuration (both in the pipeline
field and the polices
field) to use ResponseSelector
and RulePolicy
to make the bot work correctly.
In the next chapter, we will examine how to use knowledge base actions to handle knowledge base question answering.