Courses
AI & Data ScienceFree

Generative AI Essentials

Forty deep lessons from generative foundations to a production GenAI spec — mechanics, models, reliability, cost, applied pipelines, safety and compliance

10 modules40 lessons12 hr 30 minIntermediate
Intermediate
40 lessons in 10 modules
12h 30m of material
40 challenges
English audio
English captions
Certificate on completion

What you'll get

  • Verifiable certificate

  • XP on the leaderboard

Your certificate

TTieEduCertificate of Completionawarded toyour nameGenerative AI EssentialsProfessional Tier

Preview of the certificate this course issues. Yours will carry your name, score and a verifiable serial — signed, not editable.

What you will build

Spec a production GenAI use case

Write a one-pager plus appendix that takes one real GenAI use case — yours — from problem to rollout. The one-pager: the problem with its measured status quo (how the work happens today, at what cost, failing how often); the success metric with baseline, target, guardrail gates and counter-metrics; the chosen model with a three-option comparison table scored on your own ten-item golden set; and the explicit out-of-scope. The appendix: (1) the prompt architecture — layered system contract, context packing, output schema — with guardrails placed by position, reason codes and fail paths; (2) the golden eval set: ten scoreable items covering the failure modes, with the safety items marked as binary gates; (3) the cost model at 1,000 and 10,000 daily uses, with assumptions visible, levers applied and cost per successful task; (4) the top-five failure register: failure, impact × likelihood, mitigation, and a detection signal with threshold and owner for every entry; (5) the phased rollout: entry gates, dashboards, a rehearsed rollback and named owners; and (6) the currency plan: which sources you watch, at what cadence, and the eval-first rule that decides when to migrate models. The claim you are defending is not that GenAI can do this — it is that you know when it fails, how you would see it, and what you would do next.

You will submit: Public link (anyone-with-link view) to a document or repository, or a PDF attached to your submission — the one-pager plus appendix.

Generative vs Discriminative: Two Ways a Model Uses Data

The distinction that defines the field: models that learn decision boundaries versus models that learn the shape of the data itself — and why modern LLMs blur the line.

What you will learn
  • Define generative and discriminative models in terms of the probability each one estimates
  • Classify six real AI products as generative or discriminative and justify each from its training objective
  • Explain why a generative model can still be used for classification, and give the reverse counter-example
  • Choose generative vs discriminative for three given business problems and defend the choice

Two apps sit on the same phone. One tags your photos: "beach, dog, dinner" — it never invents a pixel, it only labels. The other, in the same minute, invents a photograph of a dog on a beach that never existed. Both are "AI", both were trained on images, but they were trained for fundamentally different mathematical jobs. That split — discriminative vs generative — is the fault line of the entire field, and every model you will meet in this course lives on one side of it.

Two different questions about data. A discriminative model learns P(label | input): given an image, how should I score each class? Its job is a boundary between classes. Logistic regression, SVMs, BERT-style classifiers, and the "is this spam?" layer in your email client are discriminative. A generative model learns P(input) (or P(input, label)): what does the data itself look like? How likely is this particular image, this sentence, this row? Because it models the whole distribution, it can sample — produce new data that never existed — and also answer questions like "how strange is this point?" (low probability = anomaly). Naive Bayes, Gaussian mixtures, GANs, VAEs, diffusion models, and every LLM are generative.

What each one buys you. Discriminative models go straight at the decision you care about; with labelled data they usually win on accuracy per unit of effort, because they spend all their capacity on the boundary. They cannot, by themselves, write a poem. Generative models spend capacity modelling everything about the data — including variation you may not care about — which is the price of being able to create, impute missing values, and detect anomalies. Generative models can also classify via Bayes' rule: if you know P(x | class) and P(class), you can compute P(class | x). The classic example is naive Bayes email filtering: count word frequencies per class, multiply, normalise — a generative model doing a discriminative job.

The modern blur, and how to classify honestly. Ask not "how is it used?" but "what objective was it trained on?" An LLM trained on next-token prediction over raw text is generative — even when you prompt it with "reply only SPAM or HAM", it generates the label as a token sequence rather than scoring classes internally. Reverse case: a semantic-search system that embeds documents and thresholds cosine similarity is doing discriminative-style separation with no generation involved. And a image classifier can be bolted onto a generative pipeline (detect, then regenerate) without changing what either model is. So the practical rule: classify by the training objective, not by the user-facing trick.

