Operate local AI responsibly

Complete the local summarizer

Finish the course by documenting and testing a local structured-output feature with a deterministic fallback and explicit operating boundaries.

Complete the activity summarizer from the previous module.

Your finished project should include:

  1. A documented input and output contract.
  2. An Ollama adapter using one pinned local model.
  3. A JSON schema and runtime validation.
  4. A timeout and cancellation path.
  5. A deterministic fallback.
  6. Unit tests for deterministic behavior.
  7. A small real-model evaluation set.
  8. A short operating note.

The operating note should answer:

  • Which model, quantization, runtime, and hardware did you test?
  • What data enters the model and where else can it travel?
  • Which failures trigger fallback?
  • What quality and latency did you observe?
  • Which actions can the model request or perform?
  • How will you test an upgrade and roll back?

Run the project once with Ollama available. Then stop Ollama and run it again. The application should still produce a truthful summary.

The goal is not to make the model impossible to replace. The goal is to build a useful feature whose boundaries you understand.

Lesson completed

Take this course offline

Get every free book, course edition, and software download.

Get the download library →