Prompt
A text input - an instruction or question - that a user or system passes to an AI model for processing.
What is a prompt?
A prompt is the text input you pass to an AI model - it can be a question, instruction, context, or a combination of these. The quality of the prompt directly determines the quality of the output: the more precise and structured the prompt, the better and more predictable the response.
Types of prompts
- System prompt: Sets the model's role and rules (before the conversation)
- User prompt: A specific question or task from the user
- Few-shot prompt: A prompt with example input-output pairs
Tips for effective prompts
- Define a role: "You are an expert in…"
- Be specific: instead of "write a text," specify length, tone, and target audience
- Add context: what the model needs to know to answer correctly
- Specify the output format: JSON, list, paragraph