1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > LLMs:OpenAI 官方文档发布提高 GPT 使用效果指南—GPT最佳实践(GPT best practices)翻译与解读

LLMs:OpenAI 官方文档发布提高 GPT 使用效果指南—GPT最佳实践(GPT best practices)翻译与解读

时间:2021-04-21 10:16:16

相关推荐

LLMs:OpenAI 官方文档发布提高 GPT 使用效果指南—GPT最佳实践(GPT best practices)翻译与解读

LLMs:OpenAI 官方文档发布提高 GPT 使用效果指南—GPT最佳实践(GPT best practices)翻译与解读

导读:为了获得优质输出,需要遵循几点基本原则:

>> 写清楚指令:将任务和期望输出描述得尽可能清楚。GPT 无法读取您的思维,需要明确的指令。

>> 提供参考文本:让GPT基于参考文本回答问题,可以减少错误信息。

>> 将复杂任务分解为短小简洁的子任务:这可以降低错误率。

>> 让GPT思考一段时间:显式告知GPT需要细思密 practice。让GPT先解决问题再回答,可以有更准确的答案。

>> 结合外部工具:如果外部工具能更有效完成任务,则可以利用其优化GPT输出。

>> 有系统地测试变化:通过广泛的测试集系统地评估效果。这有助于优化系统设计。

总的来说,直接询问GPT通常得到粗略的答案。只有通过改变上下文和提问方式,才能取得理想效果。所以只要有足够的时间和最新强大的GPT模型,情况通常会更好。

目录

OpenAI 官方文档发布提高 GPT 使用效果指南—GPT最佳实践GPT best practices翻译与解读

获得更好结果的六个策略Six strategies for getting better results—清晰指令/提供参考文本/拆分任务/给予思考/外部工具/量化性能

1、编写清晰的指示Write clear instructions——包含详细信息/人物角色/分隔符/划分步骤/提供示例/指定输出长度

2、提供参考文本Provide reference text——提供参考文本/提供参考引用

3、将复杂任务拆分为简单子任务Split complex tasks into simpler subtasks——意图分类/先前对话压缩为摘要再继续/长文档逐步摘要并递归建全

4、给予 GPT "思考" 的时间Give GPTs time to "think"——始于原理逐步推理/构建一系列内心独白/是否遗漏内容

5、使用外部工具Use external tools——嵌入外部知识/借鉴代码或API示例

6、系统化地测试变化Test changes systematically——黄金标准答案评估输出

Tactics战术

1、策略:编写清晰的指示Strategy: Write clear instructions

1.1、战术:在查询中包含详细信息以获得更相关的答案Tactic: Include details in your query to get more relevant answers

1.2、战术:要求模型采用一种人物角色Tactic: Ask the model to adopt a persona

1.3、战术:使用分隔符清晰标示输入的不同部分Tactic: Use delimiters to clearly indicate distinct parts of the input

1.4、战术:指定完成任务所需的步骤Tactic: Specify the steps required to complete a task

1.5、战术:提供示例Tactic: Provide examples

1.6、战术:指定输出的期望长度Tactic: Specify the desired length of the output

2、战略:提供参考文本Strategy: Provide reference text

2.1、战术:指示模型使用参考文本回答问题Tactic: Instruct the model to answer using a reference text

2.2、战术:指示模型使用参考文本中的引用来回答问题Tactic: Instruct the model to answer with citations from a reference text

3、战略:将复杂任务拆分为更简单的子任务Strategy: Split complex tasks into simpler subtasks

3.1、战术:使用意图分类来识别用户查询的最相关指令Tactic: Use intent classification to identify the most relevant instructions for a user query

3.2、战术:对于需要非常长对话的对话应用,对先前对话进行摘要或过滤Tactic: For dialogue applications that require very long conversations, summarize or filter previous dialogue

3.3、战术:将长文档逐部分进行摘要,并递归构建完整摘要Tactic: Summarize long documents piecewise and construct a full summary recursively

4、战略:给予 GPT 模型"思考"的时间Strategy: Give GPTs time to "think"

4.1、战术:指示模型在得出结论之前从基本原理开始推理Tactic: Instruct the model to work out its own solution before rushing to a conclusion

4.2、战术:使用内心独白或一系列查询来隐藏模型的推理过程Tactic: Use inner monologue or a sequence of queries to hide the model's reasoning process

