CertBrain
Sign in
← Back to decks
Sign in to save your progress.Sign in

Writing System and User Prompts

A model can only follow the instructions it is given, so the wording of your prompts decides how useful its replies are. This lesson covers writing system and user prompts, adding examples, and testing your wording before an app depends on it.

10 cards

Writing System and User Prompts

In this lesson · 6 sections
Step 5 of 6

Testing before you trust the wording

Treat a prompt like code that needs tests. The Foundry portal's model playground lets you edit a system prompt, send messages and adjust settings without writing application code. Build a small test set that mixes ordinary requests with awkward ones, including attempts to push the assistant off its job, and rerun it after every edit. Change one thing at a time so you know which edit helped. Microsoft's guidance warns that a determined adversarial user can get around a system message or weaken it, and that one that is too broad or too strict can reduce usefulness, so a system prompt is one layer of protection, not a complete safety solution. Whatever the technique, verify it on the model you actually deploy.