2 of 1 ·How Chatbots Generate Text

Lesson 2 · Generative AI
The 'next word' game behind every chatbot reply.
AI That Creates
Generative AI can produce text or pictures from a request. Its output may contain mistakes. Compare one supplied output with the request and check any factual claims.
Click to zoomThe next-word game 🎯Finish this line: "The cricket ball flew over the ___"
You probably thought "boundary" or "fence." You just did what a chatbot does — predict a likely next word.
Click to zoomOne word at a timeA chatbot builds a reply like this:
String enough likely words together and you get a whole, smooth-sounding sentence.
5 more parts in this lesson
Walkthroughs, code labs, mini-games and the checkpoint quiz unlock when you buy the course.