Testing the chatbot training data to improve predictability
As an administrator, you can test whether the chatbot application is able to understand the conversation context and provides appropriate responses when interacting with users in natural language, and perform tasks on behalf of end users. You must create a CSV data set to test the chatbot application. The test results provide the exact problem area when the chatbot does not respond appropriately so that administrators can rectify the chatbot intents, entities, and dialogs (that serve as training data). The tests are particularly important when you are implementing a new data set, localized data set, or if you have made major changes to the data set.
For more information, see Leveraging machine learning metrics to improve chatbot predictability.
CSV data set structure for a chatbot application
You must create a CSV file to test a chatbot application. The CSV file should have the following structure:
- A row represents a record.
The first column represents the natural language text to which the chatbot responds.
Example: Vacation time
- The second column represents the intent that the chatbot understands and responds to.
Example: For vacation time as the natural language text, the chatbot should understand the intent as PTO.
- Each row contains a natural language text and the intent that applies to the text.
Example of a test CSV file
The following image is an example of a CSV test data file for chatbot:
Before you begin
- Ensure that you have created intents, entities, and dialogs.
- Ensure that you have created the CSV test data file.
- If you are using localized Chatbot Skill, ensure that your test data locale matches with the workspace locale.
To test and rectify chatbot data
- Log in to BMC Helix Innovation Studio and navigate to the Administration tab.
- Click the configuration that you created for training the cognitive service.
Example: My Application > Cognitive Training - Expand the Chatbot Evaluation tab.
Upload and test the CSV test data file.
View and download the test results.
Rectify the chatbot training data.
Tip
To delete the test results that are no longer required, you can create a process by using the Delete record element. For more information, see Creating or modifying record instances using Record Service Tasks
.
Related topics
Types of data sets used to train and test the cognitive service
Training and testing the cognitive service for a custom application
Comments
Log in or register to comment.