Prompt

The text, instructions or context you give to an AI model to produce a response.

What it is

A prompt is the text you send to an AI model. It can be a question, instruction, example or context. System prompts set behaviour; user prompts are the actual request. Prompt engineering is the practice of designing prompts that produce reliable, useful outputs.

Why it matters

The same model can produce very different outputs depending on the prompt. Good prompts are clear, specific and grounded in examples.

How to use

  • Use a system prompt to set role, tone and constraints.
  • Provide 3 to 5 examples for tasks that need consistent format.
  • Specify the output format (JSON, markdown, length).
  • Test prompts against edge cases and iterate.

FAQ

  • How long should a prompt be?

    As short as possible, as long as necessary. Long prompts add cost and latency.