how does generative ai work

how does generative ai work