What Is a Prompt

Updated · 5 min read

Why does the same assistant give one person a brilliant answer and another a useless one? Srihitha and her sister Navika both ask a chat assistant about AI. Navika types "Explain artificial intelligence" and gets a long, generic essay. Srihitha types two more sentences of detail and gets exactly what she needs. Same model, different instructions.

Those instructions are a prompt. This lesson explains what a prompt is, why clear prompts work better, and the difference between system prompts and user prompts.

A Prompt Is Your Instruction

A prompt is the instruction or input you give a model: a question, a request, a document to work on, or examples to follow. The model can only use what the prompt contains, plus what it learned in training, so the prompt shapes everything that comes back.

The same topic, asked two ways

The clear prompt added an audience (a bakery owner), a length (four sentences), a style (plain) and an example to use (running a bakery). None of that is magic wording; it is the detail you would give a capable colleague.

System Prompts and User Prompts

KindWho writes itWhat it doesExample
System promptThe app's builderSets the model's role and rules for the whole conversation"You are a friendly tutor. Keep answers short."
User promptYouAsks for something specific, message by message"Explain fractions with a pizza example."

Chat apps usually have a system prompt you never see, which is one reason the same model behaves differently in different apps. When you build with a model API, you write the system prompt yourself.

Common Mistakes

Writing prompts like search queries. "AI bakery" works for a search engine; a model does better with a full request.

Expecting the model to guess the audience. Say who the answer is for.

Thinking there is one perfect magic phrase. Clear detail beats special wording.

Interview Corner

What is a prompt?

The instruction or input given to a model, such as a question, a request, a document or examples. The model's output depends heavily on how clear and complete the prompt is.

What is the difference between a system prompt and a user prompt?

A system prompt, written by the app's builder, sets the model's role and rules for the whole conversation. A user prompt is each request the user sends.

Practice

Exercise: improve one prompt. Take a vague prompt you have used, such as "Help me with my resume". Rewrite it with an audience, a goal, a length and a format. Send both versions to the same assistant. List three differences in the answers.

Check your understanding:

  1. What is a prompt?
  2. What four details did the clear bakery prompt add?
  3. Who writes the system prompt in a chat app?

Quick check: what is a prompt

4 questions
1What is a prompt?
2Why did the bakery prompt get a better answer?
3Who usually writes a chat app's system prompt?
4Which prompt is clearest?

Key Takeaways

Quick reference

TermMeaning
PromptThe instruction or input given to a model
System promptThe builder's instructions that set role and rules
User promptThe user's request in a conversation

Was this tutorial helpful?

Lesson 34 of 186