How Generative AI Works, as Told by a PhD Data Scientist