Skip to main content

What is the difference between AI, machine learning and generative AI?

AI basics for everyone · Beginner 1

Short answer

AI is the broad goal of computers doing tasks that seem to need intelligence. Machine learning is the main way we build AI today: systems learn patterns from data instead of following hand-written rules. Generative AI is a kind of machine learning that creates new content, such as text, images or code, for example ChatGPT, Gemini or Claude.

Deeper answer

A simple picture is three circles, one inside the other. A spam filter that learned from labelled emails is machine learning. A chess program that follows rules written by people is AI but not machine learning. A chatbot that writes an email for you is generative AI.

In interviews for non-technical roles, the point is to show you can explain this clearly to a colleague, with an example from daily life or from the company's own work.

What a strong answer covers

Answer it out loud in the mock interview about 1 min

Follow-ups to expect

Common mistakes

Learn it

What AI, machine learning and a language model are

Today's AI turns are used

Lessons, roadmaps, videos, practice cards and the code playground stay free with your account, with no limit.