Phase 1 outline

Module 03 of 06 · Outline

LLM Fundamentals, Context & Prompt Engineering

Design clear prompts and predictable outputs within a context budget.

Learning outcome: A tested prompt pipeline that validates structured outputs rather than trusting raw model text.

Lesson outline

Lesson 3.1

How LLM requests work

  • Tokens, context windows, and generation limits
  • Messages, roles, and sampling parameters
  • Latency, cost, and model limitations

Lesson 3.2

Reliable prompt patterns

  • Clear instructions, examples, and output contracts
  • Delimiting untrusted input
  • Grounding answers and acknowledging uncertainty

Lesson 3.3

Structured outputs and tools

  • JSON schemas and response validation
  • Function calling versus executing a function
  • Invalid output recovery and small evaluation datasets

Practice assignment

Extract structured support tickets

  1. Define a schema for category, summary, and urgency.
  2. Create a prompt with representative examples.
  3. Evaluate ten synthetic tickets and record validation failures.

Deliverable: The schema, prompt, synthetic dataset, and a short error analysis.

Independent practice · no submission or grading

Reference reading