AI · Artificial Intelligence
Hệ thống thực hiện nhiệm vụ vốn cần năng lực nhận thức của con người: reasoning, perception, planning, language.
Giáo trình thực chiến cho Coder · Tech Lead · PM · Software Architect.
Học từ nền tảng AI/ML đến LLM, RAG, Agents, AI System Architecture, MLOps/LLMOps, Security, Governance và AI Product Management — với tư duy đủ sâu để thiết kế và xây dựng hệ thống thật.
Từ “AI user” → AI builder → AI architect → AI product leader.
Nền móng để đọc paper, hiểu model và nói chuyện kỹ thuật chính xác.
Hệ thống thực hiện nhiệm vụ vốn cần năng lực nhận thức của con người: reasoning, perception, planning, language.
Thay vì viết mọi rule, ta học pattern từ dữ liệu để dự đoán hoặc ra quyết định.
ML dùng neural networks nhiều tầng để học representation từ dữ liệu.
Vector là điểm trong không gian đặc trưng; matrix là phép biến đổi; tensor tổng quát hóa dữ liệu nhiều chiều.
Loss đo “sai bao nhiêu”. Gradient cho biết nên thay đổi tham số theo hướng nào để giảm loss.
Model tốt không chỉ nhớ training set mà còn dự đoán tốt dữ liệu chưa từng thấy.
| Khái niệm | Training | Inference | Ví dụ |
|---|---|---|---|
| Model | Học tham số | Dùng tham số | Classifier, LLM |
| Prompt | Không nhất thiết thay model weights | Cung cấp context/instruction | System + user prompt |
| Fine-tuning | Cập nhật weights | Dùng weights mới | Domain style/task |
| RAG | Không cần đổi weights | Retrieve context rồi generate | QA tài liệu nội bộ |
Từ thuật toán cổ điển đến neural networks và Transformer.
Regression · Classification · Clustering · Trees · Boosting · Anomaly Detection.
Metrics: Accuracy, Precision, Recall, F1, ROC-AUC, MAE, RMSE.
Neural networks · Backpropagation · Optimizers · CNN · RNN · Attention · Transformer.
Engineering knobs: batch size, learning rate, epochs, regularization, checkpointing.
Di chuyển learning rate để xem tốc độ “học” minh họa. Đây là mô phỏng khái niệm, không phải training engine.
Hiểu vì sao Transformer, tokens, attention và inference tạo ra năng lực ngôn ngữ.
| Option | Ưu điểm | Trade-off | Use case |
|---|---|---|---|
| Small/local model | Privacy, latency, predictable control | Capability có thể thấp hơn | OCR, classification, local assistant |
| Hosted frontier model | Strong reasoning/coding, ít vận hành | Cost, data boundary, vendor dependency | Complex reasoning, agent |
| Fine-tuned model | Behavior/domain specialization | Data + training + maintenance | Stable specialized task |
Đưa kiến thức bên ngoài model vào đúng thời điểm thay vì cố nhồi mọi thứ vào prompt.
Recall@k, precision, reranking, metadata filtering.
Faithfulness, relevance, citation correctness.
Bad chunking, stale docs, retrieval miss, prompt injection.
Estimated chunks: 40,000
Đây là ước tính planning; kích thước token/chunk thực tế phụ thuộc tài liệu và tokenizer.
Agent không chỉ “chat”; agent có state, tools, policy, feedback và khả năng thực hiện workflow.
Luồng xác định trước. Tốt khi business rule rõ và cần predictability.
Model chọn bước/tool dựa trên mục tiêu và context. Mạnh hơn nhưng khó kiểm soát hơn.
Hành động rủi ro cần approval. Ví dụ merge code, gửi email, xóa dữ liệu, giao dịch.
Thiết kế hệ thống không phụ thuộc một model duy nhất.
Accuracy/relevance/faithfulness trước latency.
Timeout, retry, fallback, idempotency, circuit breaker.
Token cost, cache hit rate, model routing, throughput.
| Decision | Question | Evidence cần có |
|---|---|---|
| Cloud vs local | Privacy, latency, capability? | Benchmark + threat model |
| RAG vs fine-tune | Knowledge changing hay behavior stable? | Eval set + maintenance cost |
| Single vs multi-agent | Complexity có thật sự cần? | Workflow baseline |
Nếu không đo được quality, bạn không biết release mới tốt hơn hay tệ hơn.
Golden dataset, regression suite, expected outputs, human labels.
Latency, error rate, token usage, tool failures, user feedback.
Version prompt/model/data, canary, rollback, approval gates.
Estimated API token cost: $95.00/month
Giá chỉ là giả định để học cách tính. Provider pricing thay đổi; không dùng con số này làm báo giá.
AI có thêm attack surface: prompt, context, model, tools và data.
PM và Tech Lead phải biến AI capability thành outcome đo được.
Requirement → Context → Plan → Code → Test → Review → Deploy → Observe.
AI coding agent cần repository instructions, architecture context, test constraints và approval boundaries.
Value = Quality × Adoption × Frequency − Cost − Risk
Đây là mental model để thảo luận trade-off, không phải công thức tài chính.
Chứng chỉ là checkpoint; năng lực thực chiến mới là mục tiêu cuối.
Bằng cử nhân/thạc sĩ/tiến sĩ phải đến từ chương trình của cơ sở đào tạo có thẩm quyền. HTML này là curriculum, không phải bằng cấp.
Tên kỳ thi, exam objectives, pricing và cloud services thay đổi. Luôn kiểm tra trang chính thức trước khi đăng ký.
Một project xuyên suốt để biến kiến thức thành portfolio.
LLM API + structured output + logging.
RAG + citations + evaluation dataset.
Agent + tools + approval gates.
Security + red-team + regression.
Production architecture + monitoring + cost.
PRD + Architecture + ADR + demo + defense.
15 thuật ngữ phải dùng được trong technical discussion.
| English | Tiếng Việt | Example sentence |
|---|---|---|
| Inference | Suy luận / chạy model | The model is fast during inference. |
| Embedding | Vector biểu diễn | We store document embeddings for retrieval. |
| Attention | Cơ chế chú ý | Attention connects tokens contextually. |
| Fine-tuning | Tinh chỉnh model | Fine-tuning changes model behavior for a task. |
| RAG | Truy xuất tăng cường sinh | RAG grounds answers in external documents. |
| Chunking | Chia tài liệu thành đoạn | Bad chunking can hurt retrieval quality. |
| Reranking | Xếp hạng lại | Reranking improves the relevance of retrieved chunks. |
| Hallucination | Thông tin bịa / không được hỗ trợ | We need evaluation to detect hallucinations. |
| Agent | Tác tử AI | The agent can call approved tools. |
| Tool calling | Gọi công cụ | Tool calling lets the model interact with APIs. |
| Evaluation | Đánh giá | Evaluation should run before every model release. |
| Latency | Độ trễ | Latency is a product requirement. |
| Token | Đơn vị token hóa | Token usage affects API cost. |
| Guardrail | Rào chắn an toàn | Guardrails restrict high-risk actions. |
| Observability | Khả năng quan sát hệ thống | Observability helps debug agent failures. |
10 câu · 10 điểm/câu · streak bonus. Best score được lưu localStorage.