1. What Is a Prompt?
DefinitionA prompt is the input you give to a large language model to get the response you want.
- No clear task
- No context: who is asking?
- No format: the answer can be any length
2. The System Prompt
DefinitionA system prompt is an instruction you give the model before the conversation. It sets the model's role, behaviour and rules.
Every production chatbot, from a finance assistant to a health bot or a support agent, is configured with a system prompt first. Real products stack more layers on top, and we build those later. At its core, a system prompt fixes the model's role, its behaviour and its rules. A strong one spells out five things, and you add only the ones your app needs.
3. Three Types of Messages
The system prompt is sent as a message. In fact, the model does not get one plain string. It gets a list of messages, and each message has a role. You send System and Human messages. The model sends back an AI message.
System sets the rules. Human asks. AI answers.