Prompting

Step 8 of 13 in Generative AI · Build · Easy

Clear instructions, examples (few-shot), structured output and letting the model reason step by step change results dramatically without training.

Build it

  1. Prompt experiment

    Extract fields from 20 messy job posts into JSON with 3 prompt versions; validate with pydantic.

    Done when: Accuracy per version; best prompt explained.

Case study: GPT-3: few-shot learners (2020)

  • A large enough model did new tasks from a few examples in the prompt.
  • No fine-tuning: the prompt became the program.
  • Performance was very sensitive to prompt wording and example order.

Read the case study

Resources

Earn this star

On the map, you log what you built. Finish the step and its star lights.

Open this step on the map