Principles of Writing Effective Prompts
Stryg for at vise menuen
What is a Prompt?
A prompt is the information or instructions you give an AI assistant. The quality of your prompt often determines the quality of the response.
The Four Elements of an Effective Prompt
Persona
Who you are or who you want Gemini to act as.
Task
The specific action you want Gemini to perform.
Context
Background information that helps Gemini understand the situation and your goals.
Format
How you want the response presented (e.g., bullet points, table, email, report, presentation outline).
The PTCF Framework
A simple way to improve prompts is to include:
- Persona;
- Task;
- Context;
- Format.
The more relevant information you provide in these areas, the more tailored and useful Gemini's responses are likely to be.
Using Roles and Personas
You can ask Gemini to adopt a specific role, such as:
- Tutor;
- Coach;
- Travel guide;
- Chef;
- Marketing consultant;
- Project manager;
This helps Gemini tailor its tone, expertise, and recommendations to the situation.
Four Additional Prompting Tips
Use Natural Language
- Write as if you are speaking to another person;
- Use complete thoughts and clear instructions.
Be Specific
- Clearly describe what you want;
- Include any requirements, constraints, or limitations.
Be Concise
- Effective prompts do not need to be long;
- Focus on the information that matters most.
Iterate
- Treat prompting as a conversation;
- Refine and improve your prompts based on the responses you receive.
1. What are the four components of the PTCF prompting framework?
2. What is the main benefit of providing context in a prompt?
3. Which of the following is considered a good prompting practice?
Tak for dine kommentarer!
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat