How new answers are learned from user input ?
If i understod right, every new user input is stored as an possible answer to the last user input ?
2021-10-29 11:38:11,162 - chatterbot.chatterbot - INFO - Beginning search for close text match
2021-10-29 11:38:11,169 - chatterbot.chatterbot - INFO - Processing search results
2021-10-29 11:38:11,189 - chatterbot.chatterbot - INFO - Similar text found: Oi 1.0
2021-10-29 11:38:11,228 - chatterbot.chatterbot - INFO - Using "Oi" as a close match to "Oi" with a confidence of 1.0
2021-10-29 11:38:11,358 - chatterbot.chatterbot - INFO - Selecting response from 6 optimal responses.
2021-10-29 11:38:11,363 - chatterbot.response_selection - INFO - Selecting first response from list of 6 options.
2021-10-29 11:38:11,368 - chatterbot.chatterbot - INFO - Response selected. Using "Oi, meu amor"
2021-10-29 11:38:11,373 - chatterbot.chatterbot - INFO - BestMatch selected "Oi, meu amor" as a response with a confidence of 1.0
2021-10-29 11:38:11,465 - chatterbot.chatterbot - INFO - Adding "Oi" as a response to "Oi minha gostosa"
2021-10-29 11:38:18,783 - chatterbot.chatterbot - INFO - Beginning search for close text match
2021-10-29 11:38:18,833 - chatterbot.chatterbot - INFO - Processing search results
2021-10-29 11:38:18,852 - chatterbot.chatterbot - INFO - Similar text found: Oi, minha gostosa 0.65
2021-10-29 11:38:18,856 - chatterbot.chatterbot - INFO - Similar text found: Oi, minha linda 0.97
2021-10-29 11:38:18,862 - chatterbot.chatterbot - INFO - Using "Oi, minha linda" as a close match to "Oi minha linda" with a confidence of 0.97
2021-10-29 11:38:18,941 - chatterbot.chatterbot - INFO - 0. Excluding recent repeated response of "Oi"
2021-10-29 11:38:18,981 - chatterbot.chatterbot - INFO - No responses found. Generating alternate response list.
2021-10-29 11:38:19,001 - chatterbot.chatterbot - INFO - No known response to the input was found. Selecting a random response.
2021-10-29 11:38:19,007 - chatterbot.chatterbot - INFO - BestMatch selected "oi" as a response with a confidence of 0
2021-10-29 11:38:19,116 - chatterbot.chatterbot - INFO - Adding "Oi minha linda" as a response to "Oi"
This is a great question (I realize it was posted a while ago, but better late than never I guess).
Per the ChatterBot documentation:
An untrained instance of ChatterBot starts off with no knowledge of how to communicate. Each time a user enters a statement, the library saves the text that they entered and the text that the statement was in response to. As ChatterBot receives more input, the number of responses that it can reply to, and the accuracy of each response in relation to the input statement increases.
The program selects the closest matching response by searching for the closest matching known statement that matches the input, it then chooses a response from the selection of known responses to that statement.
I'll also note that this methodology might be changing with recent goals around adding support for LLMs.