Simple Prompt Techniques
GenAI continues to revolutionize the way we perform our tasks, and it really simplifies some part of daily routine execution. But to do that efficiently, you need to use correct prompts. The rule is simple: the better you specify the request, the better results you get.
So I’d like to share a few simple prompting methods that I’ve found really helpful.
RTF
It's perfect for simple tasks. According to the RTF you need to write your prompts in the following way:
🔸 Role: AI role and area of expertise.
🔸 Task: Task or questions description.
🔸 Format: Output format or structure: code snippet, text, specific document, json structure, etc.
Example:
Role: You are an experienced Go developer.
Task: Analyze this Go function and suggest improvements to error handling and HTTP client reuse.
Format: Return a code snippet with inline comments explaining improvements.
RISEN
This framework suites for more complex tasks:
🔸 Role: AI role and area of expertise.
🔸 Instructions: Task or questions description. The more details you specify, the better the output.
🔸 Steps: Steps to perform to complete the task.
🔸 Expectations: Goal of the output, what you aim to achieve. It can include examples, output format and other guidelines.
🔸 Narrowing: Limitations, restrictions, or what to focus on.
Example:
Role: You are an SRE engineer.
Instructions: Prepare outage report data [based on the provided details].
Steps: 1) Summarize timeline, 2) Identify root cause, 3) Suggest prevention.
Expectation: Output an incident report in Markdown with Summary, Impact, Root Cause, Action Items.
Narrowing: Keep it management-friendly but with enough technical detail for engineers.
I hope these prompt techniques will be useful for you as well.
#ai #tips
Post #208
320
- 👍 4
- 🔥 4