Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Prompt Engineering Full Course: Real Tests, Scored by Code
New

Prompt Engineering Full Course: Real Tests, Scored by Code

Write prompts for real work tasks and prove they work: every before and after runs on a free local AI and is scored.
Created byAdi Tejus
Last updated 11/2026
English
English

What you'll learn

  • Write prompts with a role, task, context, format, limits and a fallback, and see each part change the score
  • Score any prompt's output with simple code checks instead of trusting how it reads
  • Use few-shot examples and step-by-step reasoning, and measure when they help and when they don't
  • Get JSON a program can use, with a schema enforced by the model runtime
  • Split big jobs into prompt chains: extract, write, review and fix
  • Write system prompts and custom instructions that keep an assistant on task, and harden them against prompt injection with prompt rules plus code checks
  • Prompt for images and code, and check the results with tests
  • Build a test set for your prompts, turn every mistake into a check, and fix them one failure at a time
  • Summarize long documents without losing facts, and test a model judge before you trust it

Coding Exercises

This course includes our updated coding exercises so you can practice your skills as you learn.

See a demo
Image of coding exercise example

Course content

6 sections • 18 lectures • 2h 7m total length
  • Same model, better prompt: from 0 of 4 to 4 of 47:55

    A leave email and revision notes, each with a vague prompt and a complete one, run on the same free model and scored by the same code checks. Then the two mistakes the four-out-of-four email still had.

  • Set up a free local AI and the course tests4:53

    Install Ollama and a small open model, run the 15 course tests, and see how one run works inside: the chat function, temperature and seed, the runner and the checks.

  • Role, context and a policy: the customer reply7:00

    A support reply with a role, a policy block and a ticket block, and the moment the model wrote the wrong credit with the right number in its prompt. Then the one-line fix, and an HR answer that admits when the policy is silent.

  • Quick check: Foundations: what makes a prompt work
  • Catch template placeholders before you send
  • Turn a vague prompt into one you can send, and score both

Requirements

  • A computer with about 8 GB of memory and 5 GB of free disk space (Windows, Mac or Linux)
  • Willingness to install two free tools (Ollama and Python) and run commands we give you
  • No coding experience needed: every script is ready to run (the coding exercises are optional)
  • Optional: an Anthropic API key to run the same prompts on Claude

Description

This course contains the use of artificial intelligence.

Most prompt engineering advice is opinion. In this course, every tip is a test. You take a real work task, write the prompt most people write first, then a better one, and run both on the same model. Code scores both with the same checks, so you see the difference instead of taking anyone's word for it.

Everything runs on a free AI model on your own computer, through Ollama: no API key, no card, no account. A small free model is a strict teacher, because it shows exactly what a prompt is missing. The course files also include a runner for Claude with the same prompts and checks, if you want to compare on your own (it was not part of the course runs).

You will write a leave email you can send without editing, a customer reply that follows a refund policy, and an HR answer that admits when the policy is silent. You will sort customer messages into queues with few-shot examples, solve money problems step by step, pull invoices into JSON a program can trust, and turn messy meeting notes into a follow-up email with a prompt chain. You will build a helpdesk system prompt that stays in its lane, read a receipt from an image, brief an image generator, and get working code checked by hidden tests. Then you will test and fix prompts like a professional with a test set, turn every mistake you catch into a check, harden an assistant against prompt injection with prompt rules plus a guard in code, summarize a long document without losing a number, and test a model judge against an answer key. You leave with ten ready templates for everyday work.

The failures stay in. You will see a four-out-of-four email that still invented a phone number, a reply that wrote the wrong credit, examples that fixed one answer and broke another, and our own advice measured and found half right. Most come with a fix and a fresh run, and the ones a fix did not solve stay in too.

Every section ends with a practical with starter and solution files, a quiz, a one-page cheat sheet and an assignment. The course ends with a capstone: ship one prompt template for a weekly task, with its own test set.

Who this course is for:

  • Office workers, students and analysts who use ChatGPT, Claude or Gemini and want reliable results
  • Anyone who wants to measure prompts instead of guessing
  • People who want to run AI privately on their own computer for free