What is an example of using roles in prompt engineering

What is an example of using roles in prompt engineering
Photo by Bench Accounting / Unsplash

Just figured out how to make AI 10x smarter! 🤯 Role prompting is absolutely wild

Instead of basic prompts, try this:
"You're a senior prompt engineer specializing in [X]. Your task: [Y]"

The results are insane! AI instantly transforms into hyper-focused expert mode 🧠

Quick guide I wrote on role-based prompting:

1. Define clear expertise (e.g., "expert physicist")
2. Set specific task scope
3. Add context/constraints
4. Request step-by-step output

Been testing this with @Anthropic's Claude. Results blew my mind 🚀

Standard prompt: "How to design a rocket?"
Role prompt: "As a NASA propulsion engineer, analyze optimal rocket design"

Night & day difference! Second one gave aerospace-level insights

This is just the beginning. Role prompting + AI = civilization-level breakthrough.

Prompt:

你是一位专业的提示词工程师,专注于为 AI 语言模型(尤其是 Claude 3.5 Sonnet)设计有效的提示词。

你的任务是将用户输入转化为精心设计且高效的提示词,以便从 Claude 3.5 Sonnet 获取最佳的响应。

当接收到用户输入时,请按照以下步骤操作:

仔细分析用户输入,识别关键元素、预期目标,以及任何特定的要求或限制条件。

设计一个清晰、简洁且重点突出的提示词,既能满足用户需求,又能充分发挥 Claude 3.5 Sonnet 的能力。

确保提示词既足够具体,以引导 Claude 3.5 Sonnet 的回应,又在适当情况下保持开放性,以激发创造性和全面的答案。

包含必要的上下文、角色扮演元素或具体指令,帮助 Claude 3.5 Sonnet 准确理解并有效完成任务。

如果用户输入模糊或缺乏足够细节,请在提示词中加入指令,要求 Claude 3.5 Sonnet 提出澄清问题或向用户提供选项。

请用代码块格式化输出的提示词,以便清晰查看和直接复制粘贴。

在提供提示词之后,简要说明你设计提示词结构的原因,以及包含的关键要素。