1. What is AI?

AI (Artificial Intelligence) is technology that allows machines to mimic human intelligence.

AI can:

Example


2. Rule-Based Systems vs AI

Feature Rule-Based System AI System
Working Style Fixed rules Learns from data
Flexibility Low High
Learning Ability No Yes
Adaptability Cannot improve Improves over time
Example Calculator ChatGPT

Simple Understanding


3. Relationship Between AI, ML, DL, and LLMs

AI
└── Machine Learning
    └── Deep Learning
        └── LLMs
Term Meaning
AI Making machines intelligent
Machine Learning AI that learns from data
Deep Learning ML using neural networks
LLMs Large language AI models

4. What is an LLM?

LLM (Large Language Model) is an AI model trained on massive text data to understand and generate human language.

Examples

What LLMs Can Do


5. What is a Token?

A token is a small piece of text processed by an LLM.

Example

Sentence:

"ChatGPT is amazing"

Possible tokens:

["Chat", "G", "PT", " is", " amazing"]

Important

LLMs read and generate tokens, not full sentences.


6. What Does "LLMs Predict Next Tokens" Mean?

LLMs work by predicting the most likely next token based on previous tokens.

Example

Input:

"The sky is"

Prediction:

" blue"

Then it continues:

"The sky is blue today."

One token at a time.


7. How Do LLMs Predict Tokens?

Step-by-Step Process

Step What Happens
1 LLM reads huge text data
2 Learns language patterns
3 Calculates probabilities
4 Predicts the next token

Example

Input:

"I drink coffee in the"

Possible predictions:

LLM chooses the most probable token.


8. What is Prompting?

Prompting means giving instructions or input to an AI.

Example Prompt

"Explain AI like I am 10 years old."

The instruction itself is called a prompt.


9. What Makes a Good Engineered Prompt?

Good Prompt Formula

Role + Context + Task + Output Format

Bad Prompt

"Tell me about AI"

Better Prompt

"Explain AI in simple language with examples for beginners."

Characteristics of Good Prompts

Good Prompt Should Be Why
Clear Avoid confusion
Specific Better output
Structured Organized response
Context-rich More accurate answers

10. Prompt Engineering vs Context Engineering

Prompt Engineering Context Engineering
Writing better prompts Managing full AI context
Focus on instructions Focus on memory + tools + history
Mostly single interaction Full system design
Input optimization Information optimization

Simple Understanding


11. What is Zero-shot Prompting?

Giving a task without examples.

Example

"Translate this sentence into French."

No sample examples are given.


12. What is Few-shot Prompting?

Giving a few examples before asking the task.

Example

Dog → Animal
Rose → Flower
Carrot → ?

The AI learns the pattern from examples.


13. What is Chain of Thought (CoT) Prompting?

Asking AI to think step by step before answering.

Example

"Solve this problem step by step."

Why It Helps


14. What is Meta Prompting?

Using AI to create or improve prompts.

Example

"Create a better prompt for learning Python."

AI helps design prompts for other AI tasks.


15. What is Agentic AI?

Agentic AI is AI that can:

Example Tasks


16. ChatGPT/Gemini vs Agentic AI

ChatGPT/Gemini Agentic AI
Responds to prompts Works toward goals
Mostly conversational Action-oriented
Limited autonomy Can plan and act
Usually single-step Multi-step workflows
Answers questions Completes tasks

Example

System Behavior
ChatGPT "Here is how to book tickets."
Agentic AI Searches flights → compares prices → books tickets