Why the generative half exploded. Discriminative deep learning peaked quietly in the 2010s (ImageNet, ad ranking, spam). The 2020s wave came from the generative side getting good enough at scale — transformers scaling next-token prediction to fluent text, diffusion scaling image synthesis to photorealism — so that sampling from P(data) now produces artifacts people actually want: essays, code, faces, music, voice. That is what "Generative AI" names: not a new mathematics of probability, but the point where modelling P(data) became useful enough to build products on. Every remaining lesson in this course is an elaboration of one of those two sentences: what the model estimates, and what it can do because of it.

Generative vs discriminative: the working distinction
AspectDiscriminativeGenerative
LearnsP(label | x) — the decision boundaryP(x) or P(x, label) — the shape of the data
Can sample new data?NoYes — that is the point
Classic examplesLogistic regression, SVM, BERT classifierNaive Bayes, GAN, VAE, diffusion, LLM
Typical modern productPhoto tagging, spam filter, fraud scoreChatGPT, Midjourney, Suno, Copilot
Typical strengthAccuracy on a fixed label setCreation, anomaly scoring, flexibility across tasks
Typical weaknessCannot create; needs labelsSpends capacity on detail you may not need; can hallucinate
The one-question classifier

When someone says "we built an AI that does X", ask: was it trained to score labels, or trained to reproduce data? The answer predicts its failure modes before you see a single demo.

Generative does not mean truthful

A generative model optimises likelihood, not correctness. Fluency is a property of P(text); truth is a property of the world. Confusing the two is the root of hallucination (covered in depth in Part II).

Classify four systems — then watch a generative model do a discriminative job
Classify each as generative or discriminative: (a) a visa-application fraud scorer, (b) ChatGPT drafting an email, (c) a news-topic tagger, (d) an embedding model flagging near-duplicate support tickets by cosine > 0.92. Then hand-compute how a *generative* naive-Bayes tagger scores one ticket.
  1. 1

    Step 1 — classify by objective

    (a) discriminative: trained on labelled fraud/not-fraud rows to score P(fraud | features). (b) generative: trained on next-token likelihood over text, sampled to produce new text. (c) discriminative: P(topic | headline). (d) borderline but treat as discriminative separation — it scores similarity against a threshold, never samples a new ticket.

  2. 2

    Step 2 — set up the toy naive-Bayes model

    Two classes, refund requests (R) and delivery questions (D). Training counts: P(R)=0.5, P(D)=0.5. Word likelihoods: P("refund"|R)=0.40, P("money"|R)=0.30, P("refund"|D)=0.05, P("money"|D)=0.05.

    P(R)=0.5  P(D)=0.5
    P(refund|R)=0.40  P(money|R)=0.30
    P(refund|D)=0.05  P(money|D)=0.05
  3. 3

    Step 3 — multiply likelihoods (naive independence)

    Ticket text = "refund money". Score(R) = 0.5 × 0.40 × 0.30 = 0.060. Score(D) = 0.5 × 0.05 × 0.05 = 0.00125.

    Score(R) = 0.5 * 0.40 * 0.30 = 0.060
    Score(D) = 0.5 * 0.05 * 0.05 = 0.00125
  4. 4

    Step 4 — normalise to a posterior

    Total = 0.06125. P(R | text) = 0.060 / 0.06125 ≈ 0.9796, P(D | text) ≈ 0.0204. A *generative* model (it modelled P(words | class)) produced a confident discriminative answer — same output shape, different internal job.

    P(R|text) = 0.060 / 0.06125 = 0.98   P(D|text) = 0.02

Solution

Four labels: discriminative, generative, discriminative, discriminative-by-similarity. The naive-Bayes walk-through scores 0.98 for the refund class — proving generation and classification are jobs, not mutually exclusive model species. Classify models by objective; predict behaviour from that.

Audit your own AI stack

List six AI features you used this week (photo tags, autocomplete, chat, transcription, recommendation feed, fraud alert). For each, write one sentence naming the objective you believe it was trained on, and one prediction about how it fails. Then find the one case where you are genuinely unsure — and say what evidence (docs, model card, demo behaviour) would settle it.

