Skip to course content
Free generative AI app course

Generative AI Application Development with Python

Module 01 Activity

Scenario

You are about to add an AI feature to an existing application. Establish what changes about the engineering before writing any of it.

What you build

A boundary document with enforceable prohibitions, and a pipeline diagram marking the one non-deterministic step.

Steps

  1. Call a model three times with the same prompt and record the three outputs. Say what an exact-match test would do.
  2. List the five failure outcomes and what each costs. Identify the one where you cannot tell whether the call succeeded.
  3. Draw your pipeline and mark each step deterministic or not. There should be one non-deterministic step.
  4. Place the validation immediately after it and say what is guaranteed past that point.
  5. Write the must-never list, and give every line an enforcement that is not a prompt instruction.
  6. Turn two of those lines into tests.

Evidence to hand in

Review checklist