LLMs, GPTs, RAG, Agents and MCP
Generative AI Mastery
Goal, full syllabus, progress tracker and the AI writer instructions.
Your progress
Study hub
Interview and Build Playbook
5-step method, RAG vs fine-tuning, decoder table, production checklist, classic traps.
Part 1: Foundations
20 topicsTokens, embeddings, attention, context window, sampling, hallucinations.
20 topics written
Part 2: Models and Products
20 topicsGPT family, Claude, Gemini, open models, Custom GPTs, APIs, Hugging Face.
20 topics written
Part 3: Prompting and Context
20 topicsPrompt patterns, JSON schema, function calling, injection defence, context engineering.
20 topics written
Part 4: RAG and Vector DBs
20 topicsChunking, vector search, hybrid search, reranking, RAG evaluation.
20 topics written
Part 5: Agents and MCP
20 topicsAgent loop, frameworks, MCP servers, security, multi-agent, coding agents.
20 topics written
Part 6: Evals and Shipping
20 topicsLoRA, evals, guardrails, observability, cost, deployment, GenAI system design.
20 topics written
Tools and Terms Encyclopedia
Models, frameworks, vector DBs, MCP pieces, eval and serving tools.
On this page (15 sections)
- Generative AI at a glance
- How to use this page
- Progress tracker
- Full syllabus
- Part 1 — Foundations: LLMs, Transformers and GPT
- Part 2 — Models, GPTs and AI Products
- Part 3 — Prompting, Context and Structured Output
- Part 4 — RAG, Embeddings and Vector Databases
- Part 5 — Agents, Tool Use and MCP
- Part 6 — Fine-tuning, Evals, Safety and Shipping
- AI Writer Instructions (READ THIS FIRST if you are an AI)
- Rules for wording
- Template — use this for EVERY topic
- Order of work for the AI
- Content preparation status — 22 November 2026
Single source of truth. Everything for learning Generative AI lives on this page and its subpages. If it is not here, it is not part of the plan. Pages marked Coming soon will be filled one by one by an AI that follows the AI Writer Instructions section below.
Generative AI at a glance
| Item | Detail |
|---|---|
| Goal | Understand and build real Generative AI apps, and answer product-company interview questions with confidence |
| Who it is for | A working software engineer (frontend background) who wants to move into GenAI engineering |
| Parts | 6 parts, 20 topics each = 120 topics |
| Style | Like I'm 5 analogy, then full detail in layman words, then interview lens |
| Code examples | JavaScript / TypeScript first (Python only when the ecosystem needs it) |
| Freshness | AI changes every month. Always check model names, prices and limits against official docs before writing them |
How to use this page
- Read the Interview and Build Playbook subpage first. It teaches you how to think and how to answer GenAI questions.
- Study part by part (Part 1 → 6). Each part has 20 topics.
- Use the GenAI Tools and Terms Encyclopedia subpage whenever you meet a tool or word you don't know.
- Tick the progress tracker below as each part is done.
Progress tracker
- Interview and Build Playbook read
- Tools and Terms Encyclopedia skimmed once
- Part 1 · Foundations: LLMs, Transformers and GPT
- Part 2 · Models, GPTs and AI Products
- Part 3 · Prompting, Context and Structured Output
- Part 4 · RAG, Embeddings and Vector Databases
- Part 5 · Agents, Tool Use and MCP
- Part 6 · Fine-tuning, Evals, Safety and Shipping
- Built project 1: chatbot with streaming
- Built project 2: document Q&A with RAG
- Built project 3: agent that uses an MCP server
Full syllabus
The course has 6 parts. Each part has 20 topics.
| Part | Topics | In simple words |
|---|---|---|
| 1. Foundations: LLMs, Transformers and GPT | 20 | How the brain of ChatGPT really works |
| 2. Models, GPTs and AI Products | 20 | Which model and which product to pick, and how Custom GPTs work |
| 3. Prompting, Context and Structured Output | 20 | How to talk to the model so it does what you want |
| 4. RAG, Embeddings and Vector Databases | 20 | How to let the model read your own documents |
| 5. Agents, Tool Use and MCP | 20 | How to let the model take actions using tools |
| 6. Fine-tuning, Evals, Safety and Shipping | 20 | How to improve, test, secure and launch it |
Part 1 — Foundations: LLMs, Transformers and GPT
Covers: what Generative AI is · neural network basics · how an LLM predicts the next word · tokens · embeddings · Transformer and attention · context window · pre-training and RLHF · model size and scaling · GPT vs BERT vs T5 · temperature, top-p, top-k · hallucinations · Mixture of Experts · KV cache and latency · quantization · reasoning models · multimodal · diffusion · limits and bias.
Part 2 — Models, GPTs and AI Products
Covers: GPT family timeline · ChatGPT vs API · Claude, Gemini, Llama, Mistral, DeepSeek, Qwen · open vs closed models · choosing a model · Custom GPTs, Actions, GPT Store · Claude Projects and Artifacts · Gemini Gems and NotebookLM · API basics, roles and streaming · Bedrock, Azure OpenAI, Vertex AI · local models (Ollama) · Hugging Face · speech, image and video AI · AI coding tools.
Part 3 — Prompting, Context and Structured Output
Covers: prompt anatomy · system vs user prompts · zero/one/few-shot · chain-of-thought · prompt patterns · structured output and JSON schema · function calling · prompt chaining and routing · reflection · prompt injection and defence · context engineering · long-context handling · prompt caching · memory · prompt versioning and testing · meta-prompting.
Part 4 — RAG, Embeddings and Vector Databases
Covers: why RAG · full RAG pipeline · embeddings and similarity · vector databases and ANN indexes · chunking · parsing documents · metadata filters · retrieval and MMR · hybrid search · reranking · query rewriting and HyDE · citations · advanced, agentic and graph RAG · RAG evaluation · freshness · security · scaling · debugging.
Part 5 — Agents, Tool Use and MCP
Covers: what an agent is · the agent loop · tool use · planning (ReAct) · agent memory · workflows vs agents · multi-agent systems · frameworks (LangGraph, OpenAI Agents SDK, Claude Agent SDK, Vercel AI SDK) · MCP: what, architecture, tools/resources/prompts, transports, building a server, using servers, auth and security · A2A and other standards · computer use · human in the loop · reliability · coding agents, skills and plugins.
Part 6 — Fine-tuning, Evals, Safety and Shipping
Covers: prompting vs RAG vs fine-tuning · LoRA and QLoRA · datasets · distillation · RLHF and DPO · evals and golden sets · LLM-as-a-judge · benchmarks · guardrails · safety, bias, privacy · responsible AI and regulation · observability · cost control · latency · deployment · serving open models (vLLM) · retries and fallbacks · testing LLM apps · GenAI system design interviews.
AI Writer Instructions (READ THIS FIRST if you are an AI)
You are writing study notes for Faizan, a frontend software engineer in India who is moving into Generative AI engineering and preparing for product-company interviews. These notes must be so simple that a 10th-grade student with zero AI knowledge could read them and understand. Your job: replace each Coming soon block in the part subpages with finished notes, following the rules and template below exactly.
Rules for wording
- Reading level: Grade 10. Short sentences (under 20 words). One idea per sentence. Simple everyday words.
- No unexplained jargon. The first time any technical word or acronym appears, explain it in brackets in plain words. Example: "token (a small piece of a word that the model reads)".
- Analogies from daily Indian life are preferred: chai tapri, kirana shops, trains, tiffin service, bank queues, school classroom, cricket. Keep analogies accurate — never let an analogy teach something false.
- Simple, but not shallow. The full explanation must cover what an interviewer or a real project would need: how it works, limits, trade-offs, when to use it and when not to.
- Always think like the interview and the real project. Every topic ends with how it is asked in interviews and what goes wrong in production.
- Comparisons in tables. Whenever two or more things look similar (RAG vs fine-tuning, tools vs resources in MCP, LangChain vs LangGraph), add a comparison table.
- Only useful numbers (context sizes, rough costs, typical chunk sizes). Mark any number that changes fast with "(check current docs)".
- Be accurate and current. This field changes monthly. Check model names, API names, prices and protocol versions against official documentation. If something was renamed or deprecated, use the new name and mention the old one once. Never invent a model name, version or benchmark.
- Code: short, runnable, JavaScript or TypeScript first, descriptive variable names, under 25 lines. Use Python only if the tool has no JS option. Explain the code line by line in plain words.
- Format for skimming: headings, bullets, bold keywords, callouts. No long paragraphs (max 4 lines). Headings are only for sections (heading 2) and topic names (heading 3). Section labels are always plain text lines, never headings. Use the full label names from the template.
- Do not delete other content. Replace only the Coming soon callout you are filling. Then tick that part in the Progress tracker on the main page when all 20 topics are done.
Template — use this for EVERY topic
### <Topic name>
LIKE I'M 5 (the analogy)
2–4 sentences. One everyday analogy that captures the core idea.
EXPLAINED SIMPLY (full detail, layman words)
- What it is
- Why it exists / what problem it solves
- How it works, step by step
- Key features and options (each explained in plain words)
- Limits, costs and numbers that matter
- When to use it — and when NOT to use it
TRY IT (short JavaScript / TypeScript example, only when it helps)
Code block + line-by-line plain explanation.
JARGON BOX
Word → plain meaning (for every new technical word used above)
COMPARE WITH LOOKALIKES
Table: A vs B vs C → use when / cost / speed / effort.
INTERVIEW LENS
- "If the interviewer says ___ → answer with ___" (3–6 lines)
- The model answer in 3 sentences
TRAPS
Common wrong beliefs and production mistakes, and why they are wrong.
PRACTICE QUESTION
One realistic interview or design question.
Model answer + what a weak answer looks like.
ONE-LINE RECAP
The whole topic in one sentence.
Order of work for the AI
- Fill Part 1 → Part 6, topic by topic, in the order listed on each part page. Do 20 topics per run.
- Cross-link tools and terms to the GenAI Tools and Terms Encyclopedia subpage instead of re-explaining from zero.
- After a part is done, add a Part cheat sheet at the bottom of that page: 10–15 "if asked X → say Y" lines.
- Keep the tone friendly and encouraging. The goal is one thing: Faizan understands it deeply and can build it and explain it.
-
Interview and Build Playbook — how to think and answer GenAI questions
-
GenAI Tools and Terms Encyclopedia — every tool and word, simply explained
Content preparation status — 22 November 2026
All 120 topic notes have been added. Parts 1–6 now contain detailed study notes for topics 1–20, and each part has an interview cheat sheet. The former “Coming soon” placeholders have been removed from all six part pages.
Important: This means the study material is prepared, not that the topics have been studied or mastered. The learning progress tracker above remains unchecked until Faizan completes the learning and practice.
- Part 1 — Foundations: 20/20 notes added
- Part 2 — Models, GPTs and AI Products: 20/20 notes added
- Part 3 — Prompting, Context and Structured Output: 20/20 notes added
- Part 4 — RAG, Embeddings and Vector Databases: 20/20 notes added
- Part 5 — Agents, Tool Use and MCP: 20/20 notes added
- Part 6 — Fine-tuning, Evals, Safety and Shipping: 20/20 notes added