Mark học AI

Video #07 · Core ideas

How do AI chatbots work? They guess the next word

AI answers as smoothly as a real person, but inside it does something surprisingly simple: it guesses the next word, like your phone keyboard.

Watch videoVideo in Vietnamese

Does AI "understand" you?

AI answers as smoothly as a real person. But inside, it's doing something surprisingly simple.

Like your keyboard's word suggestions

You've seen your phone keyboard suggest the next word. Type "happy", and it guesses "birthday" right away.

A chatbot is a giant suggestion keyboard

An AI chatbot also guesses the next word. It's just been trained on a huge amount of text, more than one person could read in a thousand lifetimes.

One word at a time

When you ask something, it picks the best-fitting word, adds it, then guesses the next one, again and again until the answer is done.

How can guessing words be so good?

To guess well, it has to learn grammar, facts and even how to reason. That's why its answers sound so good.

What to remember

But remember: it guesses what sounds most likely, and that's not always the truth.

This article is based on the video What is an AI chatbot really doing? from the Mark học AI channel. Watch the video (in Vietnamese) to see the animations.