GenAI Course · Module 1 · Session 1

The AI Landscape

⏱ 12 min read🎯 Beginner friendly🖼 3 diagrams🧪 2 live demos🐍 Python code

Welcome to the course! Before writing any code, let us get a clear picture of the whole field. You will hear words like AI, ML, deep learning, NLP, GenAI and agents every day. In this first session, we will see what each one means, how they fit together, and where they are used in real companies.

In this session

  • AI, Machine Learning and Deep Learning: how they nest inside each other
  • NLP: teaching computers to work with human language
  • Generative AI: models that create new content
  • Agentic AI: models that plan and take actions
  • Real use cases across six industries

01AI, Machine Learning and Deep Learning

Artificial Intelligence (AI) is the big umbrella: any computer system that does a task we normally think needs human intelligence, such as understanding speech, recognising faces or making decisions. The term was coined in 1956.

Machine Learning (ML) is a way of building AI where we do not write the rules ourselves. We show the computer many examples, and it learns the rules. Deep Learning (DL) is machine learning with large neural networks of many layers. Generative AI is deep learning that creates new content.

Artificial Intelligencemachines doing tasks that need human-like intelligenceMachine Learninglearns patterns from data instead of hand-written rulesDeep Learningmany-layer neural networksGenerative AIcreates new text, images, code, audioChatGPT · Claude · Gemini · Llama · Stable Diffusion
Each circle sits inside the bigger one: all GenAI is deep learning, all deep learning is machine learning, all machine learning is AI.

Here is the difference between writing rules and learning them, on a tiny fraud example. The rule a human wrote says “fraud if amount > ₹40,000 and new device”. The ML model learned from 12 past transactions instead:

rules_vs_ml.py
from sklearn.linear_model import LogisticRegression

# [amount in ₹ thousands, hour of day, new device? (1 = yes)]  →  1 = fraud
X = [[2, 14, 0], [1, 11, 0], [45, 2, 1], [3, 19, 0], [60, 3, 1], [5, 10, 0],
     [38, 1, 1], [4, 16, 0], [52, 4, 0], [2, 9, 1], [48, 23, 1], [6, 13, 0]]
y = [0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0]

# 1. Traditional programming: a human writes the rule
def rule(amount, hour, new_device):
    return int(amount > 40 and new_device == 1)

# 2. Machine learning: the computer learns the rule from examples
model = LogisticRegression().fit(X, y)

new = [[50, 3, 0], [3, 2, 1]]
for t in new:
    print(t, "rule:", rule(*t), "| ML:", model.predict([t])[0],
          f"(fraud probability {model.predict_proba([t])[0][1]:.2f})")
[50, 3, 0] rule: 0 | ML: 1 (fraud probability 1.00) [3, 2, 1] rule: 0 | ML: 0 (fraud probability 0.00)

The ₹50,000 payment at 3 a.m. from a known device slips past the human rule, but the model flags it, because in the data large night-time payments were fraud even without a new device. That is the core idea of ML: patterns come from data. (Toy data: real fraud models train on millions of transactions.)

YearMilestone
1956The term “Artificial Intelligence” is coined at the Dartmouth workshop
1990s–2000sMachine learning powers spam filters, credit scoring and recommendations
2012Deep learning wins the ImageNet image-recognition contest by a big margin (AlexNet)
2017The Transformer architecture is published (we study it in Module 5)
2022ChatGPT brings generative AI to everyone
2024–26AI agents that use tools and take actions become mainstream

02Natural Language Processing (NLP)

NLP is the part of AI that works with human language: reading, understanding and writing text or speech. Language is hard for computers because the same word can mean different things (“bank” of a river vs a bank account), and people write with typos, slang and mixed languages like Hinglish.

Classic NLP taskExample
ClassificationIs this email a complaint, a query or spam?
Sentiment analysis“Worst app ever” → negative
Named entity recognitionFind names, places, amounts, dates in text
TranslationEnglish → Hindi
Question answering“What is the FD penalty?” → answer from a policy
🧑‍🏫

Like teaching a child to read. First the child learns letters and words (tokenization, Module 2), then what words mean (embeddings), then how sentences flow (sequence models, Module 4), and finally to understand and write whole stories (transformers and LLMs, Modules 5–7).

03Generative AI

Most older AI predicts a label: fraud or not fraud, positive or negative. Generative AI creates something new: a paragraph, an image, a piece of code, a song. Large Language Models (LLMs) like GPT, Claude, Gemini and Llama are generative models for text.

Predictive (traditional) AI• Input → a label or a number• “Is this transaction fraud?” → yes• Trained for one task• Output is easy to checkGenerative AI• Input → new content• “Write a polite reply to this customer”• One model, many tasks• Output needs careful review
Predictive AI chooses from known answers; generative AI writes new ones.

At its heart, an LLM does one simple thing again and again: predict the next word (token). Repeat that thousands of times and you get essays, code and conversations. You will see exactly how in Modules 5–7.

Important: generative models can sound confident and still be wrong (this is called hallucination). Much of this course is about making them reliable: prompting (Module 8), RAG (Module 9) and fine-tuning (Module 10).

04Agentic AI

A chatbot talks. An AI agent acts. An agent is an LLM placed in a loop where it can decide the next step, use tools (search, databases, APIs, a calculator), look at the result and keep going until the job is done.

Goal“refund my failed payment”Thinkplan the next stepActcall a tool / APIObserveread the resultDone?answer or loop again
The agent loop: think → act → observe, repeated until the goal is reached.
Demo · Which kind of AI is this?

05Real-world applications

Here is how NLP, generative AI and agentic AI show up in six industries. Pick an industry:

Demo · AI across industries
Notice the pattern: NLP understands, GenAI creates, agents act. Real products often combine all three.

06Summary

07Quick quiz

1. Which statement is true?

2. What makes machine learning different from normal programming?

3. “Write a product description for this saree.” This is…

4. What does an AI agent add on top of a chatbot?

5. An LLM generates text by repeatedly…

08References

Created by Ajeetkumar