Updating the configuration to use ResponseSelector
In order to perform an intelligent categorization of the questions, we need to use the ResponseSelector NLU component to train a model with existing training data. We need to add the ResponseSelector component to the pipeline. The ResponseSelector component depends on the featurizer and intent classifier, so make sure you place it after these components in your pipeline, as follows:
pipeline: - name: XXXFeaturizer # replace this with a real Featurizer - name: XXXClassifier # replace this with a real Classifier - name: ResponseSelector
In order to get the right answer based on the result from ResponseSelector, we need to initiate RulePolicy and implement a rule to do the mapping. Here is an example:
rules: - rule: map to chitchat steps: - intent: chitchat - action: utter_chitchat
Here, we create a rule...