Месяц 5 — Сборник упражнений
🟢 Easy
LLM Fundamentals
- Сравните токены на английском и узбекском тексте через
tiktoken. - 5 моделей (GPT-4o-mini, Claude Haiku, Gemini Flash, Llama 3.1, Mistral) с одинаковым вопросом.
- Temperature 0, 0.5, 1.5 — посмотрите разницу ответов.
Prompt Engineering
- Zero-shot, few-shot, CoT — на одной и той же задаче.
- Structured Pydantic output через Instructor.
- Prompt + validation для JSON output.
APIs
- OpenAI streaming chat.
- Anthropic prompt caching.
- Function calling — 3 tool.
Vector DB
- 100 документов в ChromaDB.
- Qdrant Docker setup.
- pgvector Postgres extension.
RAG
- Naive RAG — 10 документов, query.
- Citation — формат
[Source N]. - Сравнение стратегий chunking.
Agents
- Pydantic AI agent + 3 tool.
- CrewAI hello world.
- Простой workflow LangGraph.
Fine-tuning
- Загрузка pretrained Llama 1B.
- 50 синтетических dataset (через GPT).
- Понимание синтаксиса LoRA config.
🟡 Medium
Реальные проекты
- Multi-turn chatbot: сохранение history, управление context window.
- RAG over Wikipedia: 100 узбекских Wikipedia статей.
- PDF Q&A bot: PyPDF + Qdrant + Streamlit.
- Code review agent: GitHub PR diff → suggestions.
- Email summarizer: 50 email → daily digest.
Advanced techniques
- Multi-query RAG: с query expansion.
- HyDE: hypothetical embeddings.
- Hybrid search: dense + BM25.
- Reranking: через cross-encoder.
- Multi-agent: система из 3 agent CrewAI.
Fine-tuning
- TinyLlama: QLoRA с узбекским instruction dataset (Colab).
- OpenAI fine-tuning: customer support classifier ($1 budget).
- Синтетические данные: 500+ training pairs через GPT-4.
🔴 Hard (Production)
1. Documentation Q&A Bot
Требования:
- Ingestion 100+ документов (PDF, markdown, websites)
- Qdrant + FastAPI + Celery
- Multi-query + reranking
- Citation и source links
- Streamlit UI
- Langfuse observability
- Cost tracking per user
2. AI Customer Support Agent
Требования:
- 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
Требования:
- Создание test set (100+ Q&A pairs)
- Automated evaluation через RAGAS
- A/B testing framework
- Continuous improvement loop
- Grafana dashboard
4. Domain-specific Fine-tuning Pipeline
Требования:
- Data collection + cleaning
- Synthetic data augmentation
- QLoRA fine-tuning (Llama 3.1 8B)
- vLLM serving
- Benchmark (vs base model)
- Production rollout strategy
Мини-проекты
Мини-проект 1: Voice-to-Text Meeting Assistant
- Whisper (audio transcription)
- LLM summarization
- Извлечение Action items
- Slack integration
Мини-проект 2: Code Review Bot
- GitHub webhook
- Diff parsing
- LLM analysis (security, performance)
- Inline PR comments
Мини-проект 3: Personal Knowledge Base
- Notion + Obsidian export
- Vector DB ingestion
- “Second brain” chatbot
- Smart search
Мини-проект 4: Чатбот по узбекским государственным документам
- Скрейпинг lex.uz, data.gov.uz
- Multi-language (uz/ru)
- Citation
- Legal disclaimer
Quiz
LLM
- Token, context window, temperature, top_p — объясните каждый.
- Pretraining, SFT, RLHF — в какой последовательности?
- Что такое hallucination и как уменьшить?
- Proprietary vs Open Source LLM — критерии выбора?
- Как работает Prompt caching?
Prompt Engineering
- Zero-shot, few-shot, CoT — когда какой?
- Паттерны для structured output (JSON)?
- Prompt injection — угроза и защита?
- Техника Self-consistency?
- Intuition ReAct pattern?
RAG
- Разница RAG vs Fine-tuning?
- Trade-off стратегий chunking?
- Как работает алгоритм HNSW?
- Что такое Hybrid search?
- Почему Cross-encoder reranking даёт улучшение?
Agents
- Разница Agent и LLM call?
- ReAct pattern — Thought/Action/Observation?
- Когда нужен Multi-agent?
- Что такое MCP (Model Context Protocol)?
- Безопасность Agent — sandbox паттерны?
Fine-tuning
- Математический intuition LoRA?
- QLoRA — почему 4-bit?
- Стратегии synthetic data generation?
- RAG vs Fine-tuning — когда первое, когда второе?
- Почему vLLM быстрый в production?
✅ Чек-лист конца Месяца 5
- Использую LLM API (OpenAI, Anthropic)
- Знаю техники prompt engineering
- Structured output (Instructor, Pydantic AI)
- Знаком с Vector DB (хотя бы 2)
- Создал полный RAG pipeline
- Написал AI Agent (tool use)
- Попробовал маленький fine-tuning через LoRA
- Вывел в production (FastAPI + Docker)
- Langfuse / observability
- Capstone проект (chatbot/RAG)
- Пост в LinkedIn
Поздравляю! Месяц 6 — MLOps и Production — самый важный месяц для вашей основной цели.