Phase 2 · Building with LLM APIs
Prompt, stream and extract structured data with the SDK, then make it reliable, cheap and tested.
- Day 8: Messages, Roles & Conversation StateAsk Atlas "My worker logs ORB-1101, what is it?" and you get a good answer.32 min
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- Day 17: Handling Semantic FailuresValidate, Re-ask, BoundStrict mode guarantees the shape of a record, not its truth.36 min
- 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
- 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
- Day 20: Your First Eval SetAfter Day 17, every record Atlas extracts is valid JSON and passes your semantic rules.41 min
- Day 21: Prompts as Code & Model MigrationsA teammate "improved" the extraction prompt in place.45 min
- 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