Machine Learning is what is used to train software to recognize inputs to create outputs. Machine learning uses training inputs to create a library. Like handwriting recognitionthe more samples, the better at predicting. People using ChatGPT are training someones library