OpenAI:GPT 最佳实践(大白话编译解读版)
更新⽇期:2023-10-2OpenAI:GPT 最佳实践(⼤⽩话编译解读版)写在前⾯这是我们策划的《提⽰词⼯程祛魅》主题⼤会的附属产品。来⾃ OpenAI 的官⽅⽂档。今年 6 ⽉份,OpenAI 更新了这⼀篇题⽬为《GPT 最佳实践/GPT Best Practice》的⽂档;⾥⾯介绍了⼀些与 ChatGPT 交互的技巧,且附有⽤例。⾸先,这部分内容本来就是完全免费、完全公开的。同时,它是⽤通俗的英语写成,并不是⼀份晦涩难懂的技术⽂档。⼈⼈都可以通过掌握这些简单的原则, “getting better results from GPTs”——让 GPT 为你输出想要的结果。因为我们没有看到特别好的中⽂版本,所以我们⾃⼰对它进⾏了重新编译,让语⾔⻛格尽量直⽩,并补充了⼀些在中⽂互联⽹环境⾥更容易理解的⽤例,形成了这份“⼤⽩话编译解读版本”的 OpenAI:GPT 最佳实践。欢迎⼤家阅读和交流。希望我们编译这份材料的⽬标能基本达到,即:为提⽰词⼯程「祛魅」(中译中:有些付费课不必买)。感谢下列参与者《提⽰词⼯程祛魅进阶》主题⼤会的 Speakers——陈财猫 和 Rain。协助筹办活动的:谢国希谢⽼师、以及 HackHouse 的各位童鞋。OpenAI 推荐的相关资源列表以下均在 OpenAI Cookbook ⾥:另外,OpenAI Community ⾥也有很多宝贵的讨论!lib / ⼯具 Prompting libraries & tools提⽰词⼯程指南 Prompting guides视频课 Video courses论⽂ Papers on advanced prompting to improve reasoning⽬录第⼀部分 六⼤提⽰词策略概览第⼆部分 技巧实战关于 @AI 加⼀切各⾏各业的⼈们怎么利⽤⽣成式 AI 辅助⾃⼰的学习和⼯作?这项技能在未来⼀定会成为职业教育和义务教育的⼀个重要部分。第⼀部分 六⼤策略概览六个能提⾼输出质量的核⼼提⽰词策略Six strategies for getting better resultsThis guide shares strategies and tactics for getting better results from GPTs. The methods described here can sometimes be deployed in combination for greater eIJect. We encourage experimentation to find the methods that work best for you.这是⼀份指南。我们列出了⼀些策略和技巧,它们或许能帮你从 GPT 中拿到更好的输出结果。我们⿎励你多试——通过⾃⼰反复实验,找出最合适的技巧。Some of the examples demonstrated here currently work only with our most capable model, gpt-4. If you don't yet have access to gpt-4 consider joining the waitlist. In general, if you find that a GPT model fails at a task and a more capable model is available, it's oĿen worth trying again with the more capable model.有些⽤例只在⽬前地表最强模型 gpt-4 上⽣效。记住,模型是第⼀⼤影响要素。只要你有更强的模型可⽤,我们⼀般都会建议你⽤更强的模型。附录 OpenAI Playground 是什么,怎么⽤?我们希望以「内容策展」的⽅式,通过邀请在⾃⼰⾏业⾥有充分经验的 Speakers 做主题分享,来完成这类信息的收集整理和传递。01 「知道⾃⼰要什么,就展开说说」Write clear instructionsGPTs can’t read your mind. If outputs are too long, ask for brief replies. If outputs are too simple, ask for expert-level writing. If you 01 - 延伸:“展开说说”的技巧Include details in your query to get more relevant answers1.1 你越讲细节,输出就越好dislike the format, demonstrate the format you’d like to see. The less GPTs have to guess at what you want, the more likely you’ll get it.清晰地告诉 GPT,你想要什么。GPT 不会读⼼术。你不说,它就猜。所以有时不是能⼒不⾏,就是你没说清,它没猜准。你让它猜你的⼼思猜得越少,结果就越好。嫌输出太⻓?那就直说,要短的。嫌输出太简单?要求提⾼,说要专家级的。嫌格式不好?给它看个样。Ask the model to adopt a persona1.2 搞⻆⾊扮演,⼀直很好⽤Use delimiters to clearly indicate distinct parts of the input1.3 使⽤分隔符号,明确地把话和话区分开来Specify the steps required to complete a task1.4 解题步骤,你⾃⼰最好也负责展开Provide examples1.5 多给举⼏个例⼦Specify the desired length of the output1.6 说⼀下你想要多⻓的答案02 「给 GPT 发阅读材料」Provide reference textGPTs can confidently invent fake answers, especially when asked about esoteric topics or for citations and URLs. In the same way that a sheet of notes can help a student do better on a test, providing reference text to GPTs can help in answering with fewer fabrications.GPT经常⾃编答案。瞎编重灾区:⽐较冷⻔的问题、需要引⽤,需要读取链接的问题。我们都知道,最常⻅的考试题型,是给⼀⼤篇阅读材料,要求阅读并回答问题。纯开放式问答对于⼈和机器来说都⽐较难。02 - 延伸:“发阅读材料”的技巧Instruct the model to answer using a reference text2.1 要求按阅读材料作答,不开放答Instruct the model to answer
[未来力场]:OpenAI:GPT 最佳实践(大白话编译解读版),点击即可下载。报告格式为PDF,大小1.04M,页数38页,欢迎下载。