4.3、战术:询问模型在之前的步骤中是否遗漏了任何内容Tactic: Ask the model if it missed anything on previous passes

5、策略:使用外部工具Strategy: Use external tools

5.1、战术:使用基于嵌入的搜索来实现高效的知识检索Tactic: Use embeddings-based search to implement efficient knowledge retrieval

5.2、战术:使用代码执行进行更准确的计算或调用外部 APITactic: Use code execution to perform more accurate calculations or call external APIs

6、策略:系统化地测试更改Strategy: Test changes systematically

6.1、战术:根据黄金标准答案评估模型输出Tactic: Evaluate model outputs with reference to gold-standard answers

其他资源Other resources

OpenAI 官方文档发布提高 GPT 使用效果指南—GPT最佳实践GPT best practices翻译与解读

获得更好结果的六个策略Six strategies for getting better results清晰指令/提供参考文本/拆分任务/给予思考/外部工具/量化性能

1、编写清晰的指示Write clear instructions——包含详细信息/人物角色/分隔符/划分步骤/提供示例/指定输出长度

2、提供参考文本Provide reference text——提供参考文本/提供参考引用

3、将复杂任务拆分为简单子任务Split complex tasks into simpler subtasks——意图分类/先前对话压缩为摘要再继续/长文档逐步摘要并递归建全

4、给予 GPT "思考" 的时间Give GPTs time to "think"——始于原理逐步推理/构建一系列内心独白/是否遗漏内容

5、使用外部工具Use external tools——嵌入外部知识/借鉴代码或API示例

6、系统化地测试变化Test changes systematically——黄金标准答案评估输出

Tactics战术

1、策略:编写清晰的指示Strategy: Write clear instructions

1.1、战术:在查询中包含详细信息以获得更相关的答案Tactic: Include details in your query to get more relevant answers

1.2、战术:要求模型采用一种人物角色Tactic: Ask the model to adopt a persona

1.3、战术:使用分隔符清晰标示输入的不同部分Tactic: Use delimiters to clearly indicate distinct parts of the input

1.4、战术:指定完成任务所需的步骤Tactic: Specify the steps required to complete a task

1.5、战术:提供示例Tactic: Provide examples

1.6、战术:指定输出的期望长度Tactic: Specify the desired length of the output

2、战略:提供参考文本Strategy: Provide reference text

2.1、战术:指示模型使用参考文本回答问题Tactic: Instruct the model to answer using a reference text

2.2、战术:指示模型使用参考文本中的引用来回答问题Tactic: Instruct the model to answer with citations from a reference text

3、战略:将复杂任务拆分为更简单的子任务Strategy: Split complex tasks into simpler subtasks

3.1、战术:使用意图分类来识别用户查询的最相关指令Tactic: Use intent classification to identify the most relevant instructions for a user query

3.2、战术:对于需要非常长对话的对话应用,对先前对话进行摘要或过滤Tactic: For dialogue applications that require very long conversations, summarize or filter previous dialogue

3.3、战术:将长文档逐部分进行摘要,并递归构建完整摘要Tactic: Summarize long documents piecewise and construct a full summary recursively

4、战略:给予 GPT 模型"思考"的时间Strategy: Give GPTs time to "think"

4.1、战术:指示模型在得出结论之前从基本原理开始推理Tactic: Instruct the model to work out its own solution before rushing to a conclusion

4.2、战术:使用内心独白或一系列查询来隐藏模型的推理过程Tactic: Use inner monologue or a sequence of queries to hide the model's reasoning process

4.3、战术:询问模型在之前的步骤中是否遗漏了任何内容Tactic: Ask the model if it missed anything on previous passes

5、策略:使用外部工具Strategy: Use external tools

5.1、战术:使用基于嵌入的搜索来实现高效的知识检索Tactic: Use embeddings-based search to implement efficient knowledge retrieval

5.2、战术:使用代码执行进行更准确的计算或调用外部 APITactic: Use code execution to perform more accurate calculations or call external APIs

6、策略:系统化地测试更改Strategy: Test changes systematically

6.1、战术:根据黄金标准答案评估模型输出Tactic: Evaluate model outputs with reference to gold-standard answers

其他资源Other resources

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。