自学内容网 自学内容网

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


原文地址:https://blog.csdn.net/weixin_44092088/article/details/140181265

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!