Google_提示工程(英)
Prompt EngineeringAuthor: Lee Boonstra 提示工程作者:LeeBoonstraPrompt提示工程EngineeringAuthor: Lee Boonstra作者:LeeBoonstraGoogleGooglePrompt EngineeringFebruary 20252AcknowledgementsContent contributorsMichael ShermanYuan CaoErick ArmbrustAnant NawalgariaAntonio GulliSimone CammelCurators and EditorsAntonio GulliAnant NawalgariaGrace Mollison Technical WriterJoey HaymakerDesignerMichael Lanning 提示工程2025年2月2 致谢内容贡献者MichaelShermanYuanCaoErickArmbrustAnantNawalgariaAntonioGulliSimoneCammelCuratorsandEditorsAntonioGulliAnantNawalgariaGraceMollison技术文档作者JoeyHaymaker设计师MichaelLanning提示工程Prompt EngineeringAcknowledgements致谢Content contributors内容贡献者Michael ShermanMichael ShermanYuan CaoYuan CaoErick ArmbrustErick ArmbrustAnant NawalgariaAnant NawalgariaAntonio GulliAntonio GulliSimone CammelSimone CammelCurators and EditorsCurators and EditorsAntonio GulliAntonio GulliAnant NawalgariaAnant NawalgariaGrace MollisonGrace MollisonTechnical Writer技术文档作者Joey HaymakerJoey HaymakerDesigner设计师MichaelMichael LanningLanningFebruary 20252025年2月Introduction 6Prompt engineering 7LLM output configuration 8Output length 8Sampling controls 9Temperature 9Top-K and top-P 10Putting it all together 11Prompting techniques 13General prompting / zero shot 13One-shot & few-shot 15System, contextual and role prompting 18System prompting 19Role prompting 21Contextual prompting 23Table of contents 引言6提示工程7LLM输出配置8输出长度8采样控制9温度9Top‑K和top‑P10将所有内容整合在一起11提示技术13通用提示/零样本13单样本和少样本15系统、上下文和角色提示18系统提示19角色提示21上下文提示23目录目录TableofcontentsIntroduction引言6提示工程Z.LLM.输出配算.8.输出长度8采样控制.9.温度.9.ToP-K.和.tOP-P.10.将所有内Prompt engineering.容整合在一起11提示技术13通用提示/零样本13单样本和少样本15系统、上下文和角色提示18系统提示19角色提示2Y上下叉提示23LLM output configuration.Output length.Sampling controls.Temperature.Top-K and top-P10Putting it all together.11Prompting techniques.,13General prompting / zero shot,13One-shot & few-shot..15System, contextual and role prompting..18System prompting..19Role prompting..21Contextual prompting.Step-back prompting 25Chain of Thought (CoT) 29Self-consistency 32Tree of Thoughts (ToT) 36ReAct (reason & act) 37Automatic Prompt Engineering 40Code prompting 42Prompts for writing code 42Prompts for explaining code 44Prompts for translating code 46Prompts for debugging and reviewing code 48What about multimodal prompting? 54Best Practices 54Provide examples 54Design with simplicity 55Be specific about the output 56Use Instructions over Constraints 56Control the max token length 58Use variables in prompts 58Experiment with input formats and writing styles 59For few-shot prompting with classification tasks, mix up the classes 59Adapt to model updates 60Experiment with output formats 60 后退提示25思维链(CoT)29自洽性32思维树(ToT)36ReAct(推理与行动)37自动提示工程40代码提示42编写代码的提示42解释代码的提示44翻译代码的提示46调试和审查代码的提示48多模态提示怎么办?54最佳实践54提供示例54简洁设计55明确输出内容56使用指
Google_提示工程(英),点击即可下载。报告格式为PDF,大小16.86M,页数67页,欢迎下载。



