Skip to content

Courses 1 open · 3 courses

AI EngineeringStart with Day 1 · The AI Engineer: Role, Skills & How to Use This Course, 0 of 100 doneStart →
Machine LearningBeing written · opens 2027Coming soon
System DesignBeing written · opens 2027Coming soon

AI Engineering · Phase 2 · Days 8–22

Building with LLM APIs

Prompt, stream and extract structured data with the SDK, then make it reliable, cheap and tested.

15 lessonsCapstone: An extractor that turns documents into typed recordsSee the whole track →

2

Phase 2 · Building with LLM APIs

Days 8–2215 lessons0 donebuilds: An extractor that turns documents into typed records

Prompt, stream and extract structured data with the SDK, then make it reliable, cheap and tested.

  1. Day 8: Messages, Roles & Conversation StateAsk Atlas "My worker logs ORB-1101, what is it?" and you get a good answer.32 min
  2. Day 9: Writing Effective PromptsAsk a model to "Summarize this issue" about an Orbit ORB-1201 bug and a typical reply is a chatty paragraph that drops the error code and suggests orbit retry…37 min
  3. Day 10: Few-Shot PromptingAsk a model, with instructions only, to label the Orbit issue "ORB-1102 WorkerHeartbeatLost during CPU-heavy jobs: is the worker broken?" a plausible reply is…32 min
  4. Day 11: ReasoningChain-of-Thought & Reasoning Models"A job has lease_seconds=300, heartbeats every 30 s, and its worker freezes for 400 s.35 min
  5. Day 12: The OpenAI SDK in Production CodeThe chat from Day 8 dies with a stack trace the first time your Wi-Fi drops, and nobody can say what last week's experiments cost.36 min
  6. Day 13: Streaming ResponsesAsk Atlas to explain leases and heartbeats and the terminal sits frozen for several seconds, then a wall of text lands all at once.37 min
  7. Day 14: Multimodal InputsImages, Files & AudioHalf of Orbit's bug reports arrive as a screenshot of a stack trace, a PDF runbook, or a 30-second voice note from someone on call.33 min
  8. Day 15: Pydantic for LLM AppsThe model replied {"severity": "high", "error_codes": "ORB-1101, orb-1102"}, and your dashboard crashed three functions later.32 min
  9. Day 16: Structured OutputsNative JSON Schema & ExtractionAsk for JSON in a prompt, run it over ten Orbit issues, and one reply starts with "Sure!35 min
  10. Day 17: Handling Semantic FailuresValidate, Re-ask, BoundStrict mode guarantees the shape of a record, not its truth.36 min
  11. Day 18: Cost & Latency EngineeringCaching, Batch & BudgetsOne extraction costs a fraction of a cent, until it runs nightly over every Orbit issue, re-runs on every prompt change, re-asks 30% of the time and gets…39 min
  12. Day 19: Testing LLM CodeFakes, Fixtures, Snapshots and CIYou tidy up the wording of Day 17's re-ask feedback, and in the process you quietly break the retry loop: attempt 2 now gets the original prompt with no errors…35 min
  13. Day 20: Your First Eval SetAfter Day 17, every record Atlas extracts is valid JSON and passes your semantic rules.41 min
  14. Day 21: Prompts as Code & Model MigrationsA teammate "improved" the extraction prompt in place.45 min
  15. Day 22: Capstone R1CapstoneThe ExtractorYou have every part: schemas, a strict extractor, re-asks, a cost tracker, caching, tests, an eval gate and a prompt registry.56 min

← Every phase of AI Engineering