Prompt writing

Writing a prompt means formulating a clear instruction for a model: goal, context, constraints, expected output format and possibly examples. The more precise and verifiable the request, the more useful the result. You iterate by refining the instruction based on the responses obtained.

Example

Write a Python function moyenne(liste) that returns the average and raises ValueError if the list is empty. Add 3 tests.

Related concepts

The whole glossary