Hint: If the system only ever outputs a decision about your input, it is probably discriminative. If it can surprise you with something new, it is generative.

Common mistakes
  • Calling any tool that "uses AI" generative because it is new

    Most production AI remains discriminative (ranking, scoring, tagging). "Generative" names a training objective — P(data) — not novelty or neural-network depth.

  • Believing an LLM doing classification is a discriminative model

    It generates the label as text from a next-token distribution. The objective never changed; you rephrased the task into its generative format.

  • Assuming generative models are automatically better at decisions

    For a fixed label set with good labels, a discriminative model is usually more accurate, cheaper and more debuggable. Generality is bought with capacity you may not need.

  • Equating likelihood with correctness

    A generative model reports how *text-like* something is, not whether it is true. High P(x) means familiar, not verified — the seed of every hallucination story.

Exam / interview angle

Differentiate generative from discriminative models. Give one example of each in a modern product, and explain why an LLM prompt "classify this as SPAM or HAM" does not make the LLM a discriminative model.

A discriminative model estimates P(label | x): it learns the boundary between classes and is typically tuned for decision accuracy (e.g. an email spam scorer trained on labelled mail). A generative model estimates P(x) or P(x, label): it learns how the data itself is distributed, which lets it sample new instances and also, via Bayes, classify (e.g. ChatGPT generating text; or naive Bayes classifying from word likelihoods). Prompting an LLM to output SPAM/HAM changes the *task presentation*, not the training objective: the model still scores the next token from its learned text distribution and samples a label string. It never learned class-conditional boundaries; it learned text continuation and is being used as a classifier through prompting — which works, but inherits generative failure modes (fluency without calibration, sensitivity to phrasing).

Source: Standard ML interview screen; also a common MLOps/GenAI product-design discussion question.

Lesson summary
  • Discriminative models learn P(label | x) — a boundary; generative models learn P(x) — the shape of the data, and can sample.
  • Generative models can classify (Bayes), but discriminative models cannot generate — that asymmetry is the whole difference.
  • Classify by training objective, not by how the product is used: prompting an LLM to label text does not make it discriminative.
  • The Generative AI wave = P(data) modelling scaled (transformers + diffusion) until sampling produced useful artifacts.
  • Likelihood is not truth: generative models measure text-likeness, which is why hallucination is possible at all.

What you will be able to do

  • Distinguish generative from discriminative models and explain how the transformer plus foundation-model pretraining powers every modality
  • Trace the full sampling pipeline — logits, temperature, top-k/top-p — and the serving controls that steer and cut generation
  • Choose between open and closed weights, and between small and frontier models, using hard filters, a weighted rubric and a sensitivity check
  • Design image, audio and video pipelines including structured output contracts, with honest limits on each modality
  • Explain post-training — SFT, RLHF, DPO — and the alignment tax, red-teaming and training-cost realities as of 2026
  • Diagnose hallucination from the objective and apply grounding, structured-output contracts, guardrails and golden-set evals
  • Estimate and control token cost with batching, caching, routing and a quality-per-rupee framing
  • Ship applied pipelines: summarisation with number preservation, schema-bound extraction, classification decisions and codegen with tests as the oracle
  • Apply memorisation controls, the four-question copyright frame and the DPDP / EU AI Act obligation map to a real feature
  • Write an end-to-end GenAI spec — problem, metric, model, prompts, guardrails, eval, cost, failures, rollout — and maintain a currency system to keep it true

About this course

Ten modules, forty lessons, each lesson the same nine-step shape (objective, hook, concept, worked example, practice, common mistakes, exam/interview angle, quiz, summary) — so the rhythm never changes and the depth does.

Module 1 sets the landscape: what "generative" means as a technical distinction, the GAN-to-VAE-to-diffusion lineage, the transformer as the single architecture underneath, foundation models and what "multimodal" actually claims. Module 2 goes inside the machine: BPE tokenization from merge tables, embeddings as geometry, the sampling pipeline from logits to the chosen token, and the serving controls — system prompts, stop sequences, streaming, the KV cache — that decide cost and latency. Module 3 is the selection problem: open versus closed weights and what "open" really buys, when a 7B model beats a frontier call, context windows and their tradeoffs, and a weighted rubric with a sensitivity check.

