What is a prompt in the context of AI models?
The input given to an AI model to generate a response
A prompt can be a question, instruction, context, data, or a combination of these.
Define prompt engineering.
The practice of designing and refining prompts for better AI outputs
It involves using structure, wording, and context intentionally.
List the key aspects of prompt engineering.
These aspects help guide the AI to produce more reliable and useful outputs.
True or false: A prompt is the same as prompt engineering.
FALSE
A prompt is the input itself, while prompt engineering is the skill of designing that input.
What is the purpose of clarifying the task in prompt engineering?
To ensure the AI understands what is being asked
For example, specifying the audience and format can lead to more relevant responses.
Fill in the blank: Prompt engineering involves using structure, wording, and context ______.
on purpose
This intentional design helps the model perform as expected.
What does specifying format in prompt engineering help achieve?
It guides the AI to respond in a desired structure
For example, asking for a numbered list or a markdown table.
How does setting role/perspective influence AI responses?
It frames the context in which the AI should respond
For instance, asking the AI to act as a mentor or reviewer.
What is the role of providing context and constraints in prompt engineering?
To limit the scope of the AI’s response
This ensures the AI stays relevant to the specified parameters.
What is the benefit of using examples in prompt engineering?
It helps the AI understand the desired style and format
This technique is known as few-shot prompting.
What does controlling creativity/speculation in prompts entail?
Guiding the AI to avoid guessing or making assumptions
This can be achieved by instructing the AI to stick to established practices.
What is the first step in prompt engineering?
Be explicit about the task
Clearly define the task, input, and expected output to avoid ambiguity.
How can you enhance the model’s responses by setting a role or perspective?
Giving the model a ‘hat’ to wear makes responses more targeted
This adds built-in style, depth, and priorities to the response.
What is a common pattern for specifying structure and format in prompts?
Answer in a markdown table with columns: X | Y | Z
This helps shape the answer and removes ambiguity.
What should you do to control the scope and depth of the model’s response?
Define how big and how detailed the answer should be
This prevents overly broad or shallow responses.
Why is it important to provide context and constraints in prompts?
It helps the model make relevant choices
This leads to less generic advice tailored to specific situations.
What is the purpose of using examples in prompting?
Show the model what ‘good’ looks like
This helps the model understand the desired output style.
What is a useful strategy for complex tasks in prompting?
Ask for step-by-step thinking or plans
This organizes the solution logically and clarifies the process.
How can you encourage the model to self-check its work?
List ways the answer could be wrong or incomplete
This reduces overconfidence and encourages critical thinking.
What is the benefit of iterating with follow-up prompts?
Treat it like a conversation, not a one-shot
This allows for refining and improving the output progressively.
What should you include in prompts to set constraints & guardrails?
Tell the model what not to do
This helps avoid vague phrases and ensures factual accuracy.
What is the universal prompt skeleton for adapting prompts?
Role: Act as a [role]. Task: Help me with [goal]. Audience: I am [who you are / skill level]. Constraints: Keep it [length/depth/style constraints]. Format: Reply as [list, table, sections, etc.]. Guardrails: If you’re unsure, say so; don’t make up facts.
This template can be tailored to various workflows.
A prompt template is a __________ with blanks in it.
reusable prompt
A prompt template includes fixed instructions plus placeholders you fill in each time you use it.
What are the two main parts of a prompt template?
The static part contains instructions that stay the same, while the variable part includes slots you swap out.