Back to List
Medium
🟡
Role Playing
Medium • Prompt Engineering Challenge
Design expert role prompts
Challenge Description
Role-playing is an important technique in prompt engineering. By having the AI play a specific expert or role, you can get more professional and targeted answers. This challenge requires you to design a prompt that enables the AI to play an expert in a specific field and provide professional, in-depth, and field-specific answers in that role.
Challenge Goals
Write a prompt that enables the AI to:
- Accurately play the designated professional role (e.g., doctor, lawyer, psychological counselor, scientist, etc.)
- Use the professional terminology and knowledge framework of the field
- Follow the ethical guidelines and best practices of the field
- Provide answers that are both professional and helpful to ordinary people
- Clearly state limitations when uncertain to avoid misleading
Requirements
- The role setting must be specific and professional, containing sufficient professional background information
- The answer must reflect the professionalism and thinking style of the field
- Use appropriate professional terminology while ensuring that ordinary people can also understand
- Clearly mark the boundary between professional advice and personal opinions
- The prompt must contain the principles or limitations that the role should follow
Prompt Template
[Your prompt here]
Question: {Question content}
Automated Testing Process
- For each test case, use your prompt and the question as input
- Analyze whether the output contains professional terminology and concepts from the specific field
- Detect whether there are ethical boundary statements and limitation descriptions in the answer
- Use readability analysis tools to evaluate the readability and clarity of the answer
- Evaluate the specificity and relevance of the answer (ratio of practical advice to general advice)
- Calculate the final score (out of 5)
Expected Output Example (for Case 1)
As a clinical psychological counselor, I notice that the symptoms you describe may be related to depressive symptoms, including insomnia, loss of interest, and persistent low mood.
From a professional perspective, I suggest the following steps:
1. First, consider consulting a professional mental health physician for a face-to-face evaluation. Online advice cannot replace a professional diagnosis.
2. At the same time, try some evidence-based self-help strategies:
- Establish a regular schedule, even on weekends
- Ensure 30 minutes of moderate-intensity physical exercise daily
- Practice mindfulness meditation, you can start with a guided app (like Headspace)
- Limit caffeine and alcohol intake, especially in the afternoon and evening
3. Social support is very important: try to share your feelings with trusted friends or family.
4. Work stress management techniques include: setting reasonable boundaries, prioritizing tasks, taking regular breaks, and learning to refuse unnecessary work.
If symptoms worsen or you have thoughts of self-harm, please seek emergency help immediately. Remember, seeking help is a sign of courage and self-care.
Submit your solution and share your ideas and techniques with the community!
Write Your Prompt
Write your AI prompt based on the requirements
0 / 2000
Tips for Better Prompts
- Be specific and clear about what you want
- Provide context and examples when helpful
- Use appropriate tone and style for your audience
- Test and iterate to improve your results
Need help? Join our community
View Discussions