Prompting techniques help guide artificial intelligence models more effectively, making responses clearer, more accurate, and more useful. These techniques include simple methods such as zero-shot and few-shot, reasoning techniques such as Chain of Thought, self-consistency, and Tree of Thoughts, as well as more advanced approaches such as RAG, ART, ReAct, and multimodal prompting. Each technique can be used to improve tasks such as writing, analysis, research, decision-making, tool usage, and image interpretation.
1. Zero-shot Prompt
Technique: asking for a task directly, without examples.
Prompt example:
Classify the sentiment of the sentence below as positive, negative, or neutral.
Sentence: “The service was fast, but the product arrived defective.”
Answer only with one of the options: positive, negative, or neutral.
2. Few-shot Prompt
Technique: showing a few examples before the main task.
Prompt example:
Classify the feedback below as positive, negative, or neutral.
Examples:
“The product arrived before the deadline and worked perfectly.” → Positive
“The packaging was damaged and the item was broken.” → Negative
“I received the product this morning.” → Neutral
Now classify this feedback:
“I really liked the quality, but I thought the price was a little high.”
3. Chain of Thought
Technique: asking for a step-by-step analysis before the final answer.
Prompt example:
Analyze the problem step by step and then provide a clear final answer.
Problem: A company receives 120 leads per month. Of these, 25% become sales opportunities. Of the opportunities, 40% become customers. How many customers does the company get per month?
4. Self-consistency
Technique: analyzing the problem through more than one path and choosing the most consistent answer.
Prompt example:
Solve the problem using three different reasoning methods.
Then compare the results and choose the most consistent answer.
Problem: I have $1,000 to invest in ads. Each lead costs $20. The conversion rate from lead to customer is 10%. How many customers can I expect to generate?
5. Tree of Thoughts
Technique: exploring different paths before choosing the best solution.
Prompt example:
I want to create a content strategy for an artificial intelligence platform.
Explore three possible paths:
Educational content
Comparison content between tools
Content focused on news and trends
For each path, analyze the advantages, risks, and effort required.
Then choose the best strategy to grow organically.
6. RAG
Technique: using documents, sources, or external data as the basis for the response.
Prompt example:
Use only the information from the text below to answer.
Do not invent data that is not included in the provided content.
Source text:
“[Paste the document, article, manual, or knowledge base here]”
Question: What are the main benefits of this tool, and who is it best suited for?
7. ART — Automatic Reasoning and Tool Use
Technique: dividing the task into steps and indicating when to use external tools.
Prompt example:
I want to analyze a website’s performance.
Divide the task into steps.
Indicate which tools would be useful in each step, such as Google Analytics, PageSpeed Insights, Search Console, or SEO tools.
Then explain how to interpret the results and which actions to take first.
8. ReAct
Technique: combining reasoning, action, observation, and new analysis.
Prompt example:
Research updated information about the main AI models currently available.
For each step, follow this process:
Think about what needs to be verified
Consult a reliable source
Observe the data found
Update the answer based on the information
At the end, create a ranking with the most relevant models and explain the criteria used.
9. Multimodal Prompt
Technique: using text together with an image, audio, video, or another type of media.
Prompt example for an image:
Analyze the uploaded image and create a product description for e-commerce.
Focus on:
visual appearance, color, style, apparent material, possible uses, and ideal audience.
Write in a simple, objective, commercial tone.
10. Multimodal Contextualization
Technique: giving context before asking for image analysis.
Prompt example:
This image will be used in an article about artificial intelligence in the job market.
Analyze the image considering this context.
Explain whether it conveys innovation, productivity, and technology.
Then suggest visual improvements to make it look more professional.
11. Sequential Questioning
Technique: starting with broad questions and then going deeper.
Prompt example:
Analyze this image in steps:
First, describe what appears in the image.
Then, identify the most important elements.
Next, explain what visual message it communicates.
Finally, suggest how this image could be improved for a blog post.
12. Role-based Prompt
Technique: asking the model to act as a specific professional.
Prompt example:
Act as a digital marketing specialist.
Analyze this cover image for an article about generative AI.
Evaluate whether it attracts attention, matches the topic, and looks professional.
Then suggest improvements to increase clicks on the post.
13. Iterative Prompt
Technique: improving the response in rounds.
Initial prompt example:
Create a simple introduction for an article about prompt engineering.
Refinement prompt:
Now make this introduction more human, natural, and easy to understand.
New refinement:
Now shorten the text, keep the main meaning, and make it sound more professional.
14. Multimodal Prompt for E-commerce
Prompt example:
Analyze the photo of this product and create a description for an online store.
The description should include:
suggested product name, main visible features, benefits, style, ideal audience, and a call to purchase.
Do not invent technical information that is not visible in the image.
15. Multimodal Prompt for Marketing
Prompt example:
Analyze this image as if it were a social media campaign piece.
Identify:
main message, likely audience, strengths, weaknesses, and caption suggestions.
Then create 3 caption versions: one educational, one persuasive, and one more emotional.
16. Multimodal Prompt for Education
Prompt example:
Analyze this educational chart/image and turn the content into a simple explanation for beginners.
Use easy language, practical examples, and organize the answer into short topics.
17. Multimodal Prompt for Design
Prompt example:
Act as a visual designer.
Analyze this layout and evaluate:
visual hierarchy, spacing, contrast, colors, readability, and organization of elements.
Then suggest practical improvements to make the design cleaner and more modern.
References: https://skillbuilder.aws/learn/VF6H4SZ1BU/foundations-of-prompt-engineering/








टिप्पणियाँ0
टिप्पणी करने के लिए कृपया साइन इन करें।