Stage 5 track
Track A: LLM Application Engineer
Goal: Ship LLM features that stay good: served properly, measured continuously, affordable, and safe. Builds on: Stage 4 (the support assistant becomes your capstone's core).
What you learn
- Serving with FastAPI — request validation, async endpoints, testing with TestClient.
- Eval-driven development — the Part 15 harness as a regression suite in CI: a fixed labelled set re-run on every prompt or model change, blocking anything that lowers the score.
- LLM-as-judge — scoring open-ended answers with a rubric prompt; calibrate the judge against a sample of human labels before trusting it.
- Observability — log per request: prompt version, model, latency, input/output tokens, cost, eval sample scores. Quality can fall while every infrastructure metric looks healthy.
- Cost and latency — prompt caching for stable prefixes, smaller models for simple steps, batching for bulk jobs, trimming context (Part 13's economics, operationalised).
- Safety and privacy — personal data handling, content filtering, refusal paths, and never logging what you wouldn't store.
Executed examples
Both ran in this repo; outputs are from those runs.
Serve a model behind an HTTP API, and test it (examples-track-a/01) — FastAPI + Pydantic turn the Part 16 search into a service; the test client proves both the happy path and validation:
200 {'results': [{'id': 'account', 'score': 0.747}, {'id': 'damaged', 'score': 0.0}]}
422 Field required
Estimate cost per request (examples-track-a/02) — at Claude Opus 5.5 list prices ($4/$20 per MTok, verified 2026-11-29), 3,000 input + 400 output tokens:
one request: $0.0200
10,000 per day: $200.00
30 days: $6,000.00
Capstone: Production Support Bot
- Core — the Stage 4 assistant behind a FastAPI service with tests.
- Stretch — a regression eval that runs in CI and blocks changes that lower the score.
- Production — request logging, a cost and latency dashboard, rate limiting, and a written runbook.
Read more: FastAPI tutorial · Prompt caching · Batch processing