Study interactive :: Progress tools open in the Study Hub reader.

All lessons in this module

Next lesson. Generative AI & Modern LLM Applications

Module 25: Generative AI & Modern LLM Applications

Build LLM demos with prompt engineering, vector search, RAG, and agents only after eval. Do Days 1–6 (prompts, retrieval, faithfulness checks, guardrails) before tool-using agent loops. Treat demos as demos until you add retrieval eval, faithfulness checks, and monitoring. Prefer staging language before any live side-effect tools.

How this module fits: Stage 7 in the main README. Best after Module 12 (NLP) or alongside it if you learn by building. This folder is a hub: generative-ai-llms.md holds the Day 1-7 spine. Depth lives in resources/generative_ai_comprehensive_guide.md, resources/rag_comprehensive_guide.md, and the guides below.

Day 1-7 study spine (ordered)

Work these in order. Details and depth links are in generative-ai-llms.md.

Day Focus
1 Prompts + structured outputs (schema over “please JSON”)
2 Embeddings + vector store basics
3 Hybrid RAG (BM25 + vector + rerank pointer) + faithfulness / retrieval eval (not BLEU)
4 Context engineering + prompt caching / cost
5 PEFT decision: Prompt, then RAG, then LoRA / QLoRA (NLP PEFT, fine-tuning guide)
6 Guardrails + prompt injection before side-effect tools. MCP overview + permissions (agents guide)
7 Agents after eval only. Tool-using loops come after Days 1–6 retrieval/faithfulness checks. Short reasoning-model note (when costly thinking APIs help).

Agents-after-eval rule: Do not start Day 7 agent demos until you have a tiny retrieval/faithfulness eval from Day 3 and basic guardrails from Day 6. Sandbox tools first. Gate any write side effects.

Check yourself

Wrong idea: “BLEU on chatbot replies proves the RAG works.”
Better: score retrieval hit-rate and faithfulness on a fixed question set with known sources.
Try this: write five questions with expected document IDs. Measure how often retrieval returns them before you tune prompts.

After the spine: Staging checklist in resources/genai_production_deployment.md.

What You'll Learn

Topics Covered

1. Prompt Engineering

2. Vector Databases

3. RAG (Retrieval-Augmented Generation)

4. LLM Agents (Day 7, after eval)

5. Multi-Agent Systems and MCP

6. Staging GenAI apps

Learning Objectives

By the end of this module, you should be able to:

Projects

  1. RAG document Q&A (demo): Ingest docs, store embeddings, answer with citations, score retrieval on a tiny set
  2. Prompt + schema playground: Structured outputs with validation, not free-form JSON hopes
  3. Hybrid retrieval experiment: BM25 + vectors (+ optional rerank). Compare hit rate
  4. Guarded tool agent (sandbox): Read-only tools first. Confirm before any write
  5. PEFT decision memo: One page arguing Prompt, RAG, or LoRA for a sample task

Key Concepts

Documentation & Learning Resources

Official Documentation:

Free Courses:

Tutorials:

Video Tutorials:

Practice:

Complete Detailed Guide

Additional Resources:


Previous Module: 12-natural-language-processing
Next (recommended stage order): 20-handling-imbalanced-data (Stage 7.5), then 13-model-deployment (Stage 8)

Folder order note: Module 19 (SQL) is Stage 1.5, study it in parallel with Modules 01–02, not after this module. See FOUNDATION_AND_JOB_READINESS.md.

All lessons in this module

Next lesson. Generative AI & Modern LLM Applications