这个 wiki 很全面:https://learningprompt.wiki/
完全 cover 了 Andrew Ng 的教程,并且有更多内容且 cover midjourney,所以自己就不用再写了。
感谢作者 Jimmy Wong
这个 wiki 很全面:https://learningprompt.wiki/
完全 cover 了 Andrew Ng 的教程,并且有更多内容且 cover midjourney,所以自己就不用再写了。
感谢作者 Jimmy Wong
输入:
Perform the following actions:
1 – Summarize the following text delimited by triple quotes with 1 sentence.
2 – Translate the summary into French.
3 – List each name in the French summary.
4 – Output a json object that contains the following keys: french_summary, num_names.
Separate your answers with line breaks.
Text:
”’
In a charming village, siblings Jack and Jill set out on a quest to fetch water from a hilltop well. As they climbed, singing joyfully, misfortune struck—Jack tripped on a stone and tumbled down the hill, with Jill following suit. Though slightly battered, the pair returned home to comforting embraces. Despite the mishap, their adventurous spirits remained undimmed, and they continued exploring with delight.
”’
输出:
Two siblings, Jack and Jill, go on an adventurous quest to fetch water from a hilltop well, but misfortune strikes as Jack trips and tumbles down the hill, with Jill following, yet they return home with comforting embraces and continue their exploration undeterred.
Deux frères et sœurs, Jack et Jill, partent pour une aventureuse quête pour aller chercher de l’eau d’un puits au sommet de la colline, mais une malchance les frappe, et bien que légèrement blessés, ils continuent leur exploration avec des esprits intrépides.
Names: Jack, Jill.
{“french_summary”: “Deux frères et sœurs, Jack et Jill, partent pour une aventureuse quête pour aller chercher de l’eau d’un puits au sommet de la colline, mais une malchance les frappe, et bien que légèrement blessés, ils continuent leur exploration avec des esprits intrépides.”, “num_names”: 2}
Andrew Ng 最近在他的 deeplearning.ai 上发布了 ChatGPT Prompt Engineering for Developers 教程。这个教程大概一个半小时左右,属于 how to 而非 what is,虽然标题带有 for Developers,但不需要编程基础也可以看懂。
这篇文章是我对 Andrew 教程的 notes + 简短总结。并非原创,只是为了自己学习+记忆方便。文章中的输入/输出使用 ChatGPT 的免费版本。
看完教程的一些感想:
不废话了,下面是 notes,夹杂一些自己的感想:
使用不常见的字符组合 ~~~ 或 ”’ 作为分隔符,用来提供明确的输入。
输入:
Summarize the text delimited by triple backticks into a single sentence.
```
You should express what you want a model to do by providing instructions that are as clear and specific as you can possibly make them. This will guide the model towards the desired output, and reduce the chances of receiving irrelevant or incorrect responses. Don't confuse writing a clear prompt with writing a short prompt. In many cases, longer prompts provide more clarity and context for the model, which can lead to more detailed and relevant outputs.
```
输出:
Providing clear and specific instructions to a model will guide it towards the desired output and reduce the chances of receiving irrelevant or incorrect responses, and longer prompts can provide more clarity and context for the model, leading to more detailed and relevant outputs.
继续阅读ChatGPT Prompt Engineering – 1. 基本原则 (1)