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