AI Prompt Engineering: Difference between revisions
Jump to navigation
Jump to search
m
→Convert the response to json
| Line 57: | Line 57: | ||
== 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]</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> | ||
修改前 | 修改前 | ||