PreprintCited by 68Topic ModelingNatural Language Processing TechniquesSpeech and dialogue systems

Prompt Engineering for Large Language Models

Open access
Gao, Andrew·2023·SSRN Electronic Journal

Abstract

With the popularization of software like OpenAI’s ChatGPT and Google’s Bard, large language models (LLMs) have pervaded many aspects of life and work. For instance, ChatGPT can be used to provide customized recipes, suggesting substitutions for missing ingredients. It can be used to draft research proposals, write working code in many programming languages, translate text between languages, assist in policy making, and more (Gao 2023). Users interact with large language models through “prompts'', or natural language instructions. Carefully designed prompts can lead to significantly better outputs. In this review, common strategies for LLM prompt engineering will be explained. Additionally, considerations, recommended resources, and current directions of research on LLM prompt engineering will be discussed. Prompt engineering strategies based on finetuning will not be covered. The goal of this article is to introduce practical and validated prompt engineering techniques to a non-technical audience.

Integrity signals

Registry

Crossref · 10.2139/ssrn.4504303

Cites

Statistics

Recomputing p-values needs the paper’s full text.

Claims the paper makes

We couldn’t retrieve this paper’s full text, so its claims and self-check weren’t run. The registry and citation checks still apply.

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

The citation lists haven’t been fetched yet

Cited by 68

Authors
Gao, A.
Affiliations
Stanford University (US)
Corresponding author
Gao, Andrew
Venue
SSRN Electronic Journal
Publisher
Elsevier BV
Published
2023
ISSN
1556-5068 (ISSN-L)
OpenAlex
W4384519236
Cited by
68
References
0
Citations by year
2026: 15 · 2025: 34 · 2024: 17 · 2023: 2
Type
posted content
Language
en
Open access
Locations
SSRN Electronic Journal (acceptedVersion)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
  • Physical Sciences › Computer Science › Artificial Intelligence › Speech and dialogue systems
Keywords
prompt engineering, large language models, natural language prompts, ChatGPT, Google Bard, prompt strategies, LLM applications, conversational AI

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review