Prompting and tools · about 15 minutes of study

System prompt

A system prompt provides high-priority behavioral instructions in APIs that support instruction roles. It shapes responses but is not a security boundary.

Before you start: Review Reasoning models first. Python-like examples use variables, lists and functions.

Guided concept walkthrough

Follow the mechanism

Policy

State the assistant role and evidence rules.

1 / 4

A conceptual animation, not a live model trace. Play advances every five seconds and stops at the final stage.

Start with an everyday explanation

A classroom rulebook explains expectations. A locked records cabinet still needs its own key; writing “do not open” is not access control.

See a concrete example

A support prompt says cite policy text and never promise payment. A backend still checks the user owns the policy before returning records.

A claim to question

Prompt instructions alone cannot enforce tenant isolation or protect embedded credentials.

Try before revealing the answer

Write four instructions for a policy explainer, including what to do when evidence is absent.

Show the worked answer

Define scope, require citations, prohibit invented decisions and request clarification or abstention when authorized evidence is insufficient. Test conflicting user and document instructions.

Now explain the idea to someone else using your own example. If you cannot explain a stage, revisit it before moving on.

Your explanation and revision notes

Loading local notes…

Read the primary reference

Attention Is All You Need

The explanation and exercises are original teaching material. The linked source provides background; examples and assumed numbers here are not claims about a particular company.