Exploring the Inner Workings of Generative Artificial Intelligence: A Technical Perspective