Module 4 covers the other modalities — diffusion mechanics and prompting, speech pipelines, video and structured output. Module 5 is training and alignment: SFT, RLHF, DPO, red-teaming and the alignment tax. Module 6 is reliability: why hallucination happens from the objective, grounding, structured-output contracts, guardrails and evals. Module 7 is cost: token arithmetic, batching and caching, routing and latency, quality-per-rupee. Module 8 applies all of it — summarization with number preservation, extraction with schemas, classification decisions, code generation with tests as the oracle. Module 9 is safety, IP and compliance — memorisation, copyright, data governance, DPDP and the EU AI Act. Module 10 is the capstone and the frontiers: framing the spec, building the golden eval set, the cost model and failure register, rollout, and how to stay current without chasing announcements.

The through-line is arithmetic and falsifiability: every claim in this course is something you can check, cost or refute on your own data — and the exam, the quizzes and the capstone all test exactly that.

Who this course is for

  • Students and working engineers who took a basics GenAI course and want the engineering depth underneath the demos
  • Product, ops and support people who must specify, evaluate or govern a GenAI feature
  • Placement and interview prep for AI/LLM rounds — the exam bank mirrors the questions those rounds ask
  • Anyone evaluating model vendors, writing prompts at work, or being asked "should we use AI for this?"

What you should know before you start

Anything here is assumed, not taught. If it is not on the list, the course explains it.

  • Basic AI literacy — you know what an LLM is and have used a chat assistant (any intro course, including a basics GenAI course, covers this)
  • No coding required: Python snippets appear as read-only worked examples you are meant to follow, not type
  • A notebook or doc for the capstone spec (the project is written, not coded)
  • Comfort with short technical prose and light arithmetic (token and cost estimates)

Questions before you start

How much time does Generative AI Essentials take?

The course is 10 modules and 40 lessons — about 12 hr 30 min of material in total. Lessons unlock in order, so the time it takes you depends on how much of each lesson you actually read.

Do I get a certificate?

Yes. Finish every lesson and a certificate is issued automatically. Its serial is public: anyone can check it at https://tieedu.com/verify without an account, and a revoked certificate stops verifying.

Is it really free?

Yes — this course is free, and there is nothing to buy to start it.

How is my progress tracked?

On the server, lesson by lesson. Time is credited at real-time speed and capped, so a lesson cannot be marked complete faster than it can be read. That is why the percentage survives a new device.

How do ratings work?

Only learners who finished the course can rate it, and the average shown is calculated from those ratings alone. A course nobody has finished yet carries no rating rather than a default one.

See all

Prompt Engineering Masterclass

Intermediate · AI & Data Science

From first principles to production: structure, few-shot teaching, reasoning, structured outputs, code, long context, agents, evaluation and a prompt pack you can defend

10 modules40 lessons10 hr 31 min
FreeNew

AI Literacy for Everyone

Beginner · AI & Data Science

From "what is AI" to a toolkit you actually run — how the models work, how to prompt them, how to verify what comes back, and how to keep your name on work you can defend

10 modules40 lessons10 hr 31 min
FreeNew

Building Apps with LLMs

Intermediate · AI & Data Science

Architecture, API engineering, UX, context, tools, extraction, evaluation, safety and cost — forty lessons to shipping an LLM feature that survives production

10 modules40 lessons11 hr
FreeNew

Generative AI for Students

Beginner · Artificial Intelligence

LLM fundamentals, prompting, RAG and applied workflows — the AI literacy every placement and product role expects

4 modules8 lessons1 hr 25 min
New

Free · lifetime access

Candidate Verified

Real interview questions verified by candidates placed at top tech firms.

View-Only PDF Security

Watermarked licensed PDFs, server-side unlock checks — no raw download paths.

Honest, Server-Driven

Pricing, coupons and unlocks are verified by the backend — no bypasses.

TieEdu — Learn, Evolve, Develop

© 2026 TieEdu Technologies. All rights reserved.

Built for placement season within India

Visitors who arrive through an email link are remembered with a first-party cookie so we can see which pages that mail led them to — never the other way round, never on login or admin pages, and never for anonymous visitors. Every email carries a one-click unsubscribe that stops both mailings and tracking.