Read first
Task 15
The system prompt
The system prompt is the one place for fixed rules: what the bot may talk about, what it must never invent, and what it should do when it does not know. Keep it short and specific — every rule costs tokens on every request.
Task
What belongs in the system prompt?
The editor already contains a starting point. Change it until every check passes — the Next task button unlocks when it does.
What you start with
system = (
'You are the AI Computer Science Academy assistant in Faisalabad. '
'Answer only about our courses, fees, timings and admission. '
'Never invent a fee. If you do not know, ask the student to call +92 325 8000848.'
)
print(len(system.split()), 'words in the system prompt')
print('mentions the phone:', '+92 325 8000848' in system)
Python
1 automatic check Prompt engineering
Code editor
Ctrl + Enter runs
Run your code to see the output and the checks.
Your result
Submit your code to see results
Write your code in the middle column and press Run code.
Next task (pass every check first)
Hint
Ask yourself: What belongs in the system prompt?