Prompts
The quality of an answer depends largely on the prompt. The same model returns a generic answer to a vague question and a usable solution to a precise prompt. What a good prompt should contain.
Recurring tasks – finding a bug, reviewing code, explaining unfamiliar code or writing SQL – are worth prompting from a proven template. Just fill in the values in square brackets.
A few well-chosen examples of input and the correct output tell a model more than a long description. From them the model recognizes the format, the style and the borderline cases. How many examples to give, how to choose them and how to write them so that they do not get mixed up with the actual task.
A system prompt contains lasting instructions that apply to the whole conversation: who the model is, who it writes for, what it may do and in what form it answers. In apps it is called, for example, custom instructions or project instructions; in the API it is the system parameter. What to write in it and what to avoid.
Writing a whole module, translating a website or processing a hundred products with one prompt is tempting, but the result tends to be worse and errors are harder to find. Breaking the task into smaller steps, where the output of one step is the input of the next, gives more reliable results and places where you can check them.