Introduction

Introduction

簡介

Prompt engineering is a relatively new discipline for developing and optimizing prompts to efficiently use language models (LMs) for a wide variety of applications and research topics. Prompt engineering skills help to better understand the capabilities and limitations of large language models (LLMs). Researchers use prompt engineering to improve the capacity of LLMs on a wide range of common and complex tasks such as question answering and arithmetic reasoning. Developers use prompt engineering to design robust and effective prompting techniques that interface with LLMs and other tools.

提示工程是一種相對較新的學科,用於開發和優化提示,以便有效地使用語言模型(LM)進行各種應用和研究主題。提示工程技能有助於更好地理解大型語言模型(LLM)的能力和局限性。研究人員使用提示工程來提高LLM在各種常見和複雜任務(如問答和算術推理)上的能力。開發人員使用提示工程來設計與LLM和其他工具介面的強大有效的提示技術。

This guide covers the basics of prompts to provide a rough idea of how to use prompts to interact and instruct large language models (LLMs).

本指南涵蓋提示的基礎知識,提供如何使用提示與大型語言模型(LLM)進行互動和指導的大致想法。

All examples are tested with text-davinci-003 (using OpenAI's playground) unless otherwise specified. It uses the default configurations, i.e., temperature=0.7 and top-p=1.

所有的例子都是使用 text-davinci-003 進行測試的(使用 OpenAI 的 playground),除非另有說明。它使用預設配置,即 temperature=0.7top-p=1