Vibeleaderboard
← All Intel
Intel / article

Prompt Engineering

Source
lilianweng.github.io
Author
Lilian Weng
Date
Photo by T on Unsplash

Context

Examples inside a can show a what a successful answer should look like without changing its trained parameters. Lilian Weng's prompt-engineering survey explains this as few-shot prompting: supply several input-and-answer pairs, then present the new input.

The examples communicate both the task and the expected response pattern. Their selection and ordering can also bias the result, and they consume space that could otherwise hold the user's material or the answer. Weng describes prompting as an empirical practice whose effects vary across models. Examples are therefore part of the system's behavior to evaluate, rather than interchangeable illustrations attached to an .

Terms in this piece · Glossary
  • Prompt — Information or instructions supplied to a model; in a chat, the request you type is often called your prompt.
  • Large language model — A model trained on large amounts of data to process and generate language.
  • Instruction — A statement in the context that tells the model how to behave or what to do; module 3's first layer.
  • Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Key quotes

“It is an empirical science and the effect of prompt engineering methods can vary a lot among models, thus requiring heavy experimentation and heuristics.”

“At its core, the goal of prompt engineering is about alignment and model steerability.”

Read the source lilianweng.github.io
More from Lilian Weng
Recommended reads