AI5 min read10 interview questions
Prompting basics: ask clearly
Four habits that give better answers from any AI model.
In one sentenceA prompt is your instruction. The clearer and more specific it is, the better the result.
Think of it like thisIt is briefing a very capable new colleague who knows a lot but nothing about your situation.
The big picture
Tap any step to see where to use it, how to use it and an example result.
Be specific about the job
"Summarise this" is vague. "Summarise this email in three bullet points for a manager who has two minutes" gives the model what it needs to decide.
Show, do not only tell
One or two examples of the output you want guide the style better than a paragraph of description. Say what to avoid as well.
Break big jobs into steps
Ask for an outline first, then each section. Ask the model to check its own answer against your rules. For facts that matter, give the source text and ask it to answer only from that.
- Goal
- Context
- Example
- Format
Common mistakes
- Writing a single vague line and expecting mind reading.
- Never checking the answer.
- Pasting private or confidential data into a tool without checking the rules.
Quick recap
- State the goal, context, example and format
- Break large jobs into steps
- Give source text for facts
- Always check the result
Try it yourself
Take a prompt you used recently and rewrite it with a goal, a context, one example and a format. Compare the two answers.
Top 10 interview questions
Ordered from basic to advanced. Try answering out loud first, then open the answer.
What is a prompt?Basic
The text you give a language model: your question, instructions, background and any examples. The model's answer depends heavily on it.
What makes a prompt clear and effective?Basic
State the task, give the context, say who the audience is, describe the format you want and mention any limits such as length or tone.
What is a system prompt versus a user prompt?Basic
A system prompt sets the standing rules and role for the assistant. A user prompt is the specific request in the conversation.
Why give examples in a prompt?Basic
Examples show the model the exact style and format you expect, which is often clearer than describing it. This is called few-shot prompting.
What is zero-shot, one-shot and few-shot prompting?Intermediate
Zero-shot gives no examples, one-shot gives one, and few-shot gives several. More examples usually make the format more consistent.
How do you get output in a specific format such as JSON?Intermediate
Describe the exact fields, show an example, and where possible use the provider's structured output or JSON schema feature. Then validate the result in code.
What is chain-of-thought prompting?Intermediate
Asking the model to work through a problem step by step before answering, which often improves accuracy on reasoning tasks. Many newer models do this internally.
How do you iterate when a prompt gives poor results?Intermediate
Change one thing at a time: add missing context, make the instruction more specific, add an example or split a big task into smaller ones. Test with several inputs, not just one.
How do you test and version prompts in a real application?Advanced
Keep prompts in version control, build a set of test inputs with expected outcomes, run them after every change and track quality, cost and speed, like a normal test suite.
How do you reduce unreliable or off-topic answers?Advanced
Give the model the needed facts, tell it what to do when unsure, lower the temperature, constrain the output format, add checks in code and keep the task narrow.
Guides are simplified on purpose. Tool names and details change, so check the official documentation before relying on a detail.