AI Prompt Engineering: Difference between revisions

Jump to navigation Jump to search
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
Tips of ChatGPT prompts
AI Prompt Engineering: A Practical Guide


{{Template:Generative AI Tool}}
{{Template:Generative AI Tool}}


{{LanguageSwitcher | content = [[ChatGPT prompts | English]], [[ChatGPT prompts in Mandarin | 漢字]] }}
{{LanguageSwitcher | content = [[AI Prompt Engineering | English]], [[AI Prompt Engineering in Mandarin | 漢字]] }}


== Automatic Prompt Generation and Enhancement ==
Use AI platforms to automatically generate and optimize prompts based on your requirements:


== Prompt Generation ==
* {{Gd}} Anthropic [https://platform.claude.com/dashboard Claude Developer Platform]
# [https://platform.openai.com/docs/guides/prompt-generation?context=text-out Prompt generation - OpenAI API]: A tool on the OpenAI platform that allows users to test and generate prompts using the GPT-4o model
*# How to: Select 'Generate a prompt' to optimize for Claude reasoning or non-reasoning models
# [https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/prompt-generator Automatically generate first draft prompt templates - Anthropic]: Providing an automatic prompt generation based on user requirements. Login to [https://console.anthropic.com/dashboard Anthropic Console] --> Click on "Generate a prompt"
*# Pricing: The Console/API pricing is completely separate from Claude.ai subscriptions (Pro, Max, Team). When using "Generate a prompt," generating a structured prompt costs only a few cents, and testing a prompt costs a fraction of a cent per test. Additionally, the free tier provides roughly $10 USD in monthly credits, so light usage may not cost anything extra at all.<ref>[https://nickgarnett.substack.com/p/the-anthropic-console-a-practical (1) The Anthropic Console: A Practical Review for Prompt Writers]</ref>
* [https://platform.openai.com/chat/edit?models=gpt-5&optimize=true OpenAI API - Edit Prompt] - Optimize prompts for OpenAI o3, GPT-4.1, GPT-5, GPT-5.1, and GPT-5.2 models
* Google [https://docs.cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/prompt-optimizer Vertex AI prompt optimizer]


== How to improve the prompt design ==
== Converting Conversations into Reusable Prompts ==


<pre>
<pre>
Line 36: Line 40:
2. Commands to verify the success of each previous step
2. Commands to verify the success of each previous step
</pre>
</pre>


== Role Playing ==
== Role Playing ==
Line 176: Line 181:
× List important sentences in bullet points
× List important sentences in bullet points
* Meeting follow-up items
* Meeting follow-up items
=== Fact-check ===
When fact-checking online rumors, it is recommended to include a source citation instruction in the prompt to improve the verifiability of the content.
A common practice is to append the following instruction to the prompt:
<pre>
Please use footnote-style citations to mark all referenced online sources, and list all cited sources at the end of the article.
Once this format is applied, each online reference within the body text will be marked with a numbered citation (e.g. `[1]`, `[2]`), with all corresponding sources compiled at the end of the article for readers to verify further.
**See Also**
- Fact-checking
- Citation formats
- Footnotes and endnotes
**References**
- *(List relevant sources here)*
</pre>


=== Plain English Writing ===
=== Plain English Writing ===
Line 267: Line 291:
[Detailed rules for generating clickbait headlines follow...]
[Detailed rules for generating clickbait headlines follow...]


=== [Web Search Required] Cross-Language Research: Analyzing Arguments ===
=== News Quality Assessment ===
 
Prompt
Prompt<ref>[https://www.facebook.com/mannyyhl/posts/pfbid0dyQVePFo8SUHMDQqvoBqoAEAi2uoQqqwkpq1WiyLYctCc2cvXPYhrasVAgUxmsyhl Manny YH Li - 真的蠻推薦大家寫出任何東西後都丟去給 AI 評評理。 例如剛剛我丟了早上隨手寫的那篇 memo 給... ]</ref>:
<pre>
<pre>
Using both Chinese and English search materials, evaluate each argument in the article
Please help me analyze whether a news report meets rigorous journalistic standards.
</pre>


Suitable Models
The topic this time is a breaking news report on <TITLE>, and I want to clarify the following points:
* ✅ Suitable for GPT-4
* ✅ Suitable for Perplexity
* ✅ Suitable for Deepseek


=== Role of Proofreading and Correcting Typos: Chinese Literature Professor ===
(1) Primary question: Does this news report cite multiple sources? Does it have sufficient fact-checking and balance?
Prompt for having AI correct article typos ([https://chat.openai.com/share/f5354a39-6e01-4e57-bdd8-6f0f57bc68d9 shared chat])


Suitable Models
(2) Extended question: Besides the number of sources, what other news quality indicators (such as background context, objectivity, structural completeness) have not been adequately considered? Is it possible that the reporting format (such as breaking news) might affect the judgment of its qualification?
* ✅ Suitable for GPT-4
* ❌ Not suitable for GPT-3.5


[Detailed proofreading instructions follow...]
Please help me:
 
- Establish a news quality assessment framework (can be presented in table format)
=== Role of Proofreading and Correcting Typos: Traditional Chinese Article Proofreader ===
- Apply this framework to analyze this report
Suitable Models
</pre>
* ✅ Suitable for GPT-4
* ❌ Not suitable for GPT-3.5
 
[Detailed proofreading instructions follow...]
 
Here's the English translation:


```
== English Learning ==
== English Learning ==
=== English Conversation Practice ===
=== English Conversation Practice ===
Line 447: Line 456:
</pre>
</pre>


== De-identification of photo ==
Prompt
<pre>
Please transform this uploaded image into a vibrant anime watercolor style. Use soft brushstrokes and a warm color palette. Important: Do not retain the specific facial features of the people in the photo; instead, reimagine them as generic anime characters with clear eyes and expressions that match the scene.
</pre>
Model: Gemini 2.5 Flash Image (Nano Banana)


== System Prompt ==
== System Prompt ==

Navigation menu