欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 文旅 > 旅游 > Prompt Engineering 探险

Prompt Engineering 探险

2024/11/30 8:59:37 来源:https://blog.csdn.net/weixin_44092088/article/details/140181265  浏览:    关键词:Prompt Engineering 探险

Introduction, Concepts

Text generation models

generation pre-trained transformers, GPT for short.
所以呢,前置知识是Transformer

Assistants

助手指的是能够为用户执行任务的实体;

Embeddings

是数据的一种vector形式,含有原来的数据的内容和/或意义;

Tokens

很常见,很基础的概念。Text generation and embeddings models process text in chunks called tokens. 我理解为处理语言的最小单元。

Six strategies for getting better results

(1) Write clear instructions

  • Include details in your query to get more relevant answers
  • Ask the model to adopt a persona
  • Use delimiters to clearly indicate distinct parts of the input
  • Specify the steps required to complete a task
  • Provide examples
  • Specify the desired length of the output

(2) Provide reference text

(3) Split complex tasks into simpler subtasks

(4) Give the model time to “think”

(5) Use external tools

(6) Test changes systematically

参考

introduction, OpenAI
prompt-engineering, OpenAI

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com