AI Prompt Engineering: Difference between revisions

Jump to navigation Jump to search
Line 44: Line 44:
* 組合技 Summarize the following and translate into Traditional Chinese:
* 組合技 Summarize the following and translate into Traditional Chinese:
* Summarize the article in bullet points: 結果有摘要,但是沒有列點方式呈現結果 {{access | date=2023-02-27}}
* Summarize the article in bullet points: 結果有摘要,但是沒有列點方式呈現結果 {{access | date=2023-02-27}}
== Convert the response to json ==
* 目的:將機器人的結果可以更結構化,減少後續資料清理的功
* 提示:「... And put your response into a JSON with keys "aaa", "bbb", "ccc":」
修改前
<pre>
Human: Write 10 keywords, sentiment and Named entity recognition for following article:
今天台北天氣真好,希望可以不用上班
AI: Keywords: Taipei, Weather, Work, Today. Sentiment: Positive. Named Entity Recognition: Taipei, Work.
</pre>
修改後
<pre>
Human: Write 10 keywords, sentiment and Named entity recognition for following article. And put your response into a JSON with keys "keywords", "sentiment", "entity":
今天台北天氣真好,希望可以不用上班
AI:
{
    "keywords": ["Taipei", "weather", "not working", "today"],
    "sentiment": "positive",
    "entity": ["Taipei", "today"]
}
</pre>


== Clarify a question ==
== Clarify a question ==
Anonymous user

Navigation menu