AI Prompt Engineering: Difference between revisions
Jump to navigation
Jump to search
m
no edit summary
m (→System prompt) |
mNo edit summary |
||
| Line 28: | Line 28: | ||
</pre> | </pre> | ||
== Convert == | |||
== Convert the response to json == | === Convert the response to json === | ||
* 目的:將機器人的結果可以更結構化,減少後續資料清理的功 | * 目的:將機器人的結果可以更結構化,減少後續資料清理的功 | ||
* 提示:「... And put your response into a JSON with keys "aaa", "bbb", "ccc":」、「分析底下這句話,直接以 JSON 回傳抓取到的資訊 ,包含 ...」<ref>[https://www.facebook.com/DotNetWalker/posts/pfbid0X6Hs5U3j3Hd6v7ddcgunUHwzAxpZTNK3NjRt9cSE5v3FPf38QGk4Lxg3AFJPtBWkl ‧NET Walker 大內行者 (2023). 既然 ChatGPT 那麼厲害,都聽得懂人話,那分析用戶的 intent 與 entities 不正是他的強項嗎?]</ref> 其他提示寫法「Provide them in JSON format with the following keys: book_id, title, author, genre.」<ref>[https://www.deeplearning.ai/short-courses/chatgpt-prompt-engineering-for-developers/ ChatGPT Prompt Engineering for Developers - DeepLearning.AI]、「Output a json object that contains the following keys: french_summary, num_names.」</ref> | * 提示:「... And put your response into a JSON with keys "aaa", "bbb", "ccc":」、「分析底下這句話,直接以 JSON 回傳抓取到的資訊 ,包含 ...」<ref>[https://www.facebook.com/DotNetWalker/posts/pfbid0X6Hs5U3j3Hd6v7ddcgunUHwzAxpZTNK3NjRt9cSE5v3FPf38QGk4Lxg3AFJPtBWkl ‧NET Walker 大內行者 (2023). 既然 ChatGPT 那麼厲害,都聽得懂人話,那分析用戶的 intent 與 entities 不正是他的強項嗎?]</ref> 其他提示寫法「Provide them in JSON format with the following keys: book_id, title, author, genre.」<ref>[https://www.deeplearning.ai/short-courses/chatgpt-prompt-engineering-for-developers/ ChatGPT Prompt Engineering for Developers - DeepLearning.AI]、「Output a json object that contains the following keys: french_summary, num_names.」</ref> | ||
| Line 78: | Line 78: | ||
</pre> | </pre> | ||
== Convert a transcript into article == | == Convert a transcript into article == | ||
| Line 115: | Line 100: | ||
* "Convert to table: {{kbd | key=接上文章}}"<ref>[https://www.facebook.com/groups/aicomunity/posts/3450445248608199/ ChatGPT Experts | Nice trick "Convert to table": | Facebook]</ref> | * "Convert to table: {{kbd | key=接上文章}}"<ref>[https://www.facebook.com/groups/aicomunity/posts/3450445248608199/ ChatGPT Experts | Nice trick "Convert to table": | Facebook]</ref> | ||
* 或「請將下面文章整理成表格,欄位是 (1) {{kbd | key=欄位}}: {{kbd | key=接上文章}}」 | * 或「請將下面文章整理成表格,欄位是 (1) {{kbd | key=欄位}}: {{kbd | key=接上文章}}」 | ||
=== Convert Excel to PowerPoint === | |||
[[Convert excel to powerpoint]] | |||
== Clarify a question == | |||
* 目的:同時扮演辯論隊的正方與反方 | |||
* 效果:找 AI 機器人同時當辯論隊的正方與反方的角色。感覺機器人還不是很理解「辯論」,陳述的方式也還好,也許需要再跟機器人詳細說明如何陳述論點。 | |||
* 提示:「這是一場辯論比賽,主題關於人類世界是否該使用核能發電,接下來請正方提出論點,反方需要攻擊正方的論點」<ref>[https://www.facebook.com/groups/558748662379266/?multi_permalinks=601145858139546&hoisted_section_header_type=recently_seen AI 詠唱者交流(AIGC 人工智慧產製內容) | Facebook]</ref> | |||
* 範例: | |||
<pre> | |||
你參與農曆春節制度的辯論,有支持農曆春節制度的正方辯論隊,以及反對農曆春節制度的反方辯論隊。總共有四個階段: | |||
第一階段:你要扮演正方辯論隊隊員,你要提出支持農曆春節制度的三個論點。論點的格式是「我支持這個制度,理由是什麼?」 | |||
第二階段:你要扮演反方辯論隊隊員,你要質詢正方觀點內最多三個問題。質詢論點的格式是「我質詢正方觀點內的問題,理由是什麼?」 | |||
第三階段:你要扮演正方辯論隊隊員,回答第二階段反方辯論隊隊員提出的質詢。回答的格式是「我反對反方的質詢,理由是什麼?」 | |||
第四階段:你要扮演辯論的裁判,整理正方與反方的三個重點,並且決定正方或反方哪一個觀點比較好? | |||
</pre> | |||
== Draft of email writing == | == Draft of email writing == | ||