Month 5 — Exercises set
🟢 Easy
LLM Fundamentals
- Compare tokens for English and Uzbek text with
tiktoken. - 5 models (GPT-4o-mini, Claude Haiku, Gemini Flash, Llama 3.1, Mistral) with the same question.
- Temperature 0, 0.5, 1.5 — observe answer differences.
Prompt Engineering
- Zero-shot, few-shot, CoT — for the same task.
- Structured Pydantic output with Instructor.
- Prompt + validation for JSON output.
APIs
- OpenAI streaming chat.
- Anthropic prompt caching.
- Function calling — 3 tools.
Vector DB
- 100 documents in ChromaDB.
- Qdrant Docker setup.
- pgvector Postgres extension.
RAG
- Naive RAG — 10 documents, query.
- Citation —
[Source N]format. - Compare chunking strategies.
Agents
- Pydantic AI agent + 3 tools.
- CrewAI hello world.
- LangGraph simple workflow.
Fine-tuning
- Load pretrained Llama 1B.
- 50 synthetic datasets (with GPT).
- Understand LoRA config syntax.
🟡 Medium
Real projects
- Multi-turn chatbot: store history, manage context window.
- RAG over Wikipedia: 100 Uzbek Wikipedia articles.
- PDF Q&A bot: PyPDF + Qdrant + Streamlit.
- Code review agent: GitHub PR diff → suggestions.
- Email summarizer: 50 emails → daily digest.
Advanced techniques
- Multi-query RAG: with query expansion.
- HyDE: hypothetical embeddings.
- Hybrid search: dense + BM25.
- Reranking: with cross-encoder.
- Multi-agent: CrewAI 3-agent system.
Fine-tuning
- TinyLlama: QLoRA with Uzbek instruction dataset (Colab).
- OpenAI fine-tuning: customer support classifier ($1 budget).
- Synthetic data: 500+ training pairs with GPT-4.
🔴 Hard (Production)
1. Documentation Q&A Bot
Requirements:
- 100+ documents (PDF, markdown, websites) ingestion
- Qdrant + FastAPI + Celery
- Multi-query + reranking
- Citation and source links
- Streamlit UI
- Langfuse observability
- Cost tracking per user
2. AI Customer Support Agent
Requirements:
- Telegram bot (aiogram)
- Multi-turn conversation
- Tools: FAQ search, order lookup, refund process, escalate to human
- LangGraph workflow
- Postgres memory
- Sentiment-based routing
- Admin dashboard
3. RAG Evaluation Framework
Requirements:
- Create test set (100+ Q&A pairs)
- Automated evaluation with RAGAS
- A/B testing framework
- Continuous improvement loop
- Grafana dashboard
4. Domain-specific Fine-tuning Pipeline
Requirements:
- Data collection + cleaning
- Synthetic data augmentation
- QLoRA fine-tuning (Llama 3.1 8B)
- vLLM serving
- Benchmark (vs base model)
- Production rollout strategy
Mini-projects
Mini-project 1: Voice-to-Text Meeting Assistant
- Whisper (audio transcription)
- LLM summarization
- Action items extraction
- Slack integration
Mini-project 2: Code Review Bot
- GitHub webhook
- Diff parsing
- LLM analysis (security, performance)
- Inline PR comments
Mini-project 3: Personal Knowledge Base
- Notion + Obsidian export
- Vector DB ingestion
- “Second brain” chatbot
- Smart search
Mini-project 4: Uzbek Government Documents Chatbot
- lex.uz, data.gov.uz scraping
- Multi-language (uz/ru)
- Citation
- Legal disclaimer
Quiz
LLM
- Token, context window, temperature, top_p — explain each one.
- Pretraining, SFT, RLHF — what order?
- What is hallucination and how to reduce it?
- Proprietary vs Open Source LLM — selection criteria?
- How does prompt caching work?
Prompt Engineering
- Zero-shot, few-shot, CoT — when which?
- Patterns for structured output (JSON)?
- Prompt injection — risk and defenses?
- Self-consistency technique?
- ReAct pattern intuition?
RAG
- Difference between RAG and Fine-tuning?
- Chunking strategies trade-offs?
- How does the HNSW algorithm work?
- What is Hybrid search?
- Why does cross-encoder reranking lead to improvement?
Agents
- Difference between Agent and LLM call?
- ReAct pattern — Thought/Action/Observation?
- When is multi-agent needed?
- What is MCP (Model Context Protocol)?
- Agent security — sandbox patterns?
Fine-tuning
- LoRA mathematical intuition?
- QLoRA — why 4-bit?
- Synthetic data generation strategies?
- RAG vs Fine-tuning — when which?
- Why is vLLM fast in production?
✅ Month 5 final checklist
- I use LLM APIs (OpenAI, Anthropic)
- I know prompt engineering techniques
- Structured output (Instructor, Pydantic AI)
- Familiar with Vector DB (at least 2)
- I built a full RAG pipeline
- I wrote an AI Agent (tool use)
- I tried a small fine-tuning with LoRA
- I deployed to production (FastAPI + Docker)
- Langfuse / observability
- Capstone project (chatbot/RAG)
- LinkedIn post
Congratulations! Month 6 — MLOps and Production — the most important month for your main goal.