Skip to content
All topics

Domain

Prompt engineering

Designing, structuring, versioning and testing the instructions an application sends to a model.

0 of 10 articles published. Topics are listed in reading order: each comes after the topics it builds on.

Prompt foundations

How to write instructions a model follows consistently.

  1. Anatomy of a production promptComing soon

    The parts of a prompt that ships: role, task, constraints, context, examples and output format.

    Fundamentals · Beginner

  2. Separating instructions from dataComing soon

    Marking untrusted text as data so the model is less likely to follow instructions hidden inside it.

    Fundamentals · Intermediate

  3. Few-shot examplesComing soon

    Choosing, ordering and maintaining examples, and how they can bias output.

    Fundamentals · Intermediate

  4. Specifying the output formatComing soon

    Asking for output your code can parse, and validating it instead of trusting it.

    Implementation · Intermediate

  5. Prompting for step-by-step reasoningComing soon

    When asking a model to reason first improves answers, what it costs in tokens, and how reasoning models change this.

    Fundamentals · Advanced

Prompt management

Treating prompts as versioned, reviewed, deployable artefacts.

  1. Prompt templates and variablesComing soon

    Building prompts from templates safely, including escaping and length limits for inserted values.

    Implementation · Intermediate

  2. Versioning prompts like codeComing soon

    Storing prompts with the code or in a registry, tying each response to the prompt version that produced it.

    Operations · Advanced

  3. Rolling out prompt changes safelyComing soon

    Shadow runs, staged rollout and rollback for prompt changes that can alter behaviour in production.

    Operations · Production

Prompt testing

Knowing whether a prompt change made things better or worse.

  1. Regression testing promptsComing soon

    Fixed test sets, graders and thresholds that catch a prompt change breaking existing behaviour.

    Implementation · Advanced

  2. Porting prompts between modelsComing soon

    Why a prompt tuned for one model can behave differently on another, and how to migrate with evidence.

    Fundamentals · Advanced