System prompts, user prompts and context
A prompt is any input you give the model. Two kinds do different jobs.
| Prompt type | Who writes it | Purpose |
|---|---|---|
| System prompt | The application developer | Defines the assistant's role, style and limits |
| User prompt | The person chatting, or the app for them | States the task or question to answer now |
Most chat apps also remember the conversation by sending earlier messages back with each new prompt, so a follow-up such as "and the deadline?" has context. Retrieval augmented generation (RAG) adds another layer: the app first fetches relevant documents, then places them in the prompt, so the answer is grounded in that material. In both cases the model itself is unchanged.