谷歌:2024提示词工程(Prompt Engineering)白皮书(英文版)(65页).pdf

编号:903166 PDF  中文版  DOCX 65页 6.50MB 下载积分:VIP专享
下载报告请您先登录!

谷歌:2024提示词工程(Prompt Engineering)白皮书(英文版)(65页).pdf

1、Prompt EngineeringAuthor:Lee BoonstraPrompt EngineeringSeptember 20242AcknowledgementsReviewers and ContributorsMichael ShermanYuan CaoErick ArmbrustAnant NawalgariaAntonio GulliSimone CammelCurators and EditorsAntonio GulliAnant NawalgariaGrace Mollison Technical WriterJoey HaymakerDesignerMichael

2、Lanning Introduction 6Prompt engineering 7LLM output configuration 8 Output length 8 Sampling controls 9 Temperature 9 Top-K and top-P 10Puttingitalltogether 11Prompting techniques 12 General prompting/zero shot 13 One-shot&few-shot 14 System,contextual and role prompting 17 System prompting 18 Role

3、 prompting 21 Contextual prompting 23Table of contents Step-back prompting 25 Chain of Thought(CoT)29 Self-consistency 32 Tree of Thoughts(ToT)36 ReAct(reason&act)37 Automatic Prompt Engineering 40 Code prompting 42 Prompts for writing code 42 Prompts for explaining code 44 Prompts for translating c

4、ode 46 Prompts for debugging and reviewing code 48 What about multimodal prompting?54Best Practices 54 Provide examples 54 Design with simplicity 55Bespecificabouttheoutput 56 Use Instructions over Constraints 56 Control the max token length 58 Use variables in prompts 58 Experiment with input forma

5、ts and writing styles 59Forfew-shotpromptingwithclassificationtasks,mixuptheclasses 59 Adapt to model updates 60 Experiment with output formats 60 Experiment together with other prompt engineers 61 CoT Best practices 61Documentthevariouspromptattempts 62Summary 63Endnotes 65Prompt EngineeringSeptemb

6、er 20246IntroductionWhen thinking about a large language model input and output,a text prompt(sometimes accompanied by other modalities such as image prompts)is the input the model uses topredictaspecificoutput.Youdontneedtobeadatascientistoramachinelearningengineereveryonecanwriteaprompt.However,cr

友情提示

1、下载报告失败解决办法
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站报告下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。

本文(谷歌:2024提示词工程(Prompt Engineering)白皮书(英文版)(65页).pdf)为本站 (111111) 主动上传,三个皮匠报告文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三个皮匠报告文库(点击联系客服),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。
客服
商务合作
小程序
服务号
折叠