LearnFrenzy
Sign in Take a free test

Generative AI & LLMs · Lesson 3 of 6

What Is Generative AI and How Is It Different?

Most AI predicts or classifies. Generative AI creates something new — text, images, code, music. What makes it different, what it is good for, and where you should be careful.

9 min read Beginner Updated Nov 5, 2026 Reviewed by Saurabh Samir

For years, AI mostly answered questions with a label or a number: spam or not spam, this face or that face, the price will be ₹45 lakh. Then, almost overnight, AI started writing essays, drawing pictures and fixing code. That jump is what people mean by generative AI.

Predicting vs generating

A spam filter looks at an email and outputs one of two labels. That is discriminative AI — it chooses between options.

Generative AI produces new content that did not exist before. Ask it for "a polite email asking my HOD for leave on Friday" and it writes a fresh email, word by word. Ask an image model for "a chai stall on a rainy Mumbai street, watercolour style" and it creates a new picture.

It is not copying a stored answer. It has learned the patterns of language (or images) so well that it can produce new examples that follow those patterns.

What generative AI can create

  • Text — explanations, summaries, emails, stories, interview answers (ChatGPT, Gemini, Claude).
  • Code — functions, SQL queries, test cases, bug fixes (GitHub Copilot, Claude Code).
  • Images — illustrations, designs, edited photos (Midjourney, DALL·E, Imagen).
  • Audio and video — voice-overs, music, short clips.

How it learns to generate

A text model is trained on a huge amount of writing with one surprisingly simple task: given the words so far, predict the next word. Do that billions of times across books, articles, code and websites, and the model picks up grammar, facts, writing styles and even some reasoning patterns.

When you type a question, the model predicts a likely next word, adds it, predicts the next one, and keeps going until the answer is complete. The next lesson shows this process in more detail.

Key idea: generative AI produces the most likely-sounding answer based on patterns it learned. Likely-sounding is not the same as correct — which is why checking its output is always your job.

Where it genuinely helps a student

  • Explaining a topic in simpler words when the textbook is too dense.
  • Generating practice questions on a chapter you have just studied.
  • Reviewing your resume or cover letter and suggesting clearer wording.
  • Explaining an error message in your code and suggesting what to check.
  • Turning rough notes into a structured revision sheet.

Where you need to be careful

  • Facts and numbers — it can invent statistics, dates and even references that look real.
  • Recent events — its knowledge stops at its training cut-off unless the tool searches the web.
  • Assignments and exams — submitting AI-written work as your own breaks most colleges’ rules, and you also skip the learning you came for.
  • Private information — do not paste passwords, Aadhaar numbers, or company code you are not allowed to share.

Try it yourself: Ask any AI chatbot to "explain recursion to a 10-year-old" and then to "explain recursion for a technical interview". Notice how the same knowledge comes out differently depending on how you ask. That is the doorway to prompt engineering.

Common interview questions

Try answering each one aloud before you open it.

1What is generative AI?

AI that creates new content — text, images, code or audio — by learning patterns from large amounts of training data, rather than only classifying or predicting a label.

2What is the difference between generative and discriminative models?

A discriminative model learns to separate classes and outputs a label or score (spam / not spam). A generative model learns the patterns of the data itself so it can produce new examples that look like the training data.

3Give one real business use of generative AI.

Customer support teams use it to draft replies that agents review and send, cutting response time while a human still checks accuracy and tone.

Practise this

Build something with it

FAQs

Is generative AI the same as ChatGPT?

ChatGPT is one product that uses generative AI. Gemini, Claude, Copilot, Midjourney and many others are also generative AI tools.

Can I use generative AI for my college assignment?

Check your college’s policy first. Using it to understand a topic is usually fine; submitting its output as your own work usually is not.

References & further reading

Finished this lesson?

Mark it complete. Create a free account to save it on every device.

Next lesson

Search LearnFrenzy

Esc

Quick links