Free course · Networkers Home Fundamentals
Generative AI Fundamentals
This free generative AI course teaches how models learn from data and generate text, images, audio and video. Across 25 chapters, you will study GANs, VAEs, diffusion models and transformers, then learn how prompting, retrieval, fine-tuning and evaluation fit into LLM applications.
What is generative AI? It is a branch of AI that learns patterns from training data and uses those patterns to produce new outputs, such as text or images. This generative AI tutorial explains how generative models differ from models designed to classify inputs or predict labels. It then traces how different architectures produce outputs, why LLMs break text into tokens and how retrieval can give a model access to information beyond its training data.
This course is designed for engineering students and IT professionals in India who want a structured introduction to generative AI. If you are new to the subject, use the chapter order as a generative AI roadmap: start with model fundamentals, then study transformers and LLMs before moving to prompting, RAG and fine-tuning. If you already work with LLMs, start with the topic you need and return to earlier chapters when you encounter an unfamiliar concept.
Start with chapter 1 →
- 25chapters
- 9modules
- 7beginner chapters
- 14intermediate chapters
- 4advanced chapters
Generative AI roadmap: the 9 modules
Foundations
Define generative AI, compare generative and discriminative models, identify major model families and distinguish pretraining from inference.
-
What Is Generative AI? Definition, Examples and How It Works What is generative AI? Learn how models create text, code, images, audio and video, and follow a worked Python example of next-token generation.
-
Generative vs Discriminative Models and How GenAI Differs from Traditional ML Compare generative vs discriminative models, calculate a spam probability by hand, and see how generative AI differs from traditional machine learning.
-
Types of Generative AI Models: LLMs, GANs, VAEs, Diffusion and Foundation Models Compare types of generative AI models, including LLMs, GANs, VAEs and diffusion models, and see how foundation models support real applications.
-
How Generative AI Works: Data, Pretraining, Training vs Inference How does generative AI work? Learn how data and pretraining shape a model, how training differs from inference, and how next-token prediction works.
Generative Models
Compare GANs, variational autoencoders and diffusion models through adversarial training, latent representations, the evidence lower bound and reverse denoising.
-
GANs Explained: Generator, Discriminator and Adversarial Training Learn how generative adversarial networks work: generator and discriminator roles, adversarial losses, training failures and a PyTorch example.
-
Variational Autoencoders (VAE): Latent Space, Encoder, Decoder and ELBO Learn how a VAE (variational autoencoder) encodes data as distributions, optimises the ELBO, and generates new samples. Build one in PyTorch.
-
Diffusion Models Explained: Forward Noise, Reverse Denoising and Stable Diffusion Learn how diffusion models add noise, train a denoiser, and generate samples. Follow a worked example and see how Stable Diffusion uses latents.
Transformers and Attention
Study transformer encoders and decoders, query, key and value vectors, scaled dot-product attention, multi-head attention and positional encoding.
-
Transformer Architecture Explained: Encoder, Decoder and Why It Powers GenAI Learn transformer architecture through encoder and decoder diagrams, a worked causal attention example, and a runnable PyTorch next-token model.
-
Attention Mechanism: Query, Key, Value and Scaled Dot-Product Attention Learn how the attention mechanism uses query, key and value vectors, softmax and causal masks, with a worked example and runnable PyTorch code.
-
Multi-Head Attention and Positional Encoding in Transformers Learn multi head attention and positional encoding in Transformers with tensor shapes, a worked numeric example, RoPE comparisons, and PyTorch code.
Large Language Models
Learn how LLMs generate text and how tokenization, embeddings, context windows and sampling settings affect outputs and token costs.
-
Large Language Models (LLMs): What an LLM Is and How It Works Learn how large language models work, from next-token pretraining and LLM parameters to text generation. Follow a worked example and run an LLM in Python.
-
Tokenization and Tokens in LLMs: BPE, Token IDs and Costs Learn how tokenization splits text into tokens in LLMs, how BPE and token IDs work, and how to count tokens, plan context budgets, and estimate API costs.
-
Embeddings Explained: Word, Sentence and Vector Embeddings Learn how embeddings represent words, sentences and documents, how cosine similarity ranks vectors, and how to build semantic search in Python.
-
Context Window, Temperature, Top-k and Top-p: LLM Generation Parameters Learn how the context window limits what an LLM can see, and how temperature, top-k, top-p and output token caps shape generation. Includes Python.
Prompt Engineering
Write structured prompts and compare zero-shot, few-shot and chain-of-thought techniques to see how instructions and examples shape responses.
-
Prompt Engineering: Techniques, Structured Prompts and Best Practices Learn prompt engineering techniques, write structured prompts, test zero-shot and few-shot examples, and validate JSON output in a Python application.
-
Zero-Shot, Few-Shot and Chain-of-Thought Prompting with Examples Learn zero shot prompting, one shot, few shot and chain of thought prompting with sentiment examples, train speed calculations and a Python test.
RAG and Vector Search
Trace retrieval-augmented generation from chunking and embedding to vector search and re-ranking, with examples of HNSW, IVF and FAISS.
-
What Is RAG in AI? Retrieval-Augmented Generation Explained What is RAG in AI? Learn how retrieval augmented generation finds evidence, builds prompts, and supports grounded answers with a worked Python example.
-
Vector Databases: How Similarity Search Works (HNSW, IVF, FAISS) Learn how a vector database ranks embeddings with cosine similarity, how HNSW and IVF speed up search, and how to measure recall with FAISS in Python.
-
RAG Architecture: Chunking, Embedding, Retrieval and Re-ranking Learn RAG architecture from document chunking and embeddings to vector search, re-ranking, prompt assembly and evaluation with a Python example.
Fine-Tuning
Compare full fine-tuning with parameter-efficient methods such as LoRA and QLoRA, and decide when retrieval is a better fit.
-
Fine-Tuning LLMs: Full Fine-Tuning, LoRA, QLoRA and PEFT Learn how fine tuning adapts LLMs. Compare full training, LoRA, QLoRA and PEFT, calculate adapter size, and train a QLoRA adapter in Python.
-
RAG vs Fine-Tuning: Which One to Use and When Compare RAG vs fine tuning for changing knowledge, citations, and task behaviour. Use a worked example to choose and evaluate the right approach.
Agents, Multimodal and Safety
Examine how agents use tools and memory, how models handle multiple media types and how to evaluate outputs for hallucinations and other failures.
-
AI Agents and Agentic AI: LLM + Tools + Memory, Function Calling Learn how AI agents use LLMs, tools, and memory. Build a Python function calling loop, trace a travel planning example, and test where agents fail.
-
Multimodal AI: Text, Image, Audio and Video Generation Learn how multimodal AI reads and generates text, images, audio and video, how models fuse inputs, and how to run a vision-language model in Python.
-
LLM Hallucination, Evaluation and Safety: Where GenAI Fails Learn why LLM hallucination happens, how RAG and agents fail, and how to measure grounded answers, test tool use, and design safer AI systems.
Interview Preparation
Review common generative AI interview questions and use the cheat sheet to practise explaining core concepts in your own words.
Generative AI course: questions students ask
Is this generative AI course free?
Yes. You can read all 25 chapters of Generative AI Fundamentals for free. The course starts with model fundamentals and covers transformers, LLMs, prompt engineering, RAG, fine-tuning, agents and evaluation. If you choose to experiment with a commercial model API alongside the course, check that provider's pricing separately.
What are the prerequisites for this course?
You do not need prior experience with generative AI to start. Familiarity with basic programming concepts will help when you read about tokenization, embeddings and tool calling. Basic probability and linear algebra will make the chapters on attention and variational autoencoders easier to follow, but you can learn the intuition first and revisit the maths later.
How long does the generative AI course take?
The course has 25 chapters, and the time you need depends on your background and how much you practise. At five chapters per week, a first reading takes about five weeks. Allow extra time if you want to work through the maths behind attention or test prompts and retrieval on your own examples.
Do I need Python to learn generative AI in this course?
No. You can read the chapters and learn how the models work without writing Python. Python is useful if you want to turn the concepts into a project, such as counting tokens, calling a model API or searching a set of document embeddings. You can also try the prompting examples in a chat interface without coding.
What should I build after completing the course?
Build a small question-answering assistant for a set of class notes or public documentation. Start with a prompt-only baseline, then add retrieval so the model can answer using relevant passages. Compare both versions on the same test questions, including some the documents cannot answer. Check whether each answer is supported and whether the assistant admits when evidence is missing.