Chapter 8 / 16

Prompt Engineering and Structured Output

Intermediate 3 h · Prerequisites: Running Local LLMs with Ollama, llama.cpp and vLLM

Learning objectives

  • Design system prompts, few-shot examples and output schemas
  • Validate JSON output and handle refusals and truncation
  • Measure prompt changes instead of guessing

In preparation

This chapter is being written and technically reviewed. Until then only its learning objectives are shown; it cannot be marked as completed.

Planned labs: Structured extraction with schema validation