15. The Complete 24-Week Study Plan

This table reproduces the roadmap's week-by-week plan in full. Each week's "Learn" column maps to the corresponding chapter above for full depth.

WkFocusLearnDeliverable
1Python fundamentalsSyntax, functions, collections, files, modules, exceptions.CLI/data-processing mini app.
2Production PythonTyping, Pydantic, async/await, httpx, logging, pytest.Typed async service + tests.
3FastAPI + PostgreSQLREST, auth/RBAC, SQL, ORM, migrations, Docker.Production API foundation.
4AI/ML/LLM foundationsML metrics, neural nets, transformers, tokens, context, embeddings.Engineering explainer + small inference notebook.
5Raw LLM APIsMessages/instructions, model choice, streaming, errors, token accounting.Chat/API endpoint without framework.
6Structured outputsJSON schema, Pydantic validation, extraction, reliability.Document extractor v1.
7EmbeddingsVectors, similarity, batching, semantic search.Semantic search API.
8pgvector + search qualityVector indexes, metadata filters, lexical search baseline.Search benchmark + relevance dataset.
9RAG ingestionParsing, chunking, metadata, versions, jobs.Async ingestion pipeline.
10RAG retrievalDense retrieval, top-k, filters, query understanding.RAG v1 with citations.
11Advanced retrievalBM25/keyword, hybrid search, reranking, query rewrite.RAG v2 with hybrid + reranker.
12RAG evaluationRecall@k, answer correctness, faithfulness, citation checks.RAG regression suite.
13Tool callingSchemas, typed tools, read operations, failures.Business assistant with 3 read tools.
14Safe write workflowsApprovals, idempotency, permissions, audit logs.Add draft/create workflow with approval.
15Agent fundamentalsState, routing, planning, retries, stopping.Build small loop manually.
16LangGraphGraphs, persistence, interrupts, human-in-loop, streaming.Stateful agent workflow.
17Advanced workflowsSubgraphs, memory choices, durable execution, error recovery.Long-running workflow with resume.
18MCPClient/server, tools/resources, auth/trust boundaries.Build read-only MCP server + client.
19EvalsDatasets, deterministic checks, LLM judge calibration, comparisons.Automated eval harness.
20ObservabilityTracing, token/cost metrics, model/tool/retrieval telemetry.Dashboard/traces for flagship app.
21AI securityPrompt injection, RAG/tool threats, cross-tenant tests, OWASP.Security test suite.
22Production systemsRedis, queues, workers, object storage, rate limits, retries.Async production architecture.
23Cloud + CI/CDDeploy, secrets, managed DB/storage, logs, eval/test gate.Public staging deployment.
24Flagship + interviewPolish README, architecture, demo, metrics, interview stories.Production-grade portfolio release.

15.1 Weekly Rhythm (10–15 hours)

SessionSuggested Work
2 × 60–90 minConcepts + official documentation.
3 × 90–120 minBuild feature, test, debug.
1 × 60 minWrite evals / security tests / refactor.
1 × 60 minDocument what you built and publish progress.
💡 If You Have More Time Increase project depth, not the number of frameworks. Add tests, metrics, deployment, failure handling and evaluation before moving to another library.

16. Portfolio Projects: Beginner to Flagship

Project 1 — Typed AI Document Extractor

Project 2 — Semantic Search Engine

Project 3 — Production Knowledge RAG

Project 4 — AI Business / ERP Copilot

Flagship — AI Business Operations Platform

Next.js UI -> FastAPI API -> AI Orchestrator |- RAG / Retrieval |- Tool Gateway |- Stateful Workflows / Agent |- Evaluation Hooks -> PostgreSQL + pgvector -> Redis / Queue / Workers -> Object Storage -> Enterprise APIs / ERP -> Observability -> Cloud Deployment
Fig 16.1 — The flagship project is not a new stack; it is every prior project's components combined into one deployed system.

Flagship Feature Checklist

Auth + orgs + RBACStreaming responsesStructured outputsIngestion/statusRAG + citationsHybrid search + rerankingConversation stateTool callingHuman approval for writesAgent persistenceMCP (optional)EvalsTracingCost trackingPrompt/model versioningAudit logsPrompt-injection defensesRate limitingQueue/workersDockerCI/CDCloud deploymentArchitecture diagramLoad/security test reportREADME with measured results
📌 Sticky Note — Remember Ship one deep, measurable flagship product rather than several shallow chatbot demos. Every interviewer question in Chapter 18 maps back to something a real flagship project would force you to actually solve.

17. Production Architecture Reference

+-----------------------+ | Next.js UI | +-----------+-----------+ | HTTPS/SSE +-----------v-----------+ | FastAPI API | | Auth / RBAC / Limits | +------+-------+--------+ | | +-----+--+ +--+------------+ | | | | +v--------v+ +v--------------v+ | AI | | Job/Ingestion | |Orchestrator| | Queue+Workers | +--+---+---+-+ +---+------------+ | | | | | | +--> Tool Gateway --> ERP/APIs | +------> RAG/Reranker +----------> Model Providers | +-----------------v---+ +------------------------+ | PostgreSQL | | Object Storage | | app data + vectors | | source documents | +-----------------------+ +------------------------+ +-----------------------+ +------------------------+ | Redis / Cache | | Traces / Logs / Evals | +-----------------------+ +------------------------+
Fig 17.1 — Reference architecture for the flagship platform. Every box corresponds to a chapter already covered: FastAPI (Ch.3), AI Orchestrator/RAG (Ch.5–7), Tool Gateway (Ch.8, 10), Queue/Workers (Ch.13), Observability (Ch.11).

17.1 Cross-Cutting Controls

Chapters 15–17 Summary