## Prompt Engineering Techs ![圖片](https://hackmd.io/_uploads/Hk9G39TrT.png =800x) ##### (GPT3.5 and GPT4) --- ##### (ELEMENTARY LEVEL) # Zero-shot ### Use the gen AI directly without any tip ---- ![圖片](https://hackmd.io/_uploads/HJmwF5THa.png) ---- ##### (ELEMENTARY LEVEL) / [Reference 2020](https://arxiv.org/abs/2001.08361)) # Few-shot ### With some examples !!! ---- ![圖片](https://hackmd.io/_uploads/HklOnFqTSa.png) --- ##### (JUNIOR LEVEL) / [Reference 2022](https://arxiv.org/abs/2201.11903)) ## Chain-of-Thought (CoT) ### Teach GPT thinking. ---- ![圖片](https://www.promptingguide.ai/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fcot.1933d9fe.png&w=1080&q=75) #### Magic words : Step by step. ---- ![圖片](https://hackmd.io/_uploads/Hyj3esTB6.png =500x) #### (The latest version of GPT3.5 can do thinking now.) #### Thinking = "Do the things step by step" ---- ![圖片](https://hackmd.io/_uploads/ByD00cTHp.png) #### CoT with few-shot : make GPT follow your rules. #### (or Self-Consistency) --- ##### (SENIOR / [Reference 202305](https://github.com/dave1010/tree-of-thought-prompting)) ## Tree of Thoughts (ToT) #### Make GPT reviews/rates itself. ---- ##### The very first prompt version of our translation project : ```text Please rate the result and give me a full score of 100 when the generation is completed. You need to check the quality of the translation results like your customers in {Certain Area}. If the point is less than 99, re-generate again until it's bigger than 99. ``` #### (Re-generating if the score is low.) ---- #### Magic words : ```text Imagine three different experts are answering this question. All experts will write down 1 step of their thinking, then share it with the group. Then all experts will go on to the next step, etc. If any expert realizes they're wrong at any point then they leave. The question is ... ``` ---- ![圖片](https://hackmd.io/_uploads/HytAGhRr6.png) ---- ![圖片](https://hackmd.io/_uploads/S1vbm3AST.png =500x) ##### They do the discussion !!! ---- ![圖片](https://www.promptingguide.ai/_next/image?url=%2F_next%2Fstatic%2Fmedia%2FTOT.3b13bc5e.png&w=1200&q=75) ---- ##### (SENIOR / [Reference 202307](https://github.com/holarissun/PanelGPT)) ## PanelGPT #### Discussion like a pro ![Jack-Ma_Elon-Musk](https://hackmd.io/_uploads/B1eVpVg8a.jpg =400x) ---- ```text 3 experts are discussing the question with a panel discussion, trying to solve it step by step, and make sure the result is correct and avoid penalty: ``` --- ![88v8wv](https://hackmd.io/_uploads/HJ6l0BQ86.jpg) --- Reference : https://www.promptingguide.ai/
{"title":"1211 Sharing","slideOptions":"{\"transition\":\"slide\"}","contributors":"[{\"id\":\"1d3c6e3b-bac0-422b-914e-5f3068dadf3b\",\"add\":3806,\"del\":1031}]","description":"圖片"}
